User Tools

Site Tools




# as root
dpkg -i hugo_0.75.1_Linux-64bit.deb

# as user
cd ~
hugo new site blog-hugo
cd blog-hugo
git init
git submodule add themes/ananke
echo 'theme = "ananke"' >> config.toml
hugo new posts/
vi content/posts/
# add some content after the header
vi config.toml
# baseURL = ""

# now build the content
hugo -D

# customizing
cat themes/ananke/exampleSite/config.toml >>config.toml
vim config.toml

More complex site

# create the site as directory
hugo new posts/jap-day-at-office/

cp /tmp/picture.jpg content/posts/jap-day-at-office/
cat >>content/posts/jap-work/<<EOT

I guess this is the only country where one could receive a Red Hat
branded soy sauce as a goody on the first day of work :)

## This is a header

### This is a subheader

This is an example for a [link](


{{< figure src="/images/pic.jpg" title="pic description" >}}

Normal text. _italic text_

This video is worth watching.
{{< youtube dAEr3WfrPM8 >}}

hugo -D

More complex site 2

cat >content/posts/<<EOT
date: 2017-04-14T11:25:05-04:00
description: "desc"
featured_image: "/images/pic.jpg"
tags: []
title: "title"
disable_share: false

Tags helped me to understand this. I simply want to use “tags” in my documents, and then I want an overview page which lists all tags, and where one can access all documents which contain these tags. I use the “beautiful hugo” theme: .

### first, use tags in the header of your documents
hugo new posts/
vi content/posts/

title: "Japan - to San or Not to San"
date: 2020-10-06T14:52:19+02:00
tags: ["japan", "life"]
draft: false
Content here

### then, create a plain tags infrastructure
mkdir content/tags
touch content/tags/

### then, recreate your docs

### ..and your menu has the "tags" menu

Theme Beautifulhugo

# background image config in config.toml:
  src = "/images/20121103_154205_matsuyama_dogo_onsen_topview_hq-slim2.jpg"
  desc = "Matsuyama"
  position = "center top"
cd /opt/web/blogtest-hugo
git clone
cp -r hugo-easy-gallery/layouts/shortcodes/ layouts/
cp -r hugo-easy-gallery/static/* static/

hugo new posts/2020/10/galltest/
cat >>content/posts/2020/10/galltest/<<EOT

{{< gallery dir="/img/galltest/" />}}

mkdir -p static/img/galltest
cp <path>/2018*jpg static/img/galltest/

software/hugo.txt · Last modified: 2020/10/31 02:48 by chris