nasg/templates/Home.j2.html

75 lines
2.8 KiB
HTML
Raw Normal View History

2019-01-15 21:28:58 +00:00
{% extends "base.j2.html" %}
{% block title %}{{ post.title }} - {{ site.domain }}{% endblock %}
2019-01-15 21:28:58 +00:00
{% block meta %}
<meta name="author" content="{{ author.name }} <{{ author.email }}>" />
<meta name="description" content="{{ post.summary|e }}" />
<link rel="canonical" href="{{ post.url }}" />
{% for category, latest in elements %}
<link rel="alternate" type="application/rss+xml" title="{{ category.title }} RSS feed" href="{{ category.feed }}" />
<link rel="alternate" type="application/atom+xml" title="{{ category.title }} ATOM feed" href="{{ category.feed }}atom.xml" />
<link rel="feed" title="{{ category.title}} feed" href="{{ category.url }}" />
{% endfor %}
{% endblock %}
2019-01-15 21:28:58 +00:00
{% block content %}
<main class="content-body h-feed hfeed" vocab="http://schema.org/" typeof="Blog WebPage">
2019-01-15 21:28:58 +00:00
<aside>
<div>
{{ post.html_content }}
</div>
</aside>
{% for category, post in elements %}
2019-01-15 21:28:58 +00:00
<section>
<h2>post in
<a href="{{ category.url }}/">
<svg width="16" height="16"><use xlink:href="#icon-{{ category.name }}" /></svg>
{{ category.name }}
</a>
</h2>
<article class="h-entry hentry singular" lang="{{ post.lang }}" property="blogPost" typeof="BlogPosting">
2019-01-15 21:28:58 +00:00
<header>
<h3 class="p-name entry-title" property="name headline" >
{% if post.is_reply %}
2019-01-15 21:28:58 +00:00
<svg class="icon" width="16" height="16">
<use xlink:href="#icon-reply" />
</svg>
<a href="{{ post.url }}/">
2019-01-15 21:28:58 +00:00
RE:
</a>
<a href="{{ post.is_reply }}" class="u-in-reply-to">
{{ post.is_reply }}
2019-01-15 21:28:58 +00:00
</a>
{% else %}
<a href="{{ post.url }}">
<span class="entry-title p-name">{{ post.title }}</span>
2019-01-15 21:28:58 +00:00
</a>
{% endif %}
</h3>
<a href="{{ post.url }}" property="url mainEntityOfPage" class="u-url bookmark"></a>
2019-01-15 21:28:58 +00:00
</header>
{% if post.summary %}
<div class="e-summary entry-summary" property="description">
{{ post.html_summary }}
2019-01-15 21:28:58 +00:00
<span class="more">
<a href="{{ post.url }}">
{% if post.lang == 'hu' %}Tovább »{% else %}Continue »{% endif %}
2019-01-15 21:28:58 +00:00
</a>
</span>
</div>
{% else %}
<div class="e-content entry-content" property="articleBody">
{{ post.html_content }}
2019-01-15 21:28:58 +00:00
</div>
{% endif %}
{% include 'meta-publisher.j2.html' %}
2019-01-15 21:28:58 +00:00
</article>
</section>
{% endfor %}
</main>
{% endblock %}