Site Tools


software:hugo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
software:hugo [2024/03/24 11:27] – [Links] chrissoftware:hugo [2024/03/25 02:20] (current) chris
Line 8: Line 8:
   * [[https://media.ccc.de/v/clt24-249-static-website-am-beispiel-hugo|Static Website am Beispiel Hugo]] -- German video   * [[https://media.ccc.de/v/clt24-249-static-website-am-beispiel-hugo|Static Website am Beispiel Hugo]] -- German video
  
-===== Simple setup =====+===== Current default setup =====
 <code> <code>
 # as user # as user
 hugo new site blog-hugo --format yaml hugo new site blog-hugo --format yaml
 cd blog-hugo cd blog-hugo
-git clone https://github.com/budparr/gohugo-theme-ananke.git themes/ananke +git clone https://github.com/amazingrise/hugo-theme-diary themes/diary 
-echo 'theme: ananke' >> config.yaml +echo 'theme: diary' >> config.yaml
-hugo new posts/my-first-post.md+
  
 +# customize the URL
 +sed -ie 's,baseURL.*,baseURL: https://localhost/,' config.yaml
 +
 +git clone https://github.com/liwenyip/hugo-easy-gallery/
 +cp -r hugo-easy-gallery/layouts/shortcodes/ layouts/
 +cp -r hugo-easy-gallery/static/* static/
 +
 +hugo new posts/my-first-post.md
 # add some content after the header # add some content after the header
 echo 'There be dragons!' >>content/posts/my-first-post.md echo 'There be dragons!' >>content/posts/my-first-post.md
- 
 # change status from draft # change status from draft
 sed -ie 's,draft.*,draft: false,' content/posts/my-first-post.md sed -ie 's,draft.*,draft: false,' content/posts/my-first-post.md
- 
-# customize the URL 
-sed -ie 's,baseURL.*,baseURL: https://localhost/,' config.yaml 
  
 # now build the content # now build the content
Line 31: Line 34:
 # in a different terminal, if you want to serve it for testing # in a different terminal, if you want to serve it for testing
 hugo server hugo server
- 
-# customizing 
-less themes/ananke/exampleSite/config.toml 
-vim config.yaml 
-# modify config.yaml 
 </code> </code>
  
Line 136: Line 134:
  
 hugo hugo
-</code> 
- 
-===== Current setup ===== 
-<code> 
-# as user 
-hugo new site blog-hugo --format yaml 
-cd blog-hugo 
-git clone https://github.com/amazingrise/hugo-theme-diary themes/diary 
-echo 'theme: diary' >> config.yaml 
- 
-# customize the URL 
-sed -ie 's,baseURL.*,baseURL: https://localhost/,' config.yaml 
- 
-git clone https://github.com/liwenyip/hugo-easy-gallery/ 
-cp -r hugo-easy-gallery/layouts/shortcodes/ layouts/ 
-cp -r hugo-easy-gallery/static/* static/ 
- 
-hugo new posts/my-first-post.md 
-# add some content after the header 
-echo 'There be dragons!' >>content/posts/my-first-post.md 
-# change status from draft 
-sed -ie 's,draft.*,draft: false,' content/posts/my-first-post.md 
- 
-# now build the content 
-hugo 
- 
-# in a different terminal, if you want to serve it for testing 
-hugo server 
 </code> </code>
  
software/hugo.txt · Last modified: 2024/03/25 02:20 by chris