mirror of
https://github.com/softinio/softinio.com.git
synced 2025-09-05 11:16:41 -07:00
Switched to SPF13 theme
This commit is contained in:
parent
dc8f68529f
commit
6425fec733
286 changed files with 3612 additions and 6951 deletions
|
@ -1,41 +0,0 @@
|
|||
{{ partial "head.html" . }}
|
||||
<div class="content container">
|
||||
<div class="posts">
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
|
||||
{{ range $paginator.Pages }}
|
||||
<div class="post">
|
||||
<h1 class="post-title">
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</h1>
|
||||
<span class="post-date">{{ .Date.Format "Jan 2, 2006" }} · {{ .ReadingTime }} minute read{{ if .Site.DisqusShortname }} · <a href="{{ .Permalink }}#disqus_thread">Comments</a>{{ end }}
|
||||
{{ if isset .Params "categories" }}
|
||||
<br/>
|
||||
{{ range .Params.categories }}<a class="label" href="{{ "/categories/" | absURL }}{{ . | urlize }}">{{ . }}</a>{{ end }}
|
||||
{{ end }}</span>
|
||||
{{ if eq .Site.Params.truncate false }}
|
||||
{{ .Content }}
|
||||
{{ else if .Description }}
|
||||
<p>{{ .Description }}</p>
|
||||
<a href="{{ .Permalink }}">Read On →</a>
|
||||
{{ else }}
|
||||
{{ .Summary }}
|
||||
{{ if .Truncated }}<a href="{{ .Permalink }}">Read On →</a>{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ template "_internal/pagination.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ with .Site.DisqusShortname }}
|
||||
<script type="text/javascript">
|
||||
var disqus_shortname = {{ . }};
|
||||
(function () {
|
||||
var s = document.createElement('script'); s.async = true;
|
||||
s.type = 'text/javascript';
|
||||
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
|
||||
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||
}());
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ partial "foot.html" . }}
|
Loading…
Add table
Add a link
Reference in a new issue