mirror of
https://github.com/tylernguyen/wiki.git
synced 2025-02-05 08:23:14 -06:00
feat(upstream): blog post pin support
This commit is contained in:
parent
b22b4fdef4
commit
999a6fcc7c
2 changed files with 20 additions and 13 deletions
|
@ -38,7 +38,7 @@
|
||||||
{% for author in page.authors %}
|
{% for author in page.authors %}
|
||||||
<div class="md-profile md-post__profile">
|
<div class="md-profile md-post__profile">
|
||||||
<span class="md-author md-author--long">
|
<span class="md-author md-author--long">
|
||||||
<img src="{{ author.avatar }}" alt="{{ author.name }}" />
|
<img src="{{ author.avatar | url }}" alt="{{ author.name }}" />
|
||||||
</span>
|
</span>
|
||||||
<span class="md-profile__description">
|
<span class="md-profile__description">
|
||||||
<strong>
|
<strong>
|
||||||
|
|
|
@ -4,18 +4,6 @@
|
||||||
|
|
||||||
<!-- Post excerpt -->
|
<!-- Post excerpt -->
|
||||||
<article class="md-post md-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 -->
|
<!-- Post metadata -->
|
||||||
<div class="md-post__meta md-meta">
|
<div class="md-post__meta md-meta">
|
||||||
|
@ -63,6 +51,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<!-- Pin marker -->
|
||||||
|
{% if post.config.pin %}
|
||||||
|
<span class="md-pin"></span>
|
||||||
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!-- Draft marker -->
|
<!-- Draft marker -->
|
||||||
|
@ -73,4 +66,18 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</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>
|
</article>
|
||||||
|
|
Loading…
Reference in a new issue