Skip to content

Commit 2e1ab2f

Browse files
Merge pull request #14 from Lemon73-Computing/replace-to-hugo
Replace to Hugo
2 parents ad88c81 + ef45a7c commit 2e1ab2f

File tree

160 files changed

+4929
-3214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+4929
-3214
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
content/**/*.md linguist-detectable

.github/release.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
changelog:
2+
categories:
3+
- title: New Features 🎉
4+
labels:
5+
- "enhancement"
6+
- title: Bug Fix 🦋
7+
labels:
8+
- "bug"
9+
# - title: Dependencies 🤖
10+
# labels:
11+
# - "dependencies"
12+
# authors:
13+
# - dependabot
14+
- title: Others 🛠
15+
labels:
16+
- "*"

.github/workflows/deploy.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy to Github Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
# Give the default GITHUB_TOKEN write permission to commit and push the
16+
# added or changed files to the repository.
17+
contents: write
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Cache Hugo resources
23+
uses: actions/cache@v4
24+
env:
25+
cache-name: cache-hugo-resources
26+
with:
27+
path: resources
28+
key: ${{ env.cache-name }}
29+
30+
- uses: actions/setup-go@v4
31+
with:
32+
go-version: "^1.17.0"
33+
- run: go version
34+
35+
- name: Setup Hugo
36+
uses: peaceiris/actions-hugo@v3
37+
with:
38+
hugo-version: "latest"
39+
extended: true
40+
41+
- name: Build
42+
run: hugo --minify --gc
43+
44+
- name: Deploy 🚀
45+
uses: JamesIves/github-pages-deploy-action@v4
46+
with:
47+
branch: gh-pages
48+
folder: public
49+
clean: true
50+
single-commit: true

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Generated files by hugo
2+
/public/
3+
/resources/_gen/
4+
/assets/jsconfig.json
5+
hugo_stats.json
6+
7+
# Executable may be added to repository
8+
hugo.exe
9+
hugo.darwin
10+
hugo.linux
11+
12+
# Temporary lock file while building
13+
/.hugo_build.lock

.vscode/md.code-snippets

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
// Place your lemon73-computing.github.io workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3+
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4+
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5+
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6+
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7+
// Placeholders with the same ids are connected.
8+
// Example:
9+
// "Print to console": {
10+
// "scope": "javascript,typescript",
11+
// "prefix": "log",
12+
// "body": [
13+
// "console.log('$1');",
14+
// "$2"
15+
// ],
16+
// "description": "Log output to console"
17+
// }
18+
19+
"Front Matter (Default)": {
20+
"scope": "markdown",
21+
"prefix": ["default"],
22+
"body": [
23+
"---",
24+
"title: ${1:Title}",
25+
"description: ${2:Description}",
26+
"slug: \"$CURRENT_MONTH$CURRENT_DATE\"",
27+
"date: $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND+0900",
28+
"categories:",
29+
" - ${4:category}",
30+
"tags:",
31+
" - ${5:tag}",
32+
"draft: ${6:true}",
33+
"---\n",
34+
"${7:<!-- contents -->}\n",
35+
"## Distribution\n",
36+
"- [Lemonium (here)](./) (EN: $CURRENT_YEAR/$CURRENT_MONTH/$CURRENT_DATE)\n",
37+
],
38+
"description": "Insert default front matter"
39+
},
40+
"Front Matter (Default.ja)": {
41+
"scope": "markdown",
42+
"prefix": "default-ja",
43+
"body": [
44+
"---",
45+
"title: ${1:タイトル}",
46+
"description: ${2:説明}",
47+
"slug: \"$CURRENT_MONTH$CURRENT_DATE\"",
48+
"date: $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND+0900",
49+
"categories:",
50+
" - ${4:カテゴリー}",
51+
"tags:",
52+
" - ${5:タグ}",
53+
"draft: ${6:true}",
54+
"---\n",
55+
"${7:<!-- 内容 -->}\n",
56+
"## 頒布\n",
57+
"- [Lemonium (ここ)](./) (JP: $CURRENT_YEAR/$CURRENT_MONTH/$CURRENT_DATE)\n",
58+
],
59+
"description": "標準のフロントマターを挿入"
60+
}
61+
}

.vscode/tasks.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Serve Drafts",
8+
"type": "shell",
9+
"command": "hugo server -D",
10+
"group": {
11+
"kind": "test",
12+
"isDefault": true
13+
},
14+
"isBackground": true,
15+
"problemMatcher": []
16+
},
17+
{
18+
"label": "Build",
19+
"type": "shell",
20+
"command": "hugo",
21+
"group": {
22+
"kind": "build",
23+
"isDefault": true
24+
},
25+
"problemMatcher": []
26+
}
27+
]
28+
}

404.html

-35
This file was deleted.

README.md

+51-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,55 @@
1-
# Lemon's Resting Area - Website
2-
This is source code of [LRA website][lra-main]. / [レモンの休息所 ウェブサイト][lra-main]のソースコードです。
1+
# Lemonium website
32

4-
[lra-main]: https://lemon73-computing.github.io "Lemon's Resting Area - Website"
3+
Promoting [website] for foundation Lemon's Resting Area. Build with the Hugo static site generator.
54

6-
## Licenses / ライセンス
7-
- Text / 文章
8-
- [CC BY-SA 4.0]
9-
- Images / 画像
10-
- Not covered by the licence (Disabled) / ライセンス対象外 (利用禁止)
5+
[website]: https://lemon73-computing.github.io "Lemon's Resting Area - Website"
6+
7+
## How to use
8+
9+
### Building and testing the site locally
10+
11+
Here are the steps to build site on Ubuntu-based system (tested on KDE neon 24.04):
12+
13+
```shell
14+
# intall golang
15+
sudo apt install golang
16+
17+
# install latest version of Hugo (the example uses v0.128.0)
18+
wget https://github.com/gohugoio/hugo/releases/download/v0.128.0/hugo_extended_0.128.0_linux-amd64.deb
19+
sudo dpkg -i hugo_extended_0.128.0_linux-amd64.deb
20+
21+
# build the site
22+
hugo server
23+
24+
# http://localhost:1313
25+
```
26+
27+
### Create new article
28+
29+
To create an article using [the default archetype](./archetypes/default.md):
30+
```shell
31+
# Japanese
32+
hugo new content posts/2024/something.md
33+
34+
# English
35+
hugo new content/en/posts/2024/something.md
36+
```
37+
38+
To create an article using [the release note arthetype](./archetypes/releasenote.md):
39+
```shell
40+
# Japanese
41+
hugo new content -k releasenote posts/2024/something.md
42+
43+
# English
44+
hugo new -k releasenote content/en/posts/2024/something.md
45+
```
46+
47+
More information: https://gohugo.io/content-management/archetypes
48+
49+
(About multilingual archetypes: https://discourse.gohugo.io/t/multilingual-archetypes/39542/8)
50+
51+
## License
52+
53+
Licensed under the [CC BY-SA 4.0].
1154

1255
[CC BY-SA 4.0]: https://creativecommons.org/licenses/by-sa/4.0/deed.ja "Creative Commons License BY-SA 4.0"

apps/alice.html

-80
This file was deleted.

apps/himeno.html

-40
This file was deleted.

0 commit comments

Comments
 (0)