blob: 2de9683156cf4a134bab79c69ae2a4fe14a1713b (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseURL }}
<header class="main-header " style="background-image: url({{.Site.BaseURL}}{{.Site.Params.cover}})">
<nav class="main-nav overlay clearfix">
{{ if .Site.Params.logo }}
<a class="blog-logo" href="{{ .Site.BaseURL }}"><img src="{{ .Site.BaseURL }}{{.Site.Params.logo}}" alt="Blog Logo" /></a>
{{end}}
<!--
{{ if .Site.Menus.main }}
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a>
{{else}}
{{ if .Site.Params.RSSLink}}
<a class="menu-button icon-feed" href="{{.Site.Params.RSSLink }}"> Subscribe</a>
{{else}}
<a class="menu-button icon-feed" href="{{ .RSSLink }}"> Subscribe</a>
{{end}}
{{end}}
-->
</nav>
<div class="vertical">
<div class="main-header-content inner">
<h1 class="page-title">
<a class="btn-bootstrap-2" href="#content">{{ .Site.Title }}</a>
</h1>
<h2 class="page-description">{{ .Site.Params.description }}</h2>
</div>
</div>
<a class="scroll-down icon-arrow-left" href="#content"><span class="hidden">Scroll Down</span></a>
</header>
<main id="content" class="content" role="main">
<article class="post {{ .Section }}">
<header class="post-header">
<h1 class="post-title">{{.Title}}</h1>
<section class="post-meta">
{{ if eq .Section "post"}}
<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
{{ .Date.Format "Jan 2, 2006" }}
</time>
{{end}}
{{ range .Params.tags }}
<span class="post-tag small"><a href="{{ $baseurl }}tags/{{ . | urlize }}/">#{{ . }}</a></span>
{{ end }}
</section>
</header>
<section class="post-content">
{{ .Content }}
</section>
<footer class="post-footer">
{{if .Site.Params.logo}}
<figure class="author-image">
<a class="img" href="{{.Site.BaseURL}}" style="background-image: url({{ $baseurl }}{{.Site.Params.logo}})"><span class="hidden">{{.Site.Params.author}}'s Picture</span></a>
</figure>
{{end}}
{{ partial "author.html" . }}
{{ if ne .Params.share false}}
<section class="share">
<h4>Share this {{ if .Type }}{{.Type}}{{else}}post{{end}}</h4>
<a class="icon-twitter" style="font-size: 1.4em" href="https://twitter.com/share?text={{ .Title | safeHTML}}&url={{ .Permalink }}"
onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
<span class="hidden">Twitter</span>
</a>
<a class="icon-facebook" style="font-size: 1.4em" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}"
onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
<span class="hidden">Facebook</span>
</a>
<a class="icon-google-plus" style="font-size: 1.4em" href="https://plus.google.com/share?url={{ .Permalink }}"
onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
<span class="hidden">Google+</span>
</a>
</section>
{{end}}
{{ if ne .Params.comments false}}
{{ with .Site.DisqusShortname }}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = '{{ . }}';
(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="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
{{ end }}
{{ end }}
</footer>
</article>
</main>
{{ partial "footer.html" . }}
|