This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
software:hugo [2024/03/24 11:27] – [Links] chris | software:hugo [2024/03/25 02:20] (current) – chris | ||
---|---|---|---|
Line 8: | Line 8: | ||
* [[https:// | * [[https:// | ||
- | ===== Simple | + | ===== Current default |
< | < | ||
# 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:// | + | git clone https:// |
- | echo ' | + | echo ' |
- | hugo new posts/ | + | |
+ | # customize the URL | ||
+ | sed -ie ' | ||
+ | |||
+ | git clone https:// | ||
+ | cp -r hugo-easy-gallery/ | ||
+ | cp -r hugo-easy-gallery/ | ||
+ | |||
+ | hugo new posts/ | ||
# add some content after the header | # add some content after the header | ||
echo 'There be dragons!' | echo 'There be dragons!' | ||
- | |||
# change status from draft | # change status from draft | ||
sed -ie ' | sed -ie ' | ||
- | |||
- | # customize the URL | ||
- | sed -ie ' | ||
# 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/ | ||
- | vim config.yaml | ||
- | # modify config.yaml | ||
</ | </ | ||
Line 136: | Line 134: | ||
hugo | hugo | ||
- | </ | ||
- | |||
- | ===== Current setup ===== | ||
- | < | ||
- | # as user | ||
- | hugo new site blog-hugo --format yaml | ||
- | cd blog-hugo | ||
- | git clone https:// | ||
- | echo ' | ||
- | |||
- | # customize the URL | ||
- | sed -ie ' | ||
- | |||
- | git clone https:// | ||
- | cp -r hugo-easy-gallery/ | ||
- | cp -r hugo-easy-gallery/ | ||
- | |||
- | hugo new posts/ | ||
- | # add some content after the header | ||
- | echo 'There be dragons!' | ||
- | # change status from draft | ||
- | sed -ie ' | ||
- | |||
- | # now build the content | ||
- | hugo | ||
- | |||
- | # in a different terminal, if you want to serve it for testing | ||
- | hugo server | ||
</ | </ | ||