diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..d6fec54 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,43 @@ +{{ partial "head.html" . }} +<body id="post" {{ if isset ($.Scratch.Get "Params") "image" }}class="feature"{{ end }}> +{{ partial "navigation.html" }} + {{ if isset ($.Scratch.Get "Params") "image" }} +<div class="entry-header"> +{{ $imageparams := index ($.Scratch.Get "Params") "image" }} + {{ if $imageparams.credit }}<div class="image-credit">Image source: <a href="{{ $imageparams.creditlink }}">{{ $imageparams.credit }}</a></div><!-- /.image-credit -->{{ end }} + <div class="entry-image"> + <img src="{{ .Site.BaseURL }}/images/{{ $imageparams.feature }}" alt="{{ .Title }}"> + </div><!-- /.entry-image --> +</div><!-- /.entry-header --> + {{ end }} + +<div id="main" role="main"> + <article class="hentry"> + <header class="header-title"> + <div class="header-title-wrap"> + {{ if .Params.link }} + <h1 class="entry-title"><i class="fa fa-bookmark permalink"></i> <a href="{{ .Params.link }}">{{ .Title }}</a></h1> + {{ else }} + <h1 class="entry-title"><a href="{{ .Permalink }}" rel="bookmark" title="{{ .Title }}">{{ .Title }}</a></h1> + {{ end }} + <h2><span class="entry-date date published"><time datetime="{{ .Date }}">{{ .Date.Format "January 2, 2006" }}</time></span></h2> + <p class="entry-reading-time"> + <i class="fa fa-clock-o"></i> + {{ partial "read-time-index.html" . }} + </p><!-- /.entry-reading-time --> + </div><!-- /.header-title-wrap --> + </header> + <div class="entry-content"> + {{ .Content }} + <footer class="entry-meta"> + <span class="entry-tags">{{ range .Params.tags }}<a href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}" title="Pages tagged {{ . }}" class="tag"><span class="term">{{ . }}</span></a>{{ end }}</span> + {{ if gt .Lastmod .Date }}<span>Updated on <span class="entry-date date updated"><time datetime="{{ .Lastmod }}">{{ .Lastmod.Format "Jan 2, 2006" }}</time></span></span> + <span class="author vcard"><span class="fn">{{ $.Site.Author }}</span></span>{{ end }} + {{ if not (eq .Params.share false) }}{{ partial "share.html" }}{{ end }} + </footer> + </div><!-- /.entry-content --> + <section id="disqus_thread">{{ template "_internal/disqus.html" . }}</section><!-- /#disqus_thread --> + <!--{% if site.related_posts.size > 0 %}{% include read-more.html %}{% endif %} --> + </article> +</div><!-- /#main --> +{{ partial "foot.html" . }} |