Add support for metatags
This commit is contained in:
parent
ae440be40c
commit
4564aa9534
25 changed files with 230 additions and 22 deletions
|
|
@ -1,25 +1,33 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Categories | Alex Daniels{% endblock %}
|
||||
{% block title %}{{title}} - Categories | Alex Daniels{% endblock %}
|
||||
|
||||
{% block metatitle %}{{title}} - Categories | Alex Daniels {% endblock %}
|
||||
{% block ogtitle %}{{title}} - Categories | Alex Daniels {% endblock %}
|
||||
{% block twittertitle %}Writing and Albums that contain the category '{{title}}'{% endblock %}
|
||||
{% block metadescription %}Writing and Albums that contain the category '{{title}}'{% endblock %}
|
||||
{% block ogdescription %}Writing and Albums that contain the category '{{title}}'{% endblock %}
|
||||
{% block twitterdescription %}Writing and Albums that contain the category '{{title}}'{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<section class="category">
|
||||
<h2>{{title}}</h2>
|
||||
{% if posts|length %}
|
||||
<div class="posts">
|
||||
<h2>Posts</h2>
|
||||
<h3>Posts</h3>
|
||||
<ul>
|
||||
{% for post in posts %}
|
||||
<li><a href="/words/{{post.url}}">{{post.title}}</a></li>
|
||||
<li><a href="/words/{{post.url}}">{{post.title}} - {{ post.date|date('l M d Y') }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if photos|length %}
|
||||
<div class="photos">
|
||||
<h2>Photos</h2>
|
||||
<h3>Photos</h3>
|
||||
<ul>
|
||||
{% for photo in photos %}
|
||||
<li><a href="/photos/{{photo.url}}">{{photo.title}}</a></li>
|
||||
<li><a href="/photos/{{photo.url}}">{{photo.title}} - {{ photo.date|date('l M d Y') }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,13 @@
|
|||
|
||||
{% block title %}Categories | Alex Daniels{% endblock %}
|
||||
|
||||
{% block metatitle %}Categories | Alex Daniels {% endblock %}
|
||||
{% block ogtitle %}Categories | Alex Daniels {% endblock %}
|
||||
{% block twittertitle %}Categories used in posts and albums{% endblock %}
|
||||
{% block metadescription %}Categories used in posts and albums{% endblock %}
|
||||
{% block ogdescription %}Categories used in posts and albums{% endblock %}
|
||||
{% block twitterdescription %}Categories used in posts and albums{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<section class="categories">
|
||||
<h2>Categories</h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue