mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 19:47:38 +00:00
Theme helper blitz
- date no longer requires published_at - author.name now works.. so using for consistency - url has absolute flag - other misc fixes
This commit is contained in:
parent
dc89697827
commit
618eba0e2f
@ -32,12 +32,12 @@
|
||||
<section class="poweredby">Proudly published with <a class="icon-ghost" href="http://tryghost.org">Ghost</a></section>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{{! The main JavaScript file for Casper }}
|
||||
<script type="text/javascript" src="assets/js/index.js"></script>
|
||||
|
||||
{{! Ghost outputs important scripts and data with this tag }}
|
||||
{{ghost_foot}}
|
||||
|
||||
{{! The main JavaScript file for Casper }}
|
||||
<script type="text/javascript" src="assets/js/index.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -20,11 +20,11 @@
|
||||
|
||||
{{! Each post will be output using this markup }}
|
||||
{{#foreach posts}}
|
||||
|
||||
|
||||
<article class="{{post_class}}">
|
||||
<header class="post-header">
|
||||
<span class="post-meta"><time datetime="{{date published_at format='YYYY-MM-DD'}}">{{date published_at format="DD MMM YYYY"}}</time> {{#if tags}}on {{tags}}{{/if}}</span>
|
||||
<h2 class="post-title"><a href="/{{slug}}">{{title}}</a></h2>
|
||||
<span class="post-meta"><time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time> {{#if tags}}on {{tags}}{{/if}}</span>
|
||||
<h2 class="post-title"><a href="{{url}}">{{title}}</a></h2>
|
||||
|
||||
</header>
|
||||
<section class="post-excerpt">
|
||||
|
10
post.hbs
10
post.hbs
@ -22,7 +22,7 @@
|
||||
{{#post}}
|
||||
|
||||
{{! Everything below outputs content of the the post which has been published }}
|
||||
<span class="post-meta"><time datetime="{{date published_at format="YYYY-MM-DD"}}">{{date published_at format='DD MMM YYYY'}}</time> {{#if tags}}on {{tags}}{{/if}}</a></span>
|
||||
<span class="post-meta"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time> {{#if tags}}on {{tags}}{{/if}}</span>
|
||||
|
||||
<h1 class="post-title">{{title}}</h1>
|
||||
|
||||
@ -34,16 +34,16 @@
|
||||
|
||||
{{#if author}}
|
||||
<section class="author">
|
||||
<h4>{{author}}</h4>
|
||||
<h4>{{author.name}}</h4>
|
||||
<p>{{author.bio}}</p>
|
||||
</section>
|
||||
{{/if}}
|
||||
|
||||
<section class="share">
|
||||
<h4>Share this post</h4>
|
||||
<a class="icon-twitter" href="http://twitter.com/share?text={{title}}&url={{@blog.url}}/{{slug}}"><span class="hidden">Twitter</span></a>
|
||||
<a class="icon-facebook" href="http://www.facebook.com/sharer.php?u={{@blog.url}}/{{slug}}"><span class="hidden">Twitter</span></a>
|
||||
<a class="icon-google-plus" href="#"><span class="hidden">Twitter</span></a>
|
||||
<a class="icon-twitter" href="http://twitter.com/share?text={{title}}&url={{url absolute}}"><span class="hidden">Twitter</span></a>
|
||||
<a class="icon-facebook" href="http://www.facebook.com/sharer.php?u={{url absolute}}"><span class="hidden">Facebook</span></a>
|
||||
<a class="icon-google-plus" href="#"><span class="hidden">Google+</span></a>
|
||||
</section>
|
||||
|
||||
</footer>
|
||||
|
Loading…
Reference in New Issue
Block a user