diff --git a/config.toml b/config.toml index 5564068d..2a1d7d0b 100644 --- a/config.toml +++ b/config.toml @@ -10,9 +10,11 @@ paginate = 10000 [author] name = "syui" + [params] date_format = "2006-01-02" mainSections = ["post"] + author.name = "syui" [markup.goldmark.renderer] unsafe = true diff --git a/content/item/0001.jpg b/content/item/0001.jpg new file mode 100644 index 00000000..5b2a5373 Binary files /dev/null and b/content/item/0001.jpg differ diff --git a/content/item/0002.jpg b/content/item/0002.jpg new file mode 100644 index 00000000..cf7f64af Binary files /dev/null and b/content/item/0002.jpg differ diff --git a/content/item/0003.jpg b/content/item/0003.jpg new file mode 100644 index 00000000..2a307fad Binary files /dev/null and b/content/item/0003.jpg differ diff --git a/content/item/0004.jpg b/content/item/0004.jpg new file mode 100644 index 00000000..80d12041 Binary files /dev/null and b/content/item/0004.jpg differ diff --git a/content/item/0005.jpg b/content/item/0005.jpg new file mode 100644 index 00000000..efac2bd7 Binary files /dev/null and b/content/item/0005.jpg differ diff --git a/content/item/index.md b/content/item/index.md new file mode 100644 index 00000000..18f50f6d --- /dev/null +++ b/content/item/index.md @@ -0,0 +1,9 @@ +--- +title: "item" +type: item +resources: +- src: '*.jpg' + +date: "2024-01-04" +--- + diff --git a/layouts/item/single.html b/layouts/item/single.html new file mode 100644 index 00000000..ef501bb8 --- /dev/null +++ b/layouts/item/single.html @@ -0,0 +1,23 @@ +{{ partial "head.html" . }} +{{ partial "navbar.html" . }} +{{ partial "header.html" . }} +{{ .Content }} + +
+
+ {{ with .Resources.Match "*.jpg" }} +
+

+ {{ range . }} + + {{ end }} +

+
+ {{ end }} +
+
+ + +{{ partial "footer.html" . }} + + diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 1fd15979..aa809f71 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -3,10 +3,11 @@