diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d54ba3b..8943dda 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -23,6 +23,7 @@ canonifyurls = true githubName = "eueung" linkedinName = "eueung" mediumName = "" + igName = "" logo = "hugo-logo.png" orgName = "EM" diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2262936..8ae1ac4 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -29,6 +29,8 @@

{{ .Site.Params.subtitle }}

{{ if .Site.Params.linkedinName }}{{end}} {{ if .Site.Params.mediumName }}{{end}} + + {{ if .Site.Params.igName }}{{end}} {{ if .Site.Params.RSSLink}} Subscribe diff --git a/layouts/partials/post-list-term.html b/layouts/partials/post-list-term.html index f4c81e7..34de98f 100644 --- a/layouts/partials/post-list-term.html +++ b/layouts/partials/post-list-term.html @@ -1,5 +1,5 @@ -{{ $pages := ((where .Site.Pages "Type" "post") | shuffle) }} -{{ range first 3 $pages}} +{{ $pages := (.Site.RegularPages | shuffle) }} +{{ range first 6 $pages}}
{{if .Params.image}} diff --git a/layouts/partials/post-list.html b/layouts/partials/post-list.html index 50a80a0..da63603 100644 --- a/layouts/partials/post-list.html +++ b/layouts/partials/post-list.html @@ -1,4 +1,4 @@ -{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") }} +{{ $paginator := .Paginate .Site.RegularPages }} {{ range $paginator.Pages }}
diff --git a/layouts/partials/readnext-random-sori.html b/layouts/partials/readnext-random-sori.html index c251581..bbe27de 100644 --- a/layouts/partials/readnext-random-sori.html +++ b/layouts/partials/readnext-random-sori.html @@ -1,4 +1,4 @@ -{{ $posts := (where .Site.RegularPages "Section" "==" "post") }}{{ $postCount := len $posts }}{{if ge $postCount 4}}{{ $currentPage := . }} +{{ $posts := .Site.RegularPages }}{{ $postCount := len $posts }}{{if ge $postCount 4}}{{ $currentPage := . }}