Browse Source

clean up

main
Sergio Álvarez 5 months ago
parent
commit
78f5e31764
Signed by: salvarez
GPG Key ID: BD711A37FE7DD77E
  1. 3
      _data/menus.yml
  2. 2
      _includes/footer.html
  3. 31
      _layouts/post.html

3
_data/menus.yml

@ -1,6 +1,9 @@ @@ -1,6 +1,9 @@
- title: Inicio
url: /
- title: Código fuente
url: https://sergio.am/code/sergio.am
- title: Sobre este sitio
url: /about/

2
_includes/footer.html

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<footer class="footer">
<span class="footer_item"><a href="/LICENSE">&copy; {{ site.time | date: "%Y" }} Sergio Álvarez</a> <a href="https://sergio.am/code/sergio.am">Código fuente y versionado</a></span>
<span class="footer_item"><a href="/LICENSE">&copy; Sergio Álvarez</a> <span title="Last build">🔨 {{ site.time | date: "%d %b %Y" }}</span></span>
</footer>
<script src="/assets/js/main.js" defer="defer"></script>

31
_layouts/post.html

@ -34,26 +34,33 @@ layout: compress @@ -34,26 +34,33 @@ layout: compress
<article itemscope itemtype="https://schema.org/BlogPosting">
<header class="header">
{% if page.tags and page.tags != empty %}
<div class="tags">
{% assign tags = page.tags %}
<span itemprop="keywords">
{% for tag in tags %}
<a class="tag"
href="/tags/#{{tag | downcase | slugify}}">{{tag | upcase }}</a>{% unless forloop.last %},{% endunless %}
{% endfor %}
</span>
</div>
{% endif %}
<h1 class="header-title" itemprop="headline">{{ page.title | escape }}</h1>
{% if page.date %}
<div class="post-meta">
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{{ page.date | date: "%d %b %Y" }}
</time>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<span hidden itemprop="author" itemscope itemtype="https://schema.org/Person">
<span itemprop="name">{{ site.author.name }}</span>
</span>
{% if page.tags and page.tags != empty %}
<!--
<small class="tags">
{% assign tags = page.tags %}
<span itemprop="keywords">
&lt;
{% for tag in tags %}
<a class="tag"
href="/tags/#{{tag | downcase | slugify}}">{{tag | upcase }}</a>{% unless forloop.last %},{% endunless %}
{% endfor %}
/&gt;
</span>
</small>
-->
{% endif %}
<time hidden datetime="{{ page.modified | date_to_xmlschema }}" itemprop="dateModified">
{{ page.date | date: "%b %d, %Y" }}
</time>

Loading…
Cancel
Save