Compare commits

...

6 Commits

Author SHA1 Message Date
Tom
3374bc5e62 add mastodon summary 2025-05-17 09:53:21 +01:00
Tom
0894299979 Update post.html 2025-05-17 09:47:27 +01:00
Tom
46c87ef493 Update post.html 2025-05-17 09:45:11 +01:00
Tom
53045008e9 Update post.html 2025-05-17 09:43:33 +01:00
Tom
6d6358b6a7 put draft posts at the top 2025-05-17 09:30:25 +01:00
Tom
f063d0394a Gate view transitions behind prefers-reduced-motion: no-preference 2025-05-17 09:30:13 +01:00
4 changed files with 30 additions and 14 deletions

View File

@ -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>

View File

@ -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
View File

@ -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 %}

View File

@ -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 %}