1
0
Fork 0
mirror of https://github.com/tylernguyen/wiki.git synced 2025-02-05 00:23:13 -06:00

feat(upstream): blog post pin support

This commit is contained in:
Tyler Nguyen 2024-09-16 12:10:26 -05:00
parent b22b4fdef4
commit 999a6fcc7c
No known key found for this signature in database
2 changed files with 20 additions and 13 deletions

View file

@ -38,7 +38,7 @@
{% for author in page.authors %}
<div class="md-profile md-post__profile">
<span class="md-author md-author--long">
<img src="{{ author.avatar }}" alt="{{ author.name }}" />
<img src="{{ author.avatar | url }}" alt="{{ author.name }}" />
</span>
<span class="md-profile__description">
<strong>

View file

@ -4,18 +4,6 @@
<!-- Post excerpt -->
<article class="md-post md-post--excerpt">
<!-- Post content -->
<!-- ANCHOR Customization -->
<!-- TODO post.content should be title only! -->
<div class="md-post__content md-typeset">
{{ post.content }}
<!-- NOTE Removed Continue reading link -->
</div>
<header class="md-post__header">
<!-- ANCHOR Customization -->
<!-- NOTE Removed Author Information -->
<!-- Post metadata -->
<div class="md-post__meta md-meta">
@ -63,6 +51,11 @@
{% endif %}
</li>
{% endif %}
<!-- Pin marker -->
{% if post.config.pin %}
<span class="md-pin"></span>
{% endif %}
</ul>
<!-- Draft marker -->
@ -73,4 +66,18 @@
{% endif %}
</div>
</header>
<!-- Post content -->
<div class="md-post__content md-typeset">
{{ post.content }}
<!-- Continue reading link -->
{% if post.more %}
<nav class="md-post__action">
<a href="{{ post.url | url }}">
continue →
</a>
</nav>
{% endif %}
</div>
</article>