Browse Source

styling changes: img width and work-in-progress on the next and prev buttons

master
manetta 4 years ago
parent
commit
39a4effc9e
  1. 5
      themes/default/static/css/main.css
  2. 21
      themes/default/templates/article.html
  3. 5
      themes/default/templates/index.html

5
themes/default/static/css/main.css

@ -103,6 +103,11 @@ hr{
margin:3em auto;
}
img{
width: calc(100% + 6em);
margin: 1em 0 1em -3em;
}
.lastupdate{
font-size: smaller;
margin:4em 0;

21
themes/default/templates/article.html

@ -25,8 +25,7 @@
<section id="content" class="body">
<header>
<h2 class="entry-title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
{% import 'translations.html' as translations with context %}
{{ translations.translations_for(article) }}
</header>
@ -48,5 +47,23 @@
<div class="entry-content">
{{ article.content }}
</div>
<ul>
{% if article.prev_article_in_category %}
<li>
<a href="{{ SITEURL }}/{{ article.prev_article_in_category.url}}">
{{ article.prev_article_in_category.title }}
</a>
</li>
{% endif %}
{% if article.next_article_in_category %}
<li>
<a href="{{ SITEURL }}/{{ article.next_article_in_category.url}}">
{{ article.next_article_in_category.title }}
</a>
</li>
{% endif %}
</ul>
</section>
{% endblock %}

5
themes/default/templates/index.html

@ -12,9 +12,4 @@
<footer class="post-info"></footer>
</article></li>
{% endfor %}
<!-- {% if articles_page.has_other_pages() %} -->
<!-- {% include 'pagination.html' %} -->
<!-- {% endif %} -->
{% endblock content %}

Loading…
Cancel
Save