Update partials
This commit is contained in:
parent
fbbe3276e7
commit
9bd39e9692
19 changed files with 129 additions and 124 deletions
7
source/_partials/post/about-author.html.twig
Normal file
7
source/_partials/post/about-author.html.twig
Normal file
|
@ -0,0 +1,7 @@
|
|||
<div class="about-author">
|
||||
<h2>About the Author</h2>
|
||||
|
||||
<img src="{{ site.gravatar.url }}?s=100" alt="Picture of Oliver" class="img-circle">
|
||||
|
||||
<p>{{ site.author.bio|raw }}</p>
|
||||
</div>
|
3
source/_partials/post/feedback.html.twig
Normal file
3
source/_partials/post/feedback.html.twig
Normal file
|
@ -0,0 +1,3 @@
|
|||
<p class="post-feedback" style="font-style: italic">
|
||||
<b>Have feedback on this post?</b> <a href="mailto:{{ site.email }}?subject=Feedback: {{ page.title }}">Email me</a> or <a href="https://twitter.com/intent/tweet?text=@{{ site.twitter.name }}&url={{ site.url }}{{ page.url|url_encode }}">send me a tweet</a>.
|
||||
</p>
|
6
source/_partials/post/pager.html.twig
Normal file
6
source/_partials/post/pager.html.twig
Normal file
|
@ -0,0 +1,6 @@
|
|||
{% if page.next_post or page.previous_post %}
|
||||
<ul>
|
||||
{% if page.next_post %}<li>Next post: <a href="{{ page.next_post.url }}">{{ page.next_post.title }}</a></li>{% endif %}
|
||||
{% if page.previous_post %}<li>Previous post: <a href="{{ page.previous_post.url }}">{{ page.previous_post.title }}</a></li>{% endif %}
|
||||
</ul>
|
||||
{% endif %}
|
11
source/_partials/post/related.html.twig
Normal file
11
source/_partials/post/related.html.twig
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% if page.related -%}
|
||||
<h2>Related Posts</h2>
|
||||
|
||||
<ul>
|
||||
{% for relate in page.related -%}
|
||||
<li>
|
||||
<a href="{{ relate.source.url }}">{{ relate.title }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{%- endif %}
|
8
source/_partials/post/tags.html.twig
Normal file
8
source/_partials/post/tags.html.twig
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% if page.tags %}
|
||||
<p class="tags">
|
||||
Tags:
|
||||
{% for tag in page.tags %}
|
||||
<a href="{{ site.url }}/blog/tags/{{ tag|url_encode(true) }}">{{ tag }}</a>{% if not loop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue