Skip to content

Commit

Permalink
Add SEO pagination for blog articles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaspar Naaber committed Oct 27, 2017
1 parent 440f0a6 commit 4d87736
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/template-meta.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,14 @@
<meta property="og:description" content="{{ description | escape }}">
<meta name="description" content="{{ description | escape }}">
{% endif %}

{% comment %}SEO pagination for blog articles.{% endcomment %}
{% if article %}
{% if article.older %}
<link rel="prev" href="{{ article.older.url }}">
{% endif %}

{% if article.newer %}
<link rel="next" href="{{ article.newer.url }}">
{% endif %}
{% endif %}

0 comments on commit 4d87736

Please sign in to comment.