Normalized double quotes for html

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2022-01-22 23:20:18 +01:00
parent 2e3d3f881a
commit fba90c1c72
3 changed files with 22 additions and 22 deletions

View file

@ -5,34 +5,34 @@
{%- endif %}
<!DOCTYPE html>
<html lang='en'>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover'>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta name='description' content='{{ resource.description }}'>
<meta name="description" content="{{ resource.description }}">
{%- set preview_image = 'images/screenshots/prague.jpg' -%}
{%- if resource.extra.preview_image -%}
{%- set preview_image = resource.extra.preview_image -%}
{%- endif %}
<meta property='og:image' content='{{ get_url(path=preview_image) }}'>
<meta property='og:url' content='{{ current_url }}'>
<meta property='og:type' content='website'>
<meta property='og:title' content='{{ resource.title }}'>
<meta property='og:description' content='{{ resource.description }}'>
<meta property="og:image" content="{{ get_url(path=preview_image) }}">
<meta property="og:url" content="{{ current_url }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ resource.title }}">
<meta property="og:description" content="{{ resource.description }}">
<meta name='twitter:card' content='summary_large_image'>
<meta name='twitter:title' content='{{ resource.title }}'>
<meta name='twitter:description' content='{{ resource.description }}'>
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ resource.title }}">
<meta name="twitter:description" content="{{ resource.description }}">
<meta name='apple-itunes-app' content='app-id=1567437057'>
<meta name='wikidata' content='Q107078602'>
<meta name="apple-itunes-app" content="app-id=1567437057">
<meta name="wikidata" content="Q107078602">
<!-- TODO: Use get_url everywhere when it works, also with cachebust=true,
see https://github.com/getzola/zola/issues/1570 -->
<link href='/main.css?h={{ get_file_hash(path="sass/main.scss", sha_type=256, base64=false) }}' rel='stylesheet' type='text/css'>
<link href="/main.css?h={{ get_file_hash(path='sass/main.scss', sha_type=256, base64=false) }}" rel="stylesheet" type="text/css">
<title>{{ resource.title }}</title>
</head>
@ -49,7 +49,7 @@
<footer>
{% include 'bottom_menu.html' %}
<p>
<span>© 2021 <a href='mailto:legal@organicmaps.app'>Organic Maps OÜ</a>, reg. code 16225385</span>
<span>© 2021 <a href="mailto:legal@organicmaps.app">Organic Maps OÜ</a>, reg. code 16225385</span>
<span>Harju maakond, Tallinn, Kristiine linnaosa, A. H. Tammsaare tee 47, 11316, Estonia</span>
</p>
</footer>

View file

@ -2,10 +2,10 @@
{% set home = get_section(path='_index.md') %}
{% for page in [home] | concat(with=home.pages) %}
{% if page.extra.menu_title %}
{% if resource.path != page.path %}<a href='{{ page.path }}'>{% endif %}
{% if resource.path != page.path %}<a href="{{ page.path }}">{% endif %}
<span>{{ page.extra.menu_title }}</span>
{%- if resource.path != page.path %}</a>{% endif %}
&nbsp;
{% endif %}
{% endfor %}
</nav>
</nav>

View file

@ -1,17 +1,17 @@
<nav id="menu" role="navigation">
<span class="logo"></span>
<span class="menu_items">
<span class="menuitem{% if resource.path != '/' %}"><a href='/'>{% else %}_active">{% endif %}
<span class="menuitem{% if resource.path != '/' %}"><a href="/">{% else %}_active">{% endif %}
<span>Home</span>
{%- if resource.path != '/' %}</a>{% endif %}
</span>
<span class="menuitem{% if resource.path != '/donate/' %}"><a href='/donate/'>{% else %}_active">{% endif %}
<span class="menuitem{% if resource.path != '/donate/' %}"><a href="/donate/">{% else %}_active">{% endif %}
<span>❤️ Donate</span>
{% if resource.path != '/donate/' %}</a>{% endif %}
</span>
<span class="menuitem{% if resource.path != '/support-us/' %}"><a href='/support-us/'>{% else %}_active">{% endif %}
<span class="menuitem{% if resource.path != '/support-us/' %}"><a href="/support-us/">{% else %}_active">{% endif %}
<span>Support Us</span>
{% if resource.path != '/support-us/' %}</a>{% endif %}
</span>