forked from varia/varia.website
various small formatting fixes & h-entry experiments
This commit is contained in:
parent
9bfeaa4589
commit
8ca9518d6f
@ -11,13 +11,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<div class="file type_folder">
|
|
||||||
<a title="../" href="/log/" id="link0" class="type_folder"><img alt="../" src="/icons/back.png" class="type_folder"></a>
|
|
||||||
</br>
|
|
||||||
<span class="filename">../</span>
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<section id="content" class="body h-entry">
|
|
||||||
<header id="banner">
|
<header id="banner">
|
||||||
{% for p in pages %}
|
{% for p in pages %}
|
||||||
{% if p.title == 'header' %}
|
{% if p.title == 'header' %}
|
||||||
@ -25,6 +19,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<section id="content" class="body h-entry">
|
||||||
<div class="entry-title p-name">
|
<div class="entry-title p-name">
|
||||||
{{ article.title }}
|
{{ article.title }}
|
||||||
</div>
|
</div>
|
||||||
@ -37,7 +33,6 @@
|
|||||||
{% set thumb_size =''%}
|
{% set thumb_size =''%}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<img src="{{ article.featured_image | replace('images','images'+thumb_size) }}">
|
<img src="{{ article.featured_image | replace('images','images'+thumb_size) }}">
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
@ -57,12 +52,9 @@
|
|||||||
{% if article.translations %}
|
{% if article.translations %}
|
||||||
<div class="article-translation">
|
<div class="article-translation">
|
||||||
{% for translation in article.translations %}
|
{% for translation in article.translations %}
|
||||||
{% if translation.lang == 'nl' %}
|
{% if translation.lang == 'nl' %}<a href="{{ translation.url }}">Lees dit artikel in het Nederlands</a>
|
||||||
<a href="{{ translation.url }}">Lees dit artikel in het Nederlands</a>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if translation.lang == 'en' %}<a href="{{ translation.url }}">Read this article in English</a>
|
||||||
{% if translation.lang == 'en' %}
|
|
||||||
<a href="{{ translation.url }}">Read this article in English</a>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
@ -71,7 +63,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="entry-content-container">
|
<div class="entry-content-container">
|
||||||
<div class="entry-content e-content">
|
<div class="entry-content e-content">
|
||||||
|
|
||||||
{{ article.content }}
|
{{ article.content }}
|
||||||
<div class="separator"><hr></div>
|
<div class="separator"><hr></div>
|
||||||
</div><!-- /.entry-content -->
|
</div><!-- /.entry-content -->
|
||||||
|
@ -17,11 +17,9 @@
|
|||||||
<div id="translation">
|
<div id="translation">
|
||||||
{% if I18N_SUBSITES %}
|
{% if I18N_SUBSITES %}
|
||||||
{% for lang, url in I18N_SUBSITES.items() %}
|
{% for lang, url in I18N_SUBSITES.items() %}
|
||||||
{% if lang == 'nl' %}
|
{% if lang == 'nl' %}<li>{% if lang == DEFAULT_LANG %} class="active"{% endif %}><a href="/">{{ lang }}</a></li>
|
||||||
<li{% if lang == DEFAULT_LANG %} class="active"{% endif %}><a href="/">{{ lang }}</a></li>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if lang == 'en' %}
|
{% if lang == 'en' %}<li>{% if lang == DEFAULT_LANG %} class="active"{% endif %}><a href="/{{ lang }}/">{{ lang }}</a></li>
|
||||||
<li{% if lang == DEFAULT_LANG %} class="active"{% endif %}><a href="/{{ lang }}/">{{ lang }}</a></li>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -30,9 +28,7 @@
|
|||||||
<li><a href="feeds/all-{{ DEFAULT_LANG }}.rss.xml" type="application/rss+xml"><i class="fa fa-rss "></i>RSS</a></li>
|
<li><a href="feeds/all-{{ DEFAULT_LANG }}.rss.xml" type="application/rss+xml"><i class="fa fa-rss "></i>RSS</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -27,14 +27,10 @@ serves as the default image for posts whose featured_image is not set. #}
|
|||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta name="twitter:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}">
|
<meta name="twitter:title" content="{{ article.title|striptags|e }} {%if article.subtitle %} - {{ article.subtitle|striptags|e }} {% endif %}">
|
||||||
<meta name="twitter:description" content="{% if article.summary %}{{article.summary|striptags}}{% endif %}">
|
<meta name="twitter:description" content="{% if article.summary %}{{article.summary|striptags}}{% endif %}">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% if article.featured_image %}
|
{% if article.featured_image %}
|
||||||
{% if I18N_SUBSITES %}
|
{% if I18N_SUBSITES %}
|
||||||
{% for lang, url in I18N_SUBSITES.items() %}
|
{% for lang, url in I18N_SUBSITES.items() %}
|
||||||
{% if lang == 'en' %}
|
{% if lang == 'en' %}
|
||||||
<!-- this is a dirty hack, FIXME -->
|
|
||||||
<meta property="og:image" content="http://varia.zone{{article.featured_image}}" />
|
<meta property="og:image" content="http://varia.zone{{article.featured_image}}" />
|
||||||
<meta property="og:image:secure_url" content="https://varia.zone{{article.featured_image}}" />
|
<meta property="og:image:secure_url" content="https://varia.zone{{article.featured_image}}" />
|
||||||
<meta name="twitter:image" content="https://varia.zone{{article.featured_image}}" >
|
<meta name="twitter:image" content="https://varia.zone{{article.featured_image}}" >
|
||||||
|
Loading…
Reference in New Issue
Block a user