Skip to content

Commit cdf216a

Browse files
Merge pull request #58 from Lemon73-Computing/lemon73/upgrade-hugo-version
chore: upgrade hugo version from v0.145 to v0.157
2 parents 352af03 + 439b6f1 commit cdf216a

File tree

14 files changed

+107
-114
lines changed

14 files changed

+107
-114
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
build:
3232
runs-on: ubuntu-latest
3333
env:
34-
HUGO_VERSION: 0.145.0
34+
HUGO_VERSION: 0.157.0
3535
HUGO_ENVIRONMENT: production
3636
TZ: America/Los_Angeles
3737
steps:

layouts/_default/home.html

Lines changed: 106 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,108 @@
11
{{ define "main" }}
2-
{{ .Content }}
3-
{{ range site.RegularPages }}
4-
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
5-
{{ .Summary }}
6-
{{ end }}
2+
3+
{{ partial "search-index.html" . }}
4+
5+
<h2>Welcome to Lemonium!</h2>
6+
7+
<img src="/images/logo.svg" alt="Lemonium Logo" style="padding: 0;max-width: 100%;" />
8+
9+
<p>{{ i18n "index-description" }}</p>
10+
11+
<h2 class="toppage-h">Information</h2>
12+
<!-- News and Information -->
13+
14+
<div class="info-card">
15+
<!-- タイトルが Posts になっているページを除外 -->
16+
{{ range ( first 3 ( where ( where .Site.Pages "Type" "posts" ) ".Title" "!=" "Posts" )) }}
17+
<a href="{{ .Permalink }}">
18+
<p id="info-date">{{ .Date.Format "2006.01.02" }}</p>
19+
<p id="info-title">{{ .Title }}</p>
20+
<p id="info-summary">{{ .Summary | plainify }}…</p>
21+
</a>
22+
{{ end }}
23+
</div>
24+
25+
<!-- タグ指定 ("未定"タグ)
26+
{{ range ( first 3 ( where .Site.RegularPages "Params.tags" "intersect" (slice "未定"))) }}
27+
<li>
28+
<a href="{{ .Permalink }}">{{ .Title }}</a>
29+
<p>{{ .Summary | plainify }}</p>
30+
</li>
31+
{{ end }}
32+
-->
33+
34+
<p><a href="{{ relLangURL "/posts/" }}">See more...</a></p>
35+
36+
<h2 class="toppage-h">Research & Development</h2>
37+
<!-- External Documentation -->
38+
39+
{{ if eq .Site.Language.Lang "ja" }}
40+
<div class="info-card">
41+
{{ with resources.GetRemote "https://qiita.com/Lemon73/feed" | transform.Unmarshal }}
42+
{{ range ( first 3 .entry ) }}
43+
<a href="{{ .url }}" target="_blank">
44+
<p id="info-date">{{ .published | time.Format "2006.01.02" }} (Qiita)</p>
45+
<p id="info-title">{{ .title }}</p>
46+
<p id="info-summary">{{ index .content "#text" | plainify }}</p>
47+
</a>
48+
{{ end }}
49+
{{ end }}
50+
</div>
51+
52+
<p><a href="https://qiita.com/Lemon73" target="_blank">See more...</a></p>
53+
{{ else if eq .Site.Language.Lang "en" }}
54+
<div class="info-card">
55+
{{ with resources.GetRemote "https://alicenovel.web.app/en/blog/index.xml" | transform.Unmarshal }}
56+
{{ range ( first 3 .channel.item ) }}
57+
<a href="https://alicenovel.web.app{{ .link }}" target="_blank">
58+
<p id="info-date">{{ .pubDate | time.Format "2006.01.02" }} (Alice Project)</p>
59+
<p id="info-title">{{ .title }}</p>
60+
<p id="info-summary">{{ index .description | plainify }}</p>
61+
</a>
62+
{{ end }}
63+
{{ end }}
64+
</div>
65+
66+
<p><a href="https://alicenovel.web.app/en/blog" target="_blank">See more...</a></p>
67+
{{ end }}
68+
69+
<h2 class="toppage-h">About</h2>
70+
71+
<p>
72+
{{ i18n "index-about-1" }}<br />
73+
{{ i18n "index-about-2" }}
74+
</p>
75+
76+
<p><a href="{{ relLangURL "/about/lra/" }}">See more...</a></p>
77+
78+
<h2 class="toppage-h">Contacts</h2>
79+
80+
<ul class="social-links">
81+
<li>
82+
<a href="https://www.youtube.com/@lemon73" target="_blank">
83+
<img src="/images/social-media/youtube.svg" alt="youtube">
84+
YouTube
85+
</a>
86+
</li>
87+
<li>
88+
<a href="https://misskey.io/@lemon73" target="_blank">
89+
<img src="/images/social-media/misskey.svg" alt="youtube">
90+
Misskey.io
91+
</a>
92+
</li>
93+
<li>
94+
<a href="https://github.com/Lemon73-Computing" target="_blank">
95+
<img src="/images/social-media/github.svg" alt="youtube">
96+
GitHub
97+
</a>
98+
</li>
99+
<!--
100+
<li>
101+
<a href="" target="_blank">
102+
Contact Form ({{ i18n "wip" }})
103+
</a>
104+
</li>
105+
-->
106+
</ul>
107+
7108
{{ end }}

0 commit comments

Comments
 (0)