mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
New blog layout
This commit is contained in:
parent
673442652d
commit
a75f993831
27
blog-alt.md
27
blog-alt.md
@ -1,27 +0,0 @@
|
|||||||
---
|
|
||||||
title: Blog
|
|
||||||
layout: default
|
|
||||||
permalink: /blog-alt/
|
|
||||||
mathjax: false
|
|
||||||
---
|
|
||||||
{% for post in site.posts %}
|
|
||||||
<article class="h-entry blogroll">
|
|
||||||
|
|
||||||
<figure>
|
|
||||||
<img class="u-photo"
|
|
||||||
src = "{{ post.thumbnail | default: post.image }}"
|
|
||||||
class = "{{ post.image_class }}"
|
|
||||||
alt="{{post.alt}}">
|
|
||||||
</figure>
|
|
||||||
|
|
||||||
<section>
|
|
||||||
<h2 class="p-name blogroll-title"><a class="u-uid u-url" href="{{ post.url }}">{{ post.title }}</a></h2>
|
|
||||||
<time class="dt-published" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time>
|
|
||||||
<summary class="p-summary">{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}</summary>
|
|
||||||
</section>
|
|
||||||
</article>
|
|
||||||
{% unless forloop.last %}
|
|
||||||
<hr class="blogroll">
|
|
||||||
{% endunless %}
|
|
||||||
|
|
||||||
{% endfor %}
|
|
29
index.md
29
index.md
@ -4,17 +4,26 @@ layout: default
|
|||||||
permalink: /
|
permalink: /
|
||||||
redirect_from:
|
redirect_from:
|
||||||
- /blog/
|
- /blog/
|
||||||
head: <script type="module" src="/assets/js/model-viewer.js"></script>
|
mathjax: false
|
||||||
---
|
---
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
<article class="h-entry">
|
<article class="h-entry blogroll">
|
||||||
<h2 class="p-name blogroll-title"><a class="u-uid u-url" href="{{ post.url }}">{{ post.title }}</a></h2>
|
|
||||||
<time class="dt-published" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time>
|
<figure>
|
||||||
<summary class="p-summary">{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}</summary>
|
<img class="u-photo"
|
||||||
{% unless post.hide_image %}
|
src = "{{ post.thumbnail | default: post.image }}"
|
||||||
<figure class="blogroll">
|
class = "{{ post.image_class }}"
|
||||||
<img class="u-photo" src = "{{post.image}}" alt="{{post.alt}}">
|
alt="{{post.alt}}">
|
||||||
</figure>
|
</figure>
|
||||||
{% endunless %}
|
|
||||||
|
<section>
|
||||||
|
<h2 class="p-name blogroll-title"><a class="u-uid u-url" href="{{ post.url }}">{{ post.title }}</a></h2>
|
||||||
|
<time class="dt-published" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</time>
|
||||||
|
<summary class="p-summary">{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}</summary>
|
||||||
|
</section>
|
||||||
</article>
|
</article>
|
||||||
|
{% unless forloop.last %}
|
||||||
|
<hr class="blogroll">
|
||||||
|
{% endunless %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
Loading…
x
Reference in New Issue
Block a user