adapt to npf.io themes and add social stuffs

This commit is contained in:
Huy Tran 2018-01-21 18:09:55 +07:00
parent 5814b3e80c
commit 331ef48d5c
27 changed files with 1980 additions and 178 deletions

View file

@ -4,7 +4,7 @@
<div class="content container">
{{ block "main" . -}}{{- end }}
</div>
{{ template "_internal/google_analytics_async.html" . }}
</body>
</html>

View file

@ -1,8 +1,9 @@
{{ define "main" -}}
<h1 class="title">Blog Posts</h1>
<ul class="posts">
{{ range .Data.Pages -}}
<li>
<span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
<span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Jan 2, 2006" }}</time></span>
</li>
{{- end }}
</ul>

View file

@ -1,7 +1,7 @@
{{ define "main" -}}
<div class="post">
<h1>{{ .Title }}</h1>
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
<span class="post-date">{{ .Date.Format "Jan 2, 2006" }}</span>
{{ .Content }}
</div>