mirror of
https://github.com/linuxserver/odin.git
synced 2026-01-09 06:42:26 +08:00
- Prepended 'lsio' to unique post ids - Changed parent CSS to make sure comments are sans-serif - Upped theme version number
107 lines
3.8 KiB
Handlebars
107 lines
3.8 KiB
Handlebars
{{!< default}}
|
|
|
|
{{! The comment above "< default" means - insert everything in this file into
|
|
the {body} of the default.hbs template, which contains our header/footer. }}
|
|
|
|
{{! Everything inside the #post tags pulls data from the post }}
|
|
{{#post}}
|
|
|
|
<header class="main-header post-head {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}">
|
|
<nav class="main-nav {{#if image}}overlay{{/if}} clearfix">
|
|
<a class="back-button icon-arrow-left" href="{{@blog.url}}"> Home</a>
|
|
<a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/"> Subscribe</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="content" role="main">
|
|
<article class="{{post_class}}">
|
|
|
|
<header class="post-header">
|
|
<h1 class="post-title">{{title}}</h1>
|
|
<section class="post-meta">
|
|
<time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time> {{tags prefix=" on "}}
|
|
</section>
|
|
<section class="social-share">
|
|
{{> "social_share"}}
|
|
</section>
|
|
</header>
|
|
|
|
<section class="post-content">
|
|
{{content}}
|
|
</section>
|
|
|
|
<footer class="post-footer">
|
|
|
|
{{! Everything inside the #author tags pulls data from the author }}
|
|
{{#author}}
|
|
|
|
{{#if image}}
|
|
<figure class="author-image">
|
|
<a class="img" href="{{url}}" style="background-image: url({{image}})"><span class="hidden">{{name}}'s Picture</span></a>
|
|
</figure>
|
|
{{/if}}
|
|
|
|
<section class="author">
|
|
<h4><a href="{{url}}">{{name}}</a></h4>
|
|
|
|
{{#if bio}}
|
|
<p>{{bio}}</p>
|
|
{{else}}
|
|
<p>Read <a href="{{url}}">more posts</a> by this author.</p>
|
|
{{/if}}
|
|
<div class="author-meta">
|
|
{{#if location}}<span class="author-location icon-location">{{location}}</span>{{/if}}
|
|
{{#if website}}<span class="author-link icon-link"><a href="{{website}}">{{website}}</a></span>{{/if}}
|
|
</div>
|
|
</section>
|
|
|
|
{{/author}}
|
|
|
|
|
|
{{#if published_at}}
|
|
<section class="post-comments">
|
|
<div id="disqus_thread"></div>
|
|
<script type="text/javascript">
|
|
// required: replace example with your forum shortname
|
|
if(disqus_shortname && typeof disqus_shortname === "string") {
|
|
var disqus_identifier = 'lsio{{id}}';
|
|
|
|
/* * * DON'T EDIT BELOW THIS LINE * * */
|
|
(function() {
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
})();
|
|
}
|
|
</script>
|
|
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
</section>
|
|
{{/if}}
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
</main>
|
|
|
|
<aside class="read-next">
|
|
{{#next_post}}
|
|
<a class="read-next-story {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
|
|
<section class="post">
|
|
<h2>{{title}}</h2>
|
|
<p>{{excerpt words="19"}}…</p>
|
|
</section>
|
|
</a>
|
|
{{/next_post}}
|
|
{{#prev_post}}
|
|
<a class="read-next-story prev {{#if image}}" style="background-image: url({{image}}){{else}}no-cover{{/if}}" href="{{url}}">
|
|
<section class="post">
|
|
<h2>{{title}}</h2>
|
|
<p>{{excerpt words="19"}}…</p>
|
|
</section>
|
|
</a>
|
|
{{/prev_post}}
|
|
</aside>
|
|
|
|
|
|
{{/post}}
|