From 00aff7585f60115789e63add1b44e0d5566c3042 Mon Sep 17 00:00:00 2001 From: Aldrine Einsteen Date: Tue, 14 Jul 2020 00:01:20 +0530 Subject: [PATCH] #73 Enable summary for the post in blog - enabling summary params variable --- exampleSite/config.toml | 3 +++ layouts/_default/list.html | 49 ++++++++++++++++++++------------------ 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fa3ab9fc..17505f83 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -36,6 +36,9 @@ copyright = "© {year}" # Currently, these icons are supported: # "Twitter", "GitHub", "Email", "Facebook", "GitLab", "Instagram", "LinkedIn", "YouTube" iconTitles = ["Twitter", "GitHub"] + [params.blog] + # Enables summary view on blogs + summary = true # This disables Hugo's default syntax highlighting in favor # of prismjs. If you wish to use Hugo's default syntax highlighting diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3df3ebe7..81b809ad 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{ define "styles" }} - {{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/posts.scss" "dest" "css/posts.css") }} +{{ $.Scratch.Set "style_opts" (dict "src" "scss/pages/posts.scss" "dest" "css/posts.css") }} {{ end }} {{ define "main" }} @@ -7,28 +7,31 @@ {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }}
- - {{ partial "browse-by-tag.html" .}} + + {{ partial "browse-by-tag.html" .}}
{{ partial "pagination.html" . }}