You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1010 B
Twig

{% extends "base.html.twig" %}
{% import "macros.html.twig" as macros %}
{% block head %}
<meta property="og:title" content="eater — {{ post.meta.title }}" />
<meta property="og:type" content="article" />
<meta property="og:url" content="{{ config.blog.link }}{{ post.slug }}" />
{% endblock %}
{% block title %}{{ parent() }}{{ post.meta.title }}{% endblock %}
{% block body %}
<h1>{{ post.meta.title }}</h1>
{{ macros.meta(post) }}
<div class="content">
{{ post_body|raw }}
</div>
{% if post.meta.games %}
{% set games = post.meta.games|filter(g => games[g])|map(g => games[g]) %}
{% if games|length > 0 %}
<h3>games</h3>
{% for game in games %}
<div class="post-game">
<h4><a href="/game/{{ game.slug }}">{{ game.meta.title }}</a></h4>
{{ macros.embed(game) }}
</div>
{% endfor %}
{% endif %}
{% endif %}
{% endblock %}