fix actions
This commit is contained in:
@ -6,8 +6,8 @@
|
||||
<div id="blog-archives" class="category">
|
||||
<ul class="cp_list">
|
||||
{{ range .Data.Pages.Reverse }}
|
||||
<li>
|
||||
<a href="{{.Permalink}}">{{.Title}}</a>
|
||||
<li class="blog-list-first">
|
||||
<a href="{{.Permalink}}">{{.Title}}</a> <span class="blog-date">{{ .Date.Local.Format "2006-01-02" }}</span>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
@ -2,18 +2,15 @@
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
{{ $s := path.Dir (.Permalink | relURL) }}
|
||||
{{ $t := index (split $s "/") 2 }}
|
||||
{{ $o := index (split $s "/") 1 }}
|
||||
|
||||
{{ if eq $t "img" }}
|
||||
{{ partial "img.html" . }}
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<article>
|
||||
<div class="content">
|
||||
{{ if ne .Lastmod .Date }}<div class="post-time-date">{{ .Lastmod.Format "2006-01-02" }}</div>{{ end }}
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</article>
|
||||
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user