diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 1ab22fcf..bcb610ad 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -9,9 +9,9 @@ jobs: build-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v3 with: hugo-version: 0.89.4 # extended: true diff --git a/.gitignore b/.gitignore index 5c55dec6..9573965d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ public -dist build resources *.lock @@ -36,3 +35,5 @@ yarn-error.log* content/*/*_private.pem content/*/*.json + +static/*lock* diff --git a/content/blog/2024-04-04-blog.md b/content/blog/2024-03-31-blog.md similarity index 68% rename from content/blog/2024-04-04-blog.md rename to content/blog/2024-03-31-blog.md index 0e2c520f..e05de419 100644 --- a/content/blog/2024-04-04-blog.md +++ b/content/blog/2024-03-31-blog.md @@ -1,5 +1,5 @@ +++ -date = "2024-04-04T16:27:13+09:00" +date = "2024-03-31T16:27:13+09:00" tags = ["blog"] title = "start blog" +++ diff --git a/content/blog/2024-04-01-layout.md b/content/blog/2024-04-01-layout.md new file mode 100644 index 00000000..02fb0253 --- /dev/null +++ b/content/blog/2024-04-01-layout.md @@ -0,0 +1,7 @@ ++++ +date = "2024-04-01T00:00:00+09:00" +tags = ["blog"] +title = "update layout" ++++ + +layoutを更新しました。 diff --git a/content/blog/2024-04-05-change-layout.md b/content/blog/2024-04-05-change-layout.md deleted file mode 100644 index 840c2b82..00000000 --- a/content/blog/2024-04-05-change-layout.md +++ /dev/null @@ -1,8 +0,0 @@ -+++ -date = "2024-04-05T16:27:13+09:00" -tags = ["blog"] -title = "new layout" -+++ - -web pageのlayoutを変更しました。 - diff --git a/content/chara.md b/content/chara.md index 45ce76f4..d70cebad 100644 --- a/content/chara.md +++ b/content/chara.md @@ -8,7 +8,7 @@ date = "2024-01-23" ## アイ -本名は`月見 唯(つきみ ゆい)`、通称、`アイ`。最も小さい物質を操る能力を持つ +本名は`月見 唯(つきみ ゆい)`、通称、`アイ`。最も小さい物質を創り出すことができる ![](/chara/ai.png) diff --git a/content/story.md b/content/story.md index 3be3cb3a..c281079a 100644 --- a/content/story.md +++ b/content/story.md @@ -2,6 +2,7 @@ title = "story" slug = "story" date = "2024-01-22" +aliases = ['manga'] +++
@@ -12,8 +13,7 @@ date = "2024-01-22"
- - + diff --git a/content/term.md b/content/term.md index ea056211..0920562b 100644 --- a/content/term.md +++ b/content/term.md @@ -4,7 +4,7 @@ slug = "term" date = "2023-12-23" +++ - + diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9a577ebb..18ef16f5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,8 +6,8 @@
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1c837efb..4a1329ab 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,18 +2,15 @@ {{ partial "navbar.html" . }} {{ partial "header.html" . }} -{{ $s := path.Dir (.Permalink | relURL) }} -{{ $t := index (split $s "/") 2 }} -{{ $o := index (split $s "/") 1 }} - -{{ if eq $t "img" }} - {{ partial "img.html" . }} -{{ else }} - {{ .Content }} -{{ end }} -
+
+
+ {{ if ne .Lastmod .Date }}
{{ .Lastmod.Format "2006-01-02" }}
{{ end }} +

{{ .Title }}

+ {{ .Content }} +
+
- {{ partial "footer.html" . }} +{{ partial "footer.html" . }} diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 8fb42ed4..addaf45c 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -7,22 +7,29 @@ {{ if or (eq $t "blog") }}
  • - blog -
  • - {{ range $index,$value := first 5 (where $.Site.RegularPages.ByDate.Reverse "Section" "blog") }} -
  • - {{.Title}} {{ .Date.Local.Format "2006-01-02" }} + blog
  • + + {{ range $index,$value := (where $.Site.RegularPages.ByDate.Reverse "Section" "blog") }} + {{ if lt $index 1 }} +
  • {{.Title}} {{ .Date.Local.Format "2006-01-02" }}
  • + {{ else }} + {{ end }} -
  • + {{ end }} + +
  • {{ end }} {{ if or (eq $t "chara") (eq $t "story") (eq $t "card") (eq $t "vrm") }} +
  • + +
  • +
  • {{.Title}}
  • - {{ if or (eq $t "card") }} {{ .Content }} {{ else }} @@ -31,6 +38,16 @@ {{ end }} {{ end }} + +
  • + + +
  • + diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a7ffc617..e9832a3b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,19 +21,23 @@ - - + + -{{ range .AlternativeOutputFormats -}} - {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} -{{ end -}} + + + + + {{ range .AlternativeOutputFormats -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 65bde408..abd86406 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -11,7 +11,20 @@ {{ if eq $o ""}} +
    + + + + + + + +
    ctrl + enter
    + +
    + + @@ -24,11 +37,14 @@ - + + + + {{ end }} diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index cf160f14..b8b1c22b 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -5,6 +5,7 @@