From f52ff6f27d621544b9a30a03f15bc40858491336 Mon Sep 17 00:00:00 2001 From: FarseaSH Date: Wed, 1 Sep 2021 22:36:56 +0800 Subject: [PATCH 01/10] add pic grid and basic pure css support --- hugo-theme-moments.code-workspace | 11 ++ layouts/index.html | 2 +- layouts/partials/head.html | 7 +- layouts/partials/pic_set.html | 42 +++---- layouts/partials/row.html | 180 ++++++++++++++++-------------- static/css/style.css | 32 ++++-- 6 files changed, 150 insertions(+), 124 deletions(-) create mode 100644 hugo-theme-moments.code-workspace diff --git a/hugo-theme-moments.code-workspace b/hugo-theme-moments.code-workspace new file mode 100644 index 0000000..496c341 --- /dev/null +++ b/hugo-theme-moments.code-workspace @@ -0,0 +1,11 @@ +{ + "folders": [ + { + "path": "../.." + }, + { + "path": "." + } + ], + "settings": {} +} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 090f7d0..c7fad02 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+
{{ $paginator := .Paginate ((where .Site.RegularPages "Section" "moments").ByParam "top") }} {{ range $paginator.Pages }} {{ partial "row.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3a89563..c0c8935 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,9 +1,9 @@ - + @@ -34,5 +34,8 @@ + + + {{ .Site.Params.title }} \ No newline at end of file diff --git a/layouts/partials/pic_set.html b/layouts/partials/pic_set.html index 21ca548..7318a2b 100644 --- a/layouts/partials/pic_set.html +++ b/layouts/partials/pic_set.html @@ -1,33 +1,17 @@ -