chore: clearer organizational distinction between data-generated (dynamic) pages and strictly markdown ones
This commit is contained in:
parent
a8beefaa4a
commit
4dca0dfb3e
36 changed files with 541 additions and 198 deletions
45
src/pages/dynamic/posts/post.html
Normal file
45
src/pages/dynamic/posts/post.html
Normal file
|
@ -0,0 +1,45 @@
|
|||
---
|
||||
layout: default
|
||||
pagination:
|
||||
data: posts
|
||||
size: 1
|
||||
alias: post
|
||||
permalink: "{{ post.slug }}/index.html"
|
||||
schema: blog
|
||||
---
|
||||
<article class="h-entry">
|
||||
<div class="time-wrapper flex-centered">
|
||||
{% tablericon "calendar-month" "Date" %}
|
||||
<time class="dt-published" datetime="{{ date }}">
|
||||
{{ post.date | date: "%B %e, %Y" }}
|
||||
</time>
|
||||
</div>
|
||||
<h2 class="p-name">{{ post.title }}</h2>
|
||||
<span class="p-author h-card hidden">{{ globals.author }}</span>
|
||||
<div class="p-summary hidden">{{ post.description }}</div>
|
||||
<div class="e-content">
|
||||
{% render "partials/blocks/banners/old-post.liquid", date:post.date %}
|
||||
{%- if post.image -%}
|
||||
<img
|
||||
srcset="
|
||||
https://cdn.coryd.dev/{{ post.image }}?class=w200 200w,
|
||||
https://cdn.coryd.dev/{{ post.image }}?class=w400 400w,
|
||||
https://cdn.coryd.dev/{{ post.image }}?class=w800 800w,
|
||||
https://cdn.coryd.dev/{{ post.image }}?class=w1600 1600w
|
||||
"
|
||||
sizes="(max-width: 450px) 200px,
|
||||
(max-width: 850px) 400px,
|
||||
(max-width: 1000px) 800px,
|
||||
1600px"
|
||||
src="https://cdn.coryd.dev/{{ post.image }}?class=w1600"
|
||||
alt="{{ post.image_alt }}"
|
||||
class="image-banner"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
/>
|
||||
{%- endif -%}
|
||||
{{ post.content | markdown }}
|
||||
{% render "partials/blocks/index.liquid", blocks:post.blocks %}
|
||||
</div>
|
||||
</article>
|
||||
{% render "partials/blocks/addon-links.liquid", popularPosts:collections.popularPosts, links:links %}
|
Reference in a new issue