Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
122 lines (113 sloc) 3.62 KB
---
layout: default
---
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
{%- if page.title != "" -%}
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
{%- endif -%}
<p class="post-meta">
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{{ page.date | date: date_format }}
</time>
{%- if page.author -%}
• <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
{%- endif -%}</p>
</header>
<div class="post-content e-content" itemprop="articleBody">
{{ content }}
</div>
{%- if site.disqus.shortname -%}
{%- include disqus_comments.html -%}
{%- endif -%}
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>
<hr/>
<aside class="post-tag-section">
{% assign showingAnyTags = false %}
{%- for tag in page.tags -%}
<!-- determine whether there are additional posts to show -->
{% assign moreThanOneInCategory = false %}
{% assign posts = site.tags[tag] %}
{% for post in posts %}
{% if forloop.length > 1 %}
{% assign moreThanOneInCategory = true %}
{% endif %}
{% endfor %}
<!-- if any, show posts with same tag -->
{% if moreThanOneInCategory == true %}
{% assign showingAnyTags = true %}
<h3>More posts about {{ tag }}</h3>
<ul class="related-posts">
{% for post in posts %}
{% if post.url != page.url %}
<li>
<a href="{{ post.url | absolute_url }}">
{% if post.title == "" %}
{{ post.content | markdownify | strip_html | truncate: 80 }}
{% else %}
{{ post.title }}
{% endif %}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{%- endfor -%}
<p style="margin-bottom: 30px">
{% if showingAnyTags %}
<a href="{% link topics.html %}" class="all-topics">
See all topics
</a>
{% endif %}
</p>
<h3>Recent posts</h3>
<ul class="related-posts">
{% for post in site.posts limit:5 %}
{% if post.url != page.url %}
<li>
<a href="{{ post.url | absolute_url }}">
{{ post.title }}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
<p style="margin-bottom: 30px">
<a href="{% link index.html %}" class="all-topics">
See all posts
</a>
</p>
<h3>How to subscribe</h3>
<p style="margin-bottom: 30px">
Want to be notified when I post something new?
You can subscribe via <a href="{% link feed.xml %}">RSS</a> or follow me on
<a href="https://micro.blog/fiona">Micro.blog</a>.
</p>
</aside>
<style>
.webmention-mention {
padding-left: 85px;
position: relative;
margin-bottom: 30px;
overflow: auto;
}
.webmention-author img {
position: absolute;
left: 0;
max-width: 70px;
max-height: 70px;
}
</style>
<script id="webmention-hosted">
(function () {
var sn = document.createElement("script"), s = document.getElementsByTagName("script")[0], url;
url = document.querySelectorAll ? document.querySelectorAll("link[rel~=canonical]") : false;
url = url && url[0] ? url[0].href : false;
sn.type = "text/javascript"; sn.async = true;
sn.src = "//webmention.herokuapp.com/api/embed?url=" + encodeURIComponent(url || window.location);
s.parentNode.insertBefore(sn, s);
}());
</script>
You can’t perform that action at this time.