Update partials
This commit is contained in:
parent
fbbe3276e7
commit
9bd39e9692
19 changed files with 129 additions and 124 deletions
|
@ -1,47 +1,13 @@
|
|||
{% extends 'default' %}
|
||||
|
||||
{% block content_wrapper %}
|
||||
{% include('post/header') %}
|
||||
{{ include('post/header') }}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
<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>
|
||||
|
||||
{% 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 %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
<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>
|
||||
|
||||
{% 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 %}
|
||||
{{ include('post/feedback') }}
|
||||
{{ include('post/related') }}
|
||||
{{ include('post/tags') }}
|
||||
{{ include('post/about-author') }}
|
||||
{{ include('post/pager') }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -3,18 +3,11 @@
|
|||
{% block body_classes 'page--project' %}
|
||||
|
||||
{% block content_wrapper %}
|
||||
{% if page.image -%}
|
||||
<img src="/assets/images/projects/{{ page.image.name ?: page.image }}" alt="{{ page.image.alt }}">
|
||||
{%- endif %}
|
||||
{{ include('project/image') }}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
{% if page.website %}
|
||||
<a class="project__website" href="{{ page.website }}">
|
||||
View the website
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{{ include('projects/skills') }}
|
||||
{{ include('projects/company') }}
|
||||
{{ include('project/website') }}
|
||||
{{ include('project/skills') }}
|
||||
{{ include('project/company') }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -7,36 +7,7 @@
|
|||
{% block content_wrapper %}
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
{% if page.event %}
|
||||
<h2>Details</h2>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
Event:
|
||||
{% if page.event.website %}<a href="{{ page.event.website }}">{%- endif -%}
|
||||
{{ page.event.name }}
|
||||
{%- if page.event.website -%}</a>{%- endif %}
|
||||
</li>
|
||||
<li>Date: {{ page.date|date(site.default_date_format) }}</li>
|
||||
<li>Location: {{ page.event.location }}</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
||||
{% if page.slides.embed %}
|
||||
<div class="slides">
|
||||
<h2 class="slides__title">Slides</h2>
|
||||
|
||||
<div class="slides__content">
|
||||
{{ page.slides.embed|raw }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if page.video.embed %}
|
||||
<h2>Video</h2>
|
||||
|
||||
<div class="embed-container">
|
||||
{{ page.video.embed|raw }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ include('talk/event') }}
|
||||
{{ include('talk/slides') }}
|
||||
{{ include('talk/video') }}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue