Skip to content

Commit

Permalink
Moving custom header above <h1> in article.
Browse files Browse the repository at this point in the history
This way the "Edit on GitHub" will be above text that is "too
long", i.e. text that runs into it. For example, this happens in
the "How Does Go Compute a Logarithm" post.
  • Loading branch information
dhermes committed Sep 8, 2018
1 parent 3663066 commit f0ea798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/_includes/article.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<header>
{% include '_includes/qr_code.html' %}
{% if CUSTOM_HEADER_TEMPLATE %}
{{ CUSTOM_HEADER_TEMPLATE.render({"article": article}) }}
{% endif %}
{% if index %}
<h1 class="entry-title">
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title|striptags }}</a>
</h1>
{% else %}
<h1 class="entry-title">{{ article.title|striptags }}</h1>
{% endif %}
{% if CUSTOM_HEADER_TEMPLATE %}
{{ CUSTOM_HEADER_TEMPLATE.render({"article": article}) }}
{% endif %}
<p class="meta">
{% include '_includes/article_time.html' %}
{% include '_includes/article_stats.html' %}
Expand Down

0 comments on commit f0ea798

Please sign in to comment.