Commit 3e372673 authored by Ciaran Ainsworth's avatar Ciaran Ainsworth
Browse files

Improve formatting of titles

parent 6ef924d5
Pipeline #18798 passed with stages
in 1 minute and 24 seconds
......@@ -9,9 +9,9 @@
{% block title %}{{ article.title|striptags }}{% endblock %}
{% block content %}
<section id="content">
<article>
<h2 class="post_title post_detail"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
<article class="content">
<h1><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h1>
<div class="entry-content blog-post">
{{ article.content }}
</div>
......@@ -19,13 +19,13 @@
<span>By </span>
<a href="{{ SITEURL }}/{{ article.author.url }}">@{{ article.author }}</a>
<span> in </span>
<span class="post_category"><a href="{{ SITEURL }}/{{ article.category.url }}" rel="bookmark"
title="Permalink to {{ article.category|striptags }}">[ {{ article.category }} ]</a></span>
<span class="tag"><a href="{{ SITEURL }}/{{ article.category.url }}" rel="bookmark"
title="Permalink to {{ article.category|striptags }}">{{ article.category }}</a></span>
<span class="post_date">{{ article.locale_date }}</span>
{% if article.tags %}
<div><span>Tags : </span>
{% for tag in article.tags %}
<span><a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}, </a></span>
<span class="tag"><a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}, </a></span>
{% endfor %}
</div>
dd{% endif %}
......
......@@ -8,7 +8,7 @@
{% block content_title %}{% endblock %}
{% block content %}
{% if articles %}
<ol class="posts">
<ol class="content posts">
{% block heading %}<h2 class="latest">Latest Posts</h2>{% endblock %}
{% for article in (articles_page.object_list if articles_page else articles) %}
<li class="post_list"><p class="post_entry">
......@@ -20,8 +20,8 @@
{% endif %}
<a href="{{ SITEURL }}/{{ article.author.url }}">@{{ article.author }}</a>
<span> in </span>
<span class="post_category"><a href="{{ SITEURL }}/{{ article.category.url }}" rel="bookmark"
title="Permalink to {{ article.category|striptags }}">[ {{ article.category }} ]</a></span>
<span class="tag"><a href="{{ SITEURL }}/{{ article.category.url }}" rel="bookmark"
title="Permalink to {{ article.category|striptags }}">{{ article.category }}</a></span>
<span class="post_date">{{ article.locale_date }}</span>
</li>
{% endfor %}
......
......@@ -10,7 +10,7 @@
<h2>Tags</h2>
<ul>
{% for tag, articles in tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
<li><a class="tag" href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
{% endblock %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment