Skip to content

Commit

Permalink
Add "back" link to articles
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Apr 21, 2016
1 parent 543ca51 commit 2432bc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/article.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% if nicetime %}<time>{{nicetime}}</time>{% endif %}
<h1>{{title}}</h1>
</header>
{{body|markdown}}
{{(body ~ "\n\n\[[Zurückgehen](" ~ root ~ ")\].")|markdown}}
</article>
</div>
{% endblock %}
{% endblock %}
1 change: 1 addition & 0 deletions web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
$twig->addGlobal('catchphrase', @file_get_contents('../catchphrase.txt'));
$twig->addGlobal('headers', @file_get_contents('../headers.txt'));
$twig->addGlobal('tracking', @file_get_contents('../tracking.txt'));
$twig->addGlobal('root', 'https://'.$_SERVER['SERVER_NAME']);

// flysystem
$flysystem = new \League\Flysystem\Adapter\Local(__DIR__.'/../contents');
Expand Down

0 comments on commit 2432bc1

Please sign in to comment.