Compare commits
2 Commits
master
...
feature/pa
Author | SHA1 | Date |
---|---|---|
Yihui Xie | a366614aaa | |
Yihui Xie | d1dd42adb9 |
|
@ -7,6 +7,7 @@ disqusShortname = ""
|
||||||
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
|
ignoreFiles = ["\\.Rmd$", "\\.Rmarkdown$", "_files$", "_cache$"]
|
||||||
preserveTaxonomyNames = true
|
preserveTaxonomyNames = true
|
||||||
footnotereturnlinkcontents = "↩"
|
footnotereturnlinkcontents = "↩"
|
||||||
|
paginate = 1
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
post = "/post/:year/:month/:day/:slug/"
|
post = "/post/:year/:month/:day/:slug/"
|
||||||
|
|
|
@ -6,15 +6,15 @@
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|
||||||
{{if not .IsHome }}
|
|
||||||
<ul>
|
<ul>
|
||||||
{{ range (where .Data.Pages "Section" "!=" "") }}
|
{{ $paginator := .Paginate (where .Data.Pages "Section" "!=" "") }}
|
||||||
|
{{ range $paginator.Pages }}
|
||||||
<li>
|
<li>
|
||||||
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
|
<span class="date">{{ .Date.Format "2006/01/02" }}</span>
|
||||||
<a href="{{ .URL }}">{{ .Title }}</a>
|
<a href="{{ .URL }}">{{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ template "_internal/pagination.html" . }}
|
||||||
|
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
|
|
@ -22,6 +22,11 @@ hr {
|
||||||
color: #ddd;
|
color: #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* pagination */
|
||||||
|
.pagination { text-align: center; }
|
||||||
|
.pagination li { display: inline; }
|
||||||
|
.pagination a { padding: 0 .2em; }
|
||||||
|
|
||||||
/* code */
|
/* code */
|
||||||
pre {
|
pre {
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
|
|
Loading…
Reference in New Issue