mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-11-16 21:36:56 +01:00
remove redundant layout, add showSummary switch
This commit is contained in:
parent
c5e3a781e9
commit
fa6bda5448
4 changed files with 6 additions and 22 deletions
|
@ -131,6 +131,7 @@ section {
|
||||||
|
|
||||||
.page-list .content-title {
|
.page-list .content-title {
|
||||||
margin-top: 4.2rem;
|
margin-top: 4.2rem;
|
||||||
|
margin-bottom: 1.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-list .content-title:first-child {
|
.page-list .content-title:first-child {
|
||||||
|
|
|
@ -39,8 +39,10 @@ params:
|
||||||
# copyrightHolder: Copyright Holder
|
# copyrightHolder: Copyright Holder
|
||||||
# Show the "Powered by Hugo-Tufte and Hugo."
|
# Show the "Powered by Hugo-Tufte and Hugo."
|
||||||
showPoweredBy: false
|
showPoweredBy: false
|
||||||
# Site wide kill switch
|
# Site wide kill switch for date in pages
|
||||||
hidedate: false
|
hidedate: false
|
||||||
|
# Site wide kill switch for post summary on home page
|
||||||
|
showSummary: true
|
||||||
# Site wide kill switch for LaTeX support
|
# Site wide kill switch for LaTeX support
|
||||||
math: true
|
math: true
|
||||||
KaTeXVersion: 0.16.4
|
KaTeXVersion: 0.16.4
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
{{ .Title }}
|
|
||||||
<!-- {{ template "_internal/pagination.html" }} -->
|
|
||||||
Hello this is a list of content.
|
|
||||||
{{ .TableOfContents }}
|
|
||||||
|
|
||||||
{{ $paginator := .Paginate ( (.Data.Pages.GroupByDate "2006") ) }}
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<li>PageNumber: {{ $paginator.PageNumber }}</li>
|
|
||||||
<li>URL: {{ $paginator.URL}}</li>
|
|
||||||
<li>Pages: {{ $paginator.Pages }}</li>
|
|
||||||
<li>TotalPages: {{ $paginator.TotalPages }}</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
{{ range $paginator.PageGroups }}
|
|
||||||
<h2>{{ .Key }}</h2>
|
|
||||||
{{ range .Pages }}
|
|
||||||
<br/>
|
|
||||||
<a href="{{ .RelPermalink }}">{{.Title}}</a>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
|
@ -22,9 +22,11 @@
|
||||||
{{ if .Description }}
|
{{ if .Description }}
|
||||||
<p>{{ .Description }}</p>
|
<p>{{ .Description }}</p>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
{{ if .Site.Params.showSummary }}
|
||||||
<p>{{ truncate 140 .Summary }}</p>
|
<p>{{ truncate 140 .Summary }}</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{{ if and (.Paginator) (gt .Paginator.TotalPages 1) }}
|
{{ if and (.Paginator) (gt .Paginator.TotalPages 1) }}
|
||||||
|
|
Loading…
Reference in a new issue