Escaped link titles where necessary

This commit is contained in:
squidfunk 2020-10-04 14:24:43 +02:00
parent 52787c6a9c
commit e149006af9
8 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@
<div class="tx-hero__content">
<h1>Technical documentation that just works</h1>
<p>{{ config.site_description }}. Set up in 5 minutes.</p>
<a href="{{ page.next_page.url | url }}" title="{{ page.next_page.title | striptags }}" class="md-button md-button--primary">
<a href="{{ page.next_page.url | url }}" title="{{ page.next_page.title | e }}" class="md-button md-button--primary">
Get started
</a>
<a href="{{ config.repo_url }}" title="{{ lang.t('source.link.title') }}" class="md-button">

View File

@ -3,7 +3,7 @@
-#}
<header class="md-header" data-md-component="header">
<nav class="md-header-nav md-grid" aria-label="{{ lang.t('header.title') }}">
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name }}" class="md-header-nav__button md-logo" aria-label="{{ config.site_name }}">
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-header-nav__button md-logo" aria-label="{{ config.site_name }}">
{% include "partials/logo.html" %}
</a>
<label class="md-header-nav__button md-icon" for="__drawer">

View File

@ -3,7 +3,7 @@
-#}
<nav class="md-nav md-nav--primary" aria-label="{{ lang.t('nav.title') }}" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name }}" class="md-nav__button md-logo" aria-label="{{ config.site_name }}">
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-nav__button md-logo" aria-label="{{ config.site_name }}">
{% include "partials/logo.html" %}
</a>
{{ config.site_name }}

View File

@ -9,7 +9,7 @@
{% set _,url = social.link.split("//") %}
{% set title = url.split("/")[0] %}
{% endif %}
<a href="{{ social.link }}" target="_blank" rel="noopener" title="{{ title }}" class="md-footer-social__link">
<a href="{{ social.link }}" target="_blank" rel="noopener" title="{{ title | e }}" class="md-footer-social__link">
{% include ".icons/" ~ social.icon ~ ".svg" %}
</a>
{% endfor %}

View File

@ -81,7 +81,7 @@
<p>{{ config.site_description }}. Set up in 5 minutes.</p>
<a
href="{{ page.next_page.url | url }}"
title="{{ page.next_page.title | striptags }}"
title="{{ page.next_page.title | e }}"
class="md-button md-button--primary"
>
Get started

View File

@ -29,7 +29,7 @@
<!-- Link to home -->
<a
href="{{ config.site_url | default(nav.homepage.url, true) | url }}"
title="{{ config.site_name }}"
title="{{ config.site_name | e }}"
class="md-header-nav__button md-logo"
aria-label="{{ config.site_name }}"
>

View File

@ -31,7 +31,7 @@
<label class="md-nav__title" for="__drawer">
<a
href="{{ config.site_url | default(nav.homepage.url, true) | url }}"
title="{{ config.site_name }}"
title="{{ config.site_name | e }}"
class="md-nav__button md-logo"
aria-label="{{ config.site_name }}"
>

View File

@ -32,7 +32,7 @@
<a
href="{{ social.link }}"
target="_blank" rel="noopener"
title="{{ title }}"
title="{{ title | e }}"
class="md-footer-social__link"
>
{% include ".icons/" ~ social.icon ~ ".svg" %}