This site install memo
Image credit: Pierre-Auguste Renoir - Mademoiselle Romaine Lascaux
This is a memo of building this blog site. which is powered by hugo and academic.
- Edit your Hugo site locally
- theme-academic-cv, SSK Academic-CV, Demo: https://academic-demo.netlify.app/
- hugo-blog-theme, SSK Academic-Blog, Demo: https://hugo-blog-theme.netlify.app/
Outline
テンプレートをダウンロードする
- Download Hugo Academic Template: https://github.com/HugoBlox/theme-academic-cv/archive/main.zip
- Or with Git: git clone https://github.com/HugoBlox/theme-academic-cv.git
- https://github.com/HugoBlox/theme-academic-cv
Web サイトのフォルダーに移動する
サイトを表示する
hugo server
ステップバイステップのガイドに従って、新しいサイトを編集する
Name
vi content/authors/admin/_index.md
Add your profile picture
content/authors/admin/avatar.jpg
Add site title
vi config/_default/hugo.yaml
Install 8029: HugoBlox/theme-academic-cv
cd /srv/www
sudo git clone https://github.com/HugoBlox/theme-academic-cv.git academic2
sudo chown -R ssk /srv/www/academic2
ls -l
total 268
-rw-r--r-- 1 root root 258 11月 10 10:48 academic.Rproj
drwxr-xr-x 3 root root 4096 11月 10 10:48 assets
drwxr-xr-x 3 root root 4096 11月 10 10:48 config
drwxr-xr-x 8 root root 4096 11月 10 10:48 content
drwxr-xr-x 4 root root 4096 11月 10 10:48 data
-rw-r--r-- 1 root root 289 11月 10 10:48 go.mod
drwxr-xr-x 2 root root 4096 11月 10 10:48 images
-rw-r--r-- 1 root root 1078 11月 10 10:48 LICENSE.md
-rw-r--r-- 1 root root 480 11月 10 10:48 netlify.toml
-rw-r--r-- 1 root root 222122 11月 10 10:48 preview.png
-rw-r--r-- 1 root root 3833 11月 10 10:48 README.md
drwxr-xr-x 3 root root 4096 11月 10 10:48 static
-rw-r--r-- 1 root root 1395 11月 10 10:48 theme.toml
hugo server
hugo: collected modules in 892 ms
Watching for changes in /home/ssk/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!hugo!blox/hugo-blox-builder/modules/{blox-bootstrap,blox-plugin-netlify@v1.1.2-0.20231108141515-0478cf6921f9,blox-plugin-reveal@v1.1.2}
Watching for changes in /srv/www/academic2/{assets,content,data,static}
Watching for config changes in /srv/www/academic2/config/_default, /home/ssk/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!hugo!blox/hugo-blox-builder/modules/blox-plugin-netlify@v1.1.2-0.20231108141515-0478cf6921f9/config.yaml, /home/ssk/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!hugo!blox/hugo-blox-builder/modules/blox-plugin-reveal@v1.1.2/config.yaml, /home/ssk/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/!hugo!blox/hugo-blox-builder/modules/blox-bootstrap/v5@v5.9.6/config.yaml, /srv/www/academic2/go.mod
Start building sites …
hugo v0.120.3-a4892a07b41b7b3f1f143140ee4ec0a9a5cf3970+extended linux/amd64 BuildDate=2023-11-01T17:57:00Z VendorInfo=gohugoio
| EN
-------------------+-----
Pages | 53
Paginator pages | 0
Non-page files | 16
Static files | 9
Processed images | 70
Aliases | 15
Sitemaps | 1
Cleaned | 0
Built in 6210 ms
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
http://localhost:1313/ Good!
Setting detail
vi /srv/www/academic2/content/authors/admin/_index.md
# Display name
title: ssk
# Name pronunciation (optional)
name_pronunciation: ""
# Full name (for SEO)
first_name: ssk
last_name: SSK
/srv/www/academic2/content/authors/admin/avatar.jpg < 600-Clevelandart.jpg
vi /srv/www/academic2/config/_default/config.yaml
title: SSK Academic-CV # Website name
baseURL: 'http://192.168.1.250:8029/' # Website URL
hugo
hugo: collected modules in 553 ms
Start building sites …
hugo v0.120.3-a4892a07b41b7b3f1f143140ee4ec0a9a5cf3970+extended linux/amd64 BuildDate=2023-11-01T17:57:00Z VendorInfo=gohugoio
| EN
-------------------+-----
Pages | 53
Paginator pages | 0
Non-page files | 17
Static files | 9
Processed images | 53
Aliases | 15
Sitemaps | 1
Cleaned | 0
Total in 1776 ms
Good! (SSK Academic-CV Home, Posts, Projects, Talks, Publications,Contact)
Install 8030: HugoBlox/theme-blog
- Download Hugo Blog Template: https://github.com/wowchemy/hugo-blog-theme/archive/main.zip
- Or with Git: git clone https://github.com/wowchemy/hugo-blog-theme.git
- https://github.com/HugoBlox/theme-blog
cd /srv/www
sudo git clone https://github.com/wowchemy/hugo-blog-theme.git academic3
Cloning into 'academic3'...
remote: Enumerating objects: 639, done.
remote: Counting objects: 100% (208/208), done.
remote: Compressing objects: 100% (133/133), done.
remote: Total 639 (delta 75), reused 174 (delta 48), pack-reused 431
Receiving objects: 100% (639/639), 71.34 MiB | 2.83 MiB/s, done.
Resolving deltas: 100% (235/235), done.
sudo chown -R ssk academic3
cd academic3
ls -l
total 36
drwxr-xr-x 4 ssk root 4096 11月 10 12:25 assets
drwxr-xr-x 3 ssk root 4096 11月 10 12:25 config
drwxr-xr-x 4 ssk root 4096 11月 10 12:25 content
-rw-r--r-- 1 ssk root 283 11月 10 12:25 go.mod
-rw-r--r-- 1 ssk root 1078 11月 10 12:25 LICENSE.md
-rw-r--r-- 1 ssk root 480 11月 10 12:25 netlify.toml
drwxr-xr-x 2 ssk root 4096 11月 10 12:25 notebooks
-rw-r--r-- 1 ssk root 3371 11月 10 12:25 README.md
drwxr-xr-x 3 ssk root 4096 11月 10 12:25 static
vi /srv/www/academic3/content/authors/admin/_index.md
# Display name
title: ssk
# Name pronunciation (optional)
name_pronunciation: ""
# Full name (for SEO)
first_name: ssk
last_name: SSK
cd /srv/www/academic3/content/authors/admin
mv avatar.jpg avatar.jpg.bak
sudo cp /home/ftpu/ftp/600-Clevelandart.jpg /srv/www/academic3/content/authors/admin/avatar.jpg
vi /srv/www/academic3/config/_default/hugo.yaml
title: 'SSK Academic-Blog' # Website name
baseURL: 'http://192.168.1.250:8030/' # Website URL
cd /srv/www/academic3
hugo
hugo: downloading modules …
hugo: collected modules in 2700 ms
Start building sites …
hugo v0.120.3-a4892a07b41b7b3f1f143140ee4ec0a9a5cf3970+extended linux/amd64 BuildDate=2023-11-01T17:57:00Z VendorInfo=gohugoio
| EN
-------------------+-----
Pages | 30
Paginator pages | 0
Non-page files | 9
Static files | 1
Processed images | 53
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 5684 ms
Good! (Home, Blog, Uses)
Other
Sample
ls /srv/www/academic3/content/post/data-visualization
featured.jpg index.md line-chart.json results.csv
---
title: 📈 Communicate your results effectively with the best data visualizations
summary: Use popular tools such as Plotly, Mermaid, and data frames.
date: 2023-10-25
tags:
- Hugo
- Wowchemy
- Markdown
image:
caption: 'Image credit: [**Unsplash**](https://unsplash.com)'
---