[SITE] add template, blueprint, css for the blog
This commit is contained in:
parent
64cb550e9f
commit
2f2fa568ef
14 changed files with 466 additions and 9 deletions
22
site/snippets/blogexcerpt.php
Normal file
22
site/snippets/blogexcerpt.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
// -------------------------------------------
|
||||
// kirby snippet FOR jannikbeyerstedt.de
|
||||
|
||||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
|
||||
// usage: snippet('blogexcerpt',["article"=>$article,"length"=>200,"base_url"=>$base_url])
|
||||
// -------------------------------------------
|
||||
|
||||
$a = $article;
|
||||
?>
|
||||
<article class="excerpt">
|
||||
<h2><a href="<?php echo $a->url()?>"><?php echo $a->title()->html() ?></a></h2>
|
||||
<p><?php echo $a->text()->excerpt($length) ?>
|
||||
<a class="more" href="<?php echo $a->url()?>">»</a>
|
||||
</p>
|
||||
<div class="meta">
|
||||
<time datetime="<?php echo $a->date('Y-m-d') ?>"><?php echo $a->date('d. M. Y') ?></time>
|
||||
<?php echo tags($base_url, $a); ?>
|
||||
</div>
|
||||
</article>
|
Loading…
Add table
Add a link
Reference in a new issue