mirror of
https://github.com/TomHodson/tomhodson.github.com.git
synced 2025-06-26 10:01:18 +02:00
Compare commits
6 Commits
2f12ac1a53
...
3374bc5e62
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3374bc5e62 | ||
![]() |
0894299979 | ||
![]() |
46c87ef493 | ||
![]() |
53045008e9 | ||
![]() |
6d6358b6a7 | ||
![]() |
f063d0394a |
@ -22,12 +22,15 @@
|
|||||||
<hr class="byline">
|
<hr class="byline">
|
||||||
|
|
||||||
<section class="byline-time">
|
<section class="byline-time">
|
||||||
<section class="byline">
|
<section class="byline p-summary">
|
||||||
{{page.excerpt}}
|
{{page.excerpt}}
|
||||||
</section>
|
</section>
|
||||||
<time class="dt-label dt-published" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date_to_string }}</time>
|
<time class="dt-label dt-published" datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date_to_string }}</time>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
<div class="e-bridgy-mastodon-content hidden">
|
||||||
|
New blog post: {{ page.title }} - {{page.excerpt}}
|
||||||
|
</div>
|
||||||
<div class="e-content">
|
<div class="e-content">
|
||||||
{{ content }}
|
{{ content }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -121,6 +121,7 @@ main {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
hr.heading {
|
hr.heading {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
@ -392,6 +393,10 @@ body:not(.has-wc) .has-wc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.visually-hidden {
|
.visually-hidden {
|
||||||
display: block;
|
display: block;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
@ -465,12 +470,8 @@ svg {
|
|||||||
@include night-mode;
|
@include night-mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@view-transition {
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
navigation: auto;
|
@view-transition {
|
||||||
}
|
navigation: auto;
|
||||||
|
|
||||||
@media (prefers-reduced-motion: reduce) {
|
|
||||||
* {
|
|
||||||
view-transition-name: unset !important;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
12
blog.md
12
blog.md
@ -14,8 +14,16 @@ img:
|
|||||||
<span class="dt-label">Date Posted</span>
|
<span class="dt-label">Date Posted</span>
|
||||||
</section>
|
</section>
|
||||||
<hr class="heading">
|
<hr class="heading">
|
||||||
{% for post in site.posts %}
|
|
||||||
{% if post.draft == false or jekyll.environment == "development" %}
|
{% assign draft_posts = site.posts | where: "draft", "true" %}
|
||||||
|
{% assign published_posts = site.posts | where: "draft", "false" %}
|
||||||
|
|
||||||
|
{% if jekyll.environment == 'development' %}
|
||||||
|
{% for post in draft_posts %}
|
||||||
{% include post_summary.html %}
|
{% include post_summary.html %}
|
||||||
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% for post in published_posts limit:5 %}
|
||||||
|
{% include post_summary.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
@ -24,13 +24,17 @@ Welcome to my little home on the web! Below you'll find recent blog posts, proje
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<hr class="heading">
|
<hr class="heading">
|
||||||
|
|
||||||
|
{% assign draft_posts = site.posts | where: "draft", "true" %}
|
||||||
|
{% assign published_posts = site.posts | where: "draft", "false" %}
|
||||||
|
|
||||||
{% if jekyll.environment == 'development' %}
|
{% if jekyll.environment == 'development' %}
|
||||||
{% assign filtered_posts = site.posts %}
|
{% for post in draft_posts %}
|
||||||
{% else %}
|
{% include post_summary.html %}
|
||||||
{% assign filtered_posts = site.posts | where: "draft", "false" %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for post in filtered_posts limit:5 %}
|
{% for post in published_posts limit:5 %}
|
||||||
{% include post_summary.html %}
|
{% include post_summary.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user