diff --git a/assets/scss/tufte.scss b/assets/scss/tufte.scss index 837c65a..bc506ab 100644 --- a/assets/scss/tufte.scss +++ b/assets/scss/tufte.scss @@ -131,6 +131,7 @@ section { .page-list .content-title { margin-top: 4.2rem; + margin-bottom: 1.4rem; } .page-list .content-title:first-child { diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index e81ec3e..c6f1ee5 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -39,8 +39,10 @@ params: # copyrightHolder: Copyright Holder # Show the "Powered by Hugo-Tufte and Hugo." showPoweredBy: false - # Site wide kill switch + # Site wide kill switch for date in pages hidedate: false + # Site wide kill switch for post summary on home page + showSummary: true # Site wide kill switch for LaTeX support math: true KaTeXVersion: 0.16.4 diff --git a/layouts/_default/paginate.list.html b/layouts/_default/paginate.list.html deleted file mode 100644 index 73b34a5..0000000 --- a/layouts/_default/paginate.list.html +++ /dev/null @@ -1,21 +0,0 @@ -{{ .Title }} - -Hello this is a list of content. -{{ .TableOfContents }} - -{{ $paginator := .Paginate ( (.Data.Pages.GroupByDate "2006") ) }} - -
{{ .Description }}
{{ else }} + {{ if .Site.Params.showSummary }}{{ truncate 140 .Summary }}
{{ end }} + {{ end }} {{ end }}