Skip to content
Snippets Groups Projects
Commit 53dd201c authored by TaigaOgawa's avatar TaigaOgawa
Browse files

Fix deprecations, update submodules, and adjust README

parent b6a0d0e5
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
# Generated files by hugo
/public/
/resources/_gen/
/assets/jsconfig.json
hugo_stats.json
# Executable may be added to repository
......@@ -14,4 +15,7 @@ hugo.exe
hugo.darwin
hugo.linux
# Temporary lock file while building
/.hugo_build.lock
# End of https://www.toptal.com/developers/gitignore/api/hugo
[submodule "themes/hugo-clarity"]
path = themes/hugo-clarity
url = https://github.com/chipzoller/hugo-clarity
[submodule "themes/ananke"]
path = themes/ananke
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
......@@ -10,17 +10,14 @@ clone hugo-templte
```
cd ~/src
git clone https://gitlab.ie.u-ryukyu.ac.jp/ie-web/hugo-template/hugo-template.git
git clone --recursive https://gitlab.ie.u-ryukyu.ac.jp/ie-web/hugo-template/hugo-template.git
```
edit .git/config, remove remote origin line
# create your own hugo repositiry
First, create gitlab project under students group.
rm origin line in .git/config
git remote rename origin old-origin
git remote add origin https://gitlab.ie.u-ryukyu.ac.jp/your_repository
git branch -M main
git push -uf origin main
......@@ -31,7 +28,7 @@ make-blog.pl is interactive blog setting script.
## Usage
```
perl make-blog.pl
perl make-blog.pl
```
this will create config.toml and theme/ananke as submodule
......@@ -60,7 +57,7 @@ try
```
export HUGO_CACHEDIR=$HOME/.local/share/hugo
perl publish.pl
perl publish.pl
```
(we should set HUGO_CAACHEDIR in publlish.pl. fix me)
......
......@@ -3,8 +3,9 @@ defaultContentLanguage = "ja"
hasCJKLanguage = true
baseurl = "https://ie.u-ryukyu.ac.jp/hugo-template/" # Include trailing slash
title = "Hugo-Template"
copyright = "Copyright © 2021-2021"
#copyright = "Copyright © 2021-2021"
# canonifyurls = true
drafts = false
paginate = 10
theme = "ananke"
[pagination]
pagerSize = 10
hugo-template @ 78595b97
Subproject commit 78595b971a91a10a5fba9574b05cea1d3abdbec3
......@@ -29,9 +29,11 @@ if (! -f "config.toml") {
}
}
if ( ! -d "themes/ananke") {
system("git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke");
}
# if ( ! -d "themes/ananke") {
# system("git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke");
# }
system("git submodule update --init");
print <<"EOFEOF";
write as content/post/2022/09/21/1.md
......
Subproject commit c086834f0ebfa39b8b6b0cfed010588a6907a91c
Subproject commit 554e53e626885bd0009c9ffd22b501469acf7735
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment