mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-23 03:57: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
@ -33,11 +33,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</footer>
|
</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 outputs important scripts and data with this tag }}
|
||||||
{{ghost_foot}}
|
{{ghost_foot}}
|
||||||
|
|
||||||
|
{{! The main JavaScript file for Casper }}
|
||||||
|
<script type="text/javascript" src="assets/js/index.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -23,8 +23,8 @@
|
|||||||
|
|
||||||
<article class="{{post_class}}">
|
<article class="{{post_class}}">
|
||||||
<header class="post-header">
|
<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>
|
<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="/{{slug}}">{{title}}</a></h2>
|
<h2 class="post-title"><a href="{{url}}">{{title}}</a></h2>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
<section class="post-excerpt">
|
<section class="post-excerpt">
|
||||||
|
10
post.hbs
10
post.hbs
@ -22,7 +22,7 @@
|
|||||||
{{#post}}
|
{{#post}}
|
||||||
|
|
||||||
{{! Everything below outputs content of the the post which has been published }}
|
{{! 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>
|
<h1 class="post-title">{{title}}</h1>
|
||||||
|
|
||||||
@ -34,16 +34,16 @@
|
|||||||
|
|
||||||
{{#if author}}
|
{{#if author}}
|
||||||
<section class="author">
|
<section class="author">
|
||||||
<h4>{{author}}</h4>
|
<h4>{{author.name}}</h4>
|
||||||
<p>{{author.bio}}</p>
|
<p>{{author.bio}}</p>
|
||||||
</section>
|
</section>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<section class="share">
|
<section class="share">
|
||||||
<h4>Share this post</h4>
|
<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-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={{@blog.url}}/{{slug}}"><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">Twitter</span></a>
|
<a class="icon-google-plus" href="#"><span class="hidden">Google+</span></a>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
Loading…
Reference in New Issue
Block a user