From 755321104334a0d10e3fc7e2fa8c7a7790528acd Mon Sep 17 00:00:00 2001 From: Casual Date: Tue, 7 May 2024 13:04:15 +0300 Subject: [PATCH] no posts? --- hugo.yaml | 2 +- template.md | 20 ++++++++++++++++++++ themes/anubis2/layouts/index.html_bak | 15 +++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 template.md create mode 100644 themes/anubis2/layouts/index.html_bak diff --git a/hugo.yaml b/hugo.yaml index 76da36d..840d00a 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -67,7 +67,7 @@ params: style: dark-without-switcher mainSections: [ "blog" ] # which sections should be on index/main page sectionsWithFullContentOnListPage: [ "notes" ] # for which sections content should be displayed on list pages - readMore: true # show read more button + readMore: false # show read more button readNextPosts: 5 # show 5 related posts, 0 by default disableSummary: false toc: true # display Table of Contents diff --git a/template.md b/template.md new file mode 100644 index 0000000..99aace3 --- /dev/null +++ b/template.md @@ -0,0 +1,20 @@ ++++ +title = 'HowTo DO SOMETHING +date = 2024-05-03 ++++ + + + +I forgot to write summary + + +{{< spoiler Spoiler >}} +I forgot to remove it from template +{{< /spoiler >}} + + +{{< source >}} +Random YouTube videos +My Experience +{{< /source >}} + diff --git a/themes/anubis2/layouts/index.html_bak b/themes/anubis2/layouts/index.html_bak new file mode 100644 index 0000000..3a53411 --- /dev/null +++ b/themes/anubis2/layouts/index.html_bak @@ -0,0 +1,15 @@ +{{ define "main" }} +
+ {{ .Content }} +
+ +
+ {{ $pages := where (where site.RegularPages "Type" "in" site.Params.mainSections) "Params.hidden" "!=" true }} + {{ range .Site.RegularPages }} + {{ partial "post-summary.html" . }} + {{ end }} + {{ partial "pagination.html" . }} +
+ +{{ end }} +