Browse Source

Bessere HTML5 Tags

master
Christian Aust 4 months ago
parent
commit
c294daa0d6
  1. 3
      _includes/sidebar.html
  2. 4
      _layouts/default.html
  3. 4
      _layouts/page.html
  4. 6
      _layouts/post.html
  5. 6
      index.html

3
_includes/sidebar.html

@ -28,7 +28,8 @@
<div class="sidebar-item">
<p>
&copy; {{ site.time | date: '%Y' }}. Alle Rechte vorbehalten.
&copy; <time datetime="{{ site.time | date_to_xmlschema }}">{{ site.time | date: '%Y' }}</time>
Alle Rechte vorbehalten.
</p>
</div>
</div>

4
_layouts/default.html

@ -22,9 +22,9 @@ layout: compress
</div>
</div>
<div class="container content">
<main class="container content">
{{ content }}
</div>
</main>
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>

4
_layouts/page.html

@ -2,10 +2,10 @@
layout: default
---
<div class="page">
<article class="page">
<h1 class="page-title">{{ page.title }}</h1>
{% if page.description %}
<p class="page-intro">{{ page.description }}</p>
{% endif %}
{{ content }}
</div>
</article>

6
_layouts/post.html

@ -4,7 +4,7 @@ layout: default
<div class="post">
<h1 class="post-title">{{ page.title }}</h1>
<span class="post-date">{{ page.date | date_to_string }}</span>
<time datetime="{{ page.date | date_to_xmlschema }}" class="post-date">{{ page.date | date_to_string }}</time>
{% if page.description %}
<p class="post-intro">{{ page.description }}</p>
{% endif %}
@ -12,7 +12,7 @@ layout: default
</div>
{% if page.related.size >= 1 %}
<div class="related">
<aside class="related">
<h2>Weiteres&hellip;</h2>
<ul class="related-posts">
{% for post in page.related %}
@ -26,5 +26,5 @@ layout: default
</li>
{% endfor %}
</ul>
</div>
</aside>
{% endif %}

6
index.html

@ -8,17 +8,17 @@ sitemap:
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<article class="post">
<h1 class="post-title">
<a href="{{ post.url }}">
{{ post.title }}
</a>
</h1>
<span class="post-date">{{ post.date | date_to_string }}</span>
<time class="post-date" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time>
{{ post.content }}
</div>
</article>
{% endfor %}
</div>

Loading…
Cancel
Save