blob: 7c2ff38b78259a82ce389628fe9f52956ff9d1f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{{ define "main" }}
{{ partial "header.html" . }}
<section class="main post-detail">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
<p class="entry-meta"><span class="entry-time">{{ .Date.Format "Jan 2, 2006" }}</span> {{ .ReadingTime }} min read</p>
</header>
{{ partial "adsense.html" . }}
<article class="post-content">{{ .Content }}</article>
<footer class="post-footer">
{{ if isset .Params "tags" }}
<ul class="post-tags">
{{ range $tag := .Params.tags }}
<li class="post-tag"><a href="/tags/{{ $tag | urlize }}"><span class="tag">{{ $tag | title }}</span></a></li>
{{ end }}
</ul>
{{ end }}
<div class="sharing">
<a class="share share-facebook" target="_blank" href="https://facebook.com/sharer/sharer.php?u={{ .Permalink }}" title="Share on Facebook">
<svg class="icon icon-facebook" fill="currentColor"><use xlink:href="#icon-facebook" /></svg>
</a>
<a class="share share-twitter" target="_blank" href="https://twitter.com/intent/tweet/?text={{ .Title }}&url={{ .Permalink }}" title="Share on Twitter">
<svg class="icon icon-twitter" fill="currentColor"><use xlink:href="#icon-twitter" /></svg>
</a>
<a class="share share-google" target="_blank" href="https://plus.google.com/share?url={{ .Title }}&url={{ .Permalink }}" title="Share on Google+">
<svg class="icon icon-google" fill="currentColor"><use xlink:href="#icon-googleplus" /></svg>
</a>
</div>
</footer>
</section>
{{ partial "footer.html" . }}
{{ end }}
|