more updates to match new code, new entry for testing
This commit is contained in:
parent
46751d66ca
commit
008d2d760c
140 changed files with 17228 additions and 12 deletions
44
themes/hyde/templates/post_header.tmpl
Normal file
44
themes/hyde/templates/post_header.tmpl
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{# -*- coding: utf-8 -*- #}
|
||||
{% import 'post_helper.tmpl' as helper with context %}
|
||||
{% import 'comments_helper.tmpl' as comments with context %}
|
||||
|
||||
{% macro html_title() %}
|
||||
{% if title and not post.meta('hidetitle') %}
|
||||
<h1 class="post-title p-name"><a href="{{ post.permalink() }}" class="u-url">{{ post.title()|e }}</a></h1>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro html_translations(post) %}
|
||||
{% if post.translated_to|length > 1 %}
|
||||
<div class="metadata posttranslations translations">
|
||||
<h3 class="posttranslations-intro">{{ messages("Also available in:") }}</h3>
|
||||
{% for langname in translations|sort %}
|
||||
{% if langname != lang and post.is_translation_available(langname) %}
|
||||
<p><a href="{{ post.permalink(langname) }}" rel="alternate" hreflang="{{ langname }}">{{ messages("LANGUAGE", langname) }}</a></p>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro html_sourcelink() %}
|
||||
{% if show_sourcelink %}
|
||||
<p class="sourceline"><a href="{{ post.source_link() }}" id="sourcelink">{{ messages("Source") }}</a></p>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro html_post_header() %}
|
||||
{{ html_title() }}
|
||||
<span class="post-date">
|
||||
<time class="published dt-published" datetime="{{ post.formatted_date('webiso') }}" itemprop="datePublished" title="{{ post.formatted_date(date_format)|e }}">{{ post.formatted_date(date_format)|e }}</time>
|
||||
</span>
|
||||
{% if post.meta('link') %}
|
||||
<p class="linkline"><a href="{{ post.meta('link') }}">{{ messages("Original site") }}</a></p>
|
||||
{% endif %}
|
||||
{% if post.description() %}
|
||||
<meta name="description" itemprop="description" content="{{ post.description()|e }}">
|
||||
{% endif %}
|
||||
|
||||
{{ html_translations(post) }}
|
||||
</header>
|
||||
{% endmacro %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue