commit 20f5a236f663fbdc9e4da2dbcd2c48552f9f302f
parent e9bf173e1b8ac20a060ef46f762c395f56aa53f9
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Thu, 24 Dec 2020 01:20:23 +0100
Correct some HTML issues
Diffstat:
4 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/gensite.py b/gensite.py
@@ -104,7 +104,7 @@ def add_to_sitemap(path, lastmod=None, freq=None, priority=None):
def set_redirect(src, dst):
"""Create HTML redirect."""
- fwrite(src, '<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="refresh" content="0; url=\'/' + dst + '\'"/><link rel="canonical" href="/' + dst + '"/><meta name="robots" content="noindex"></head><body><p>This page has been moved to <a href="/' + dst + '">https://oscarbenedito.com/' + dst + '</a>.</p></body></html>')
+ fwrite(src, '<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="refresh" content="0; url=/' + dst + '"/><link rel="canonical" href="/' + dst + '"/><meta name="robots" content="noindex"></head><body><p>This page has been moved to <a href="/' + dst + '">https://oscarbenedito.com/' + dst + '</a>.</p></body></html>')
log('I', 'Info: redirect /{} => /{}', src, dst)
diff --git a/layouts/item.html b/layouts/item.html
@@ -1,11 +1,7 @@
<article class="summary h-entry">
<header>
<h2><a class="u-url p-name" href="/{{ url }}">{{ title }}</a></h2>
- <div class="metadata">
- {{ categories_html }} · <a href="/{{ url }}"><time class="dt-published" datetime="{{ date }}">{{ date_nice }}</time></a> · {{ read_time }}
- <div>
+ <p class="metadata">{{ categories_html }} · <a href="/{{ url }}"><time class="dt-published" datetime="{{ date }}">{{ date_nice }}</time></a> · {{ read_time }}</p>
</header>
- <section class="content">
- <p class="p-summary">{{ summary }} <a href="/{{ url }}" aria-label="Read post {{ title }}">Read more</a></p>
- </section>
+ <p class="p-summary">{{ summary }} <a href="/{{ url }}" aria-label="Read post {{ title }}">Read more</a></p>
</article>
diff --git a/layouts/list.html b/layouts/list.html
@@ -11,6 +11,6 @@
{{ _if more_pages }}</div>{{ _fi }}
<div class="p-author h-card" style="display: none;">
<a rel="me" class="p-name u-url" href="https://oscarbenedito.com">Oscar Benedito</a>
- <img class="u-photo" src="/{{ _asset_img/favicon.min.svg }}"/>
+ <img class="u-photo" src="/{{ _asset_img/favicon.min.svg }}" alt=""/>
</div>
</main>
diff --git a/layouts/post.html b/layouts/post.html
@@ -8,7 +8,7 @@
<div class="content e-content">{{ content }}</div>
<div class="p-author h-card" style="display: none;">
<a rel="me" class="p-name u-url" href="https://oscarbenedito.com">Oscar Benedito</a>
- <img class="u-photo" src="/{{ _asset_img/favicon.min.svg }}"/>
+ <img class="u-photo" src="/{{ _asset_img/favicon.min.svg }}" alt=""/>
</div>
</article>