diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3654ce0..326b8b2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,7 +31,7 @@ jobs: build: runs-on: ubuntu-latest env: - HUGO_VERSION: 0.145.0 + HUGO_VERSION: 0.157.0 HUGO_ENVIRONMENT: production TZ: America/Los_Angeles steps: diff --git a/layouts/_default/home.html b/layouts/_default/home.html index 0df6597..fc9aa2d 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -1,7 +1,108 @@ {{ define "main" }} - {{ .Content }} - {{ range site.RegularPages }} -

{{ .LinkTitle }}

- {{ .Summary }} - {{ end }} + +{{ partial "search-index.html" . }} + +

Welcome to Lemonium!

+ +Lemonium Logo + +

{{ i18n "index-description" }}

+ +

Information

+ + +
+ + {{ range ( first 3 ( where ( where .Site.Pages "Type" "posts" ) ".Title" "!=" "Posts" )) }} + +

{{ .Date.Format "2006.01.02" }}

+

{{ .Title }}

+

{{ .Summary | plainify }}…

+
+ {{ end }} +
+ + + +

See more...

+ +

Research & Development

+ + +{{ if eq .Site.Language.Lang "ja" }} +
+ {{ with resources.GetRemote "https://qiita.com/Lemon73/feed" | transform.Unmarshal }} + {{ range ( first 3 .entry ) }} + +

{{ .published | time.Format "2006.01.02" }} (Qiita)

+

{{ .title }}

+

{{ index .content "#text" | plainify }}

+
+ {{ end }} + {{ end }} +
+ +

See more...

+{{ else if eq .Site.Language.Lang "en" }} +
+ {{ with resources.GetRemote "https://alicenovel.web.app/en/blog/index.xml" | transform.Unmarshal }} + {{ range ( first 3 .channel.item ) }} + +

{{ .pubDate | time.Format "2006.01.02" }} (Alice Project)

+

{{ .title }}

+

{{ index .description | plainify }}

+
+ {{ end }} + {{ end }} +
+ +

See more...

+{{ end }} + +

About

+ +

+ {{ i18n "index-about-1" }}
+ {{ i18n "index-about-2" }} +

+ +

See more...

+ +

Contacts

+ + + {{ end }} diff --git a/layouts/partials/footer.html b/layouts/_partials/footer.html similarity index 100% rename from layouts/partials/footer.html rename to layouts/_partials/footer.html diff --git a/layouts/partials/google_analytics.html b/layouts/_partials/google_analytics.html similarity index 100% rename from layouts/partials/google_analytics.html rename to layouts/_partials/google_analytics.html diff --git a/layouts/partials/head.html b/layouts/_partials/head.html similarity index 100% rename from layouts/partials/head.html rename to layouts/_partials/head.html diff --git a/layouts/partials/head/css.html b/layouts/_partials/head/css.html similarity index 100% rename from layouts/partials/head/css.html rename to layouts/_partials/head/css.html diff --git a/layouts/partials/head/js.html b/layouts/_partials/head/js.html similarity index 100% rename from layouts/partials/head/js.html rename to layouts/_partials/head/js.html diff --git a/layouts/partials/header.html b/layouts/_partials/header.html similarity index 100% rename from layouts/partials/header.html rename to layouts/_partials/header.html diff --git a/layouts/partials/language-switcher.html b/layouts/_partials/language-switcher.html similarity index 100% rename from layouts/partials/language-switcher.html rename to layouts/_partials/language-switcher.html diff --git a/layouts/partials/menu.html b/layouts/_partials/menu.html similarity index 100% rename from layouts/partials/menu.html rename to layouts/_partials/menu.html diff --git a/layouts/partials/search-form.html b/layouts/_partials/search-form.html similarity index 100% rename from layouts/partials/search-form.html rename to layouts/_partials/search-form.html diff --git a/layouts/partials/search-index.html b/layouts/_partials/search-index.html similarity index 100% rename from layouts/partials/search-index.html rename to layouts/_partials/search-index.html diff --git a/layouts/partials/terms.html b/layouts/_partials/terms.html similarity index 100% rename from layouts/partials/terms.html rename to layouts/_partials/terms.html diff --git a/layouts/index.html b/layouts/index.html deleted file mode 100644 index fc9aa2d..0000000 --- a/layouts/index.html +++ /dev/null @@ -1,108 +0,0 @@ -{{ define "main" }} - -{{ partial "search-index.html" . }} - -

Welcome to Lemonium!

- -Lemonium Logo - -

{{ i18n "index-description" }}

- -

Information

- - -
- - {{ range ( first 3 ( where ( where .Site.Pages "Type" "posts" ) ".Title" "!=" "Posts" )) }} - -

{{ .Date.Format "2006.01.02" }}

-

{{ .Title }}

-

{{ .Summary | plainify }}…

-
- {{ end }} -
- - - -

See more...

- -

Research & Development

- - -{{ if eq .Site.Language.Lang "ja" }} -
- {{ with resources.GetRemote "https://qiita.com/Lemon73/feed" | transform.Unmarshal }} - {{ range ( first 3 .entry ) }} - -

{{ .published | time.Format "2006.01.02" }} (Qiita)

-

{{ .title }}

-

{{ index .content "#text" | plainify }}

-
- {{ end }} - {{ end }} -
- -

See more...

-{{ else if eq .Site.Language.Lang "en" }} -
- {{ with resources.GetRemote "https://alicenovel.web.app/en/blog/index.xml" | transform.Unmarshal }} - {{ range ( first 3 .channel.item ) }} - -

{{ .pubDate | time.Format "2006.01.02" }} (Alice Project)

-

{{ .title }}

-

{{ index .description | plainify }}

-
- {{ end }} - {{ end }} -
- -

See more...

-{{ end }} - -

About

- -

- {{ i18n "index-about-1" }}
- {{ i18n "index-about-2" }} -

- -

See more...

- -

Contacts

- - - -{{ end }}