Next: Improve display of meta data on static pages

This commit is contained in:
Matthias Mees 2015-05-07 19:18:05 +02:00
parent e4eb9a0d1f
commit ca30b24f75
5 changed files with 7 additions and 14 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
Name: Next
Author: Matthias Mees, mm@yellowled.de
Date: 2015-02-10
Date: 2015-05-07
Require Serendipity: 2.0

View File

@ -1,5 +1,10 @@
<article id="page-{$staticpage_pagetitle|makeFilename}" class="post clearfix">
<h2 class="post-title">{if $staticpage_articleformat}{if $staticpage_articleformattitle}{$staticpage_articleformattitle|escape}{else}{$staticpage_pagetitle}{/if}{else}{if $staticpage_headline}{$staticpage_headline|escape}{else}{$staticpage_pagetitle}{/if}{/if}</h2>
<header>
<h2 class="post-title"><a href="{$currpage}">{if $staticpage_articleformat}{if $staticpage_articleformattitle}{$staticpage_articleformattitle|escape}{else}{$staticpage_pagetitle}{/if}{else}{if $staticpage_headline}{$staticpage_headline|escape}{else}{$staticpage_pagetitle}{/if}{/if}</a></h2>
{if $staticpage_author or $staticpage_lastchange}
<span class="post-info">{if $staticpage_author}{$CONST.POSTED_BY} {$staticpage_author|escape}{/if}{if $staticpage_lastchange} {$CONST.ON} <time datetime="{$staticpage_lastchange|serendipity_html5time}">{$staticpage_lastchange|date_format:$template_option.date_format}</time>{/if}
{/if}
</header>
{if is_array($staticpage_childpages)}
<ul id="child-pages">
{foreach from=$staticpage_childpages item="childpage"}
@ -23,16 +28,4 @@
{$staticpage_content}
{/if}
{/if}
{if $staticpage_author or $staticpage_lastchange}
<footer class="page-info post-info">
<ul class="meta">
{if $staticpage_author}
<li>{$CONST.POSTED_BY} {$staticpage_author|escape}</li>
{/if}
{if $staticpage_lastchange}
<li>{$CONST.ON} <time datetime="{$staticpage_lastchange|serendipity_html5time}">{$staticpage_lastchange|date_format:$template_option.date_format}</time></li>
{/if}
</ul>
</footer>
{/if}
</article>