diff --git a/blog/config.yaml b/blog/config.yaml index c8d1c13..62771a8 100644 --- a/blog/config.yaml +++ b/blog/config.yaml @@ -22,6 +22,11 @@ languages: weight: 1 params: + comments: + enabled: true + provider: disqus + disqusShortname: svfcode + widgets: homepage: - type: search @@ -35,4 +40,6 @@ params: params: limit: 10 page: - - type: toc \ No newline at end of file + - type: toc + +disqusShortname: svfcode diff --git a/blog/layouts/index.html b/blog/layouts/index.html new file mode 100644 index 0000000..0cd0b88 --- /dev/null +++ b/blog/layouts/index.html @@ -0,0 +1,19 @@ +{{ define "main" }} + {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} + {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }} + {{ $filtered := ($pages | intersect $notHidden) }} + {{ $pag := .Paginate ($filtered) }} + +
+ {{ range $index, $element := $pag.Pages }} + {{ partial "article-list/default" . }} + {{ end }} +
+ + {{- partial "pagination.html" . -}} + {{- partial "footer/footer" . -}} +{{ end }} + +{{ define "right-sidebar" }} + {{ partial "sidebar/right.html" (dict "Context" . "Scope" "homepage") }} +{{ end }} \ No newline at end of file diff --git a/blog/layouts/partials/article/article.html b/blog/layouts/partials/article/article.html new file mode 100644 index 0000000..f3f7e90 --- /dev/null +++ b/blog/layouts/partials/article/article.html @@ -0,0 +1,11 @@ +
+ {{ partial "article/components/header" . }} + + {{ partial "article/components/content" . }} + + {{ partial "article/components/footer" . }} + + {{ if or .Params.math .Site.Params.article.math }} + {{ partialCached "article/components/math.html" . }} + {{ end }} +
\ No newline at end of file