fix it
3
.gitmodules
vendored
@@ -1,3 +1,6 @@
|
|||||||
[submodule "homepage/themes/ananke"]
|
[submodule "homepage/themes/ananke"]
|
||||||
path = homepage/themes/ananke
|
path = homepage/themes/ananke
|
||||||
url = https://github.com/gohugo-ananke/ananke
|
url = https://github.com/gohugo-ananke/ananke
|
||||||
|
[submodule "homepage/themes/shibui"]
|
||||||
|
path = homepage/themes/shibui
|
||||||
|
url = https://github.com/ntk148v/shibui.git
|
||||||
|
|||||||
20
homepage/content/_index.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
title: "Thomas und die Liebe letzter Teil neue Version..."
|
||||||
|
---
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
|
||||||
|
Ich glaube, ich schreibe es hauptsächlich deswegen, um zu lernen und das Gelernte zu vertiefen und vielleicht auch ein wenig, damit es Euch da draußen helfen kann.
|
||||||
|
|
||||||
|
Bis vor ein paar Jahren kannte ich wirklich noch nicht viel. Ich konnte nicht wirklich über Gefühle sprechen, geschweige denn diese auch ausleben und verstehen. Heute kenne ich große Teile der Gründe und hoffe auch, damit besser umgehen zu können.
|
||||||
|
|
||||||
|
Ich kannte mich eigentlich selber nicht so richtig, war aber sehr zufrieden mit mir. Ich war auch der einzige. In der Corona-Zeit hatte ich mich immer mehr von meiner Familie abgesondert und mich im wörtlichen Sinne in den Keller zurück gezogen.
|
||||||
|
|
||||||
|
Erst als meine Frau mich betrogen hatte musste ich etwas ändern. Ich hatte zu der Zeit noch ein sehr altes Beziehungsbild, bzw. Lebensmodell, so, dass ich deswegen echt angepisst war. Ich konnte keine Grenzen setzen, ich konnte nicht über Gefühle reden und ich konnte mich auch nicht selbst reflektieren. Ich wusste nur, so war es scheiße. Also machte ich mich auf, mich selber wieder in die Spur zu bringen. Dazu brauchte ich *nur* folgendes:
|
||||||
|
|
||||||
|
- Ich musste abnehmen. Aus drei Gründen. Zum Einen war es nicht mehr gesund, soviel, wie ich gewogen habe und zum Anderen habe ich mich selber auch nicht mehr als attraktiv wahrgenommen. Hinzu kommt noch ein dritter Grund: Meine Ausdauer in allen Belangen war unterirdisch. Deswegen hab ich beschlossen, abzunehmen. Ich hab erst mal komplett auf Süßes und auf Chips und auf alles verzichtet, was ich nur aus Langeweile gegessen habe. Dann hab ich immer mehr auf mein Hungergefühl geachtet und so hab ich es in einem halben Jahr von 95kg auf 65kg geschafft und halte dieses Gewicht nun schon ca. 2 Jahre. Das gibt mir wieder mehr Selbstvertrauen, Selbstwertgefühl und generell fühle ich mich viel fitter und wohler, als zuvor.
|
||||||
|
- Ich musste lernen, die Welt wieder positiv zu sehen. Ich musste viel über meine Gefühle lernen und wie ich sie wieder ins Positive bringe. Ich musste lernen, das ich verantwortlich für meine Gefühle und Emotionen bin. Ich kann die Schuld nicht im Außen suchen. Ich bin auch nicht verantwortlich für die Gefühle anderer. Hier habe ich viel gelernt über Liebe, Grenzen, Lebensmodelle, innere Kinder, Bindungsprobleme, Kommunikation, etc. . Das sowohl theoretisch über Webseminare, Vorlesungen, Bücher, als auch in der Praxis durch den tatsächlichen Versuch, es zu leben.
|
||||||
|
- Mit meinem wiederhergestellten, Selbstvertrauen, meiner wachsenden Praxis im Umgang mit meinen Gefühlen und in der Kommunikation habe ich viele total tolle Menschen kennen gelernt und mit ihnen komplett neue Lebensmodelle, Vorstellungen und Erkenntnisse über mich und die Welt. Ich habe gelernt, wie toll es ist, vorurteilsfrei und offen die Welt und die Menschen kennen lernen zu dürfen.
|
||||||
|
|
||||||
|
All diese Punkte führten dazu, dass ich mich wieder richtig gut und vollständig und im Leben befindlich fühle und wieder mit einer sehr offenen, achtsamen und positiven Stimmung durchs Leben gehen kann, und ich wieder Freude an allem habe, was ich so mache.
|
||||||
|
|
||||||
5
homepage/content/gedanken/_index.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: "Gedanken"
|
||||||
|
name: Thomas
|
||||||
|
author: Thomas
|
||||||
|
---
|
||||||
1145
homepage/content/gedanken/creating-a-new-theme.md
Normal file
221
homepage/content/gedanken/diagrams.md
Normal file
@@ -0,0 +1,221 @@
|
|||||||
|
---
|
||||||
|
title: "Hugo Diagrams"
|
||||||
|
date: 2022-10-25T17:12:11+07:00
|
||||||
|
comment: true
|
||||||
|
tags: ["hugo", "tech", "diagrams"]
|
||||||
|
---
|
||||||
|
|
||||||
|
Hugo version >= 0.93.0
|
||||||
|
|
||||||
|
## GoAT Diagrams (Ascii)
|
||||||
|
|
||||||
|
Hugo! supports [GoAT](https://github.com/bep/goat) natively. This means that this code block:
|
||||||
|
|
||||||
|
````
|
||||||
|
```goat
|
||||||
|
. . . .--- 1 .-- 1 / 1
|
||||||
|
/ \ | | .---+ .-+ +
|
||||||
|
/ \ .---+---. .--+--. | '--- 2 | '-- 2 / \ 2
|
||||||
|
+ + | | | | ---+ ---+ +
|
||||||
|
/ \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
|
||||||
|
/ \ / \ | | | | | | | | '---+ '-+ +
|
||||||
|
1 2 3 4 1 2 3 4 1 2 3 4 '--- 4 '-- 4 \ 4
|
||||||
|
|
||||||
|
```
|
||||||
|
````
|
||||||
|
|
||||||
|
Will be rendered as:
|
||||||
|
|
||||||
|
```goat
|
||||||
|
|
||||||
|
. . . .--- 1 .-- 1 / 1
|
||||||
|
/ \ | | .---+ .-+ +
|
||||||
|
/ \ .---+---. .--+--. | '--- 2 | '-- 2 / \ 2
|
||||||
|
+ + | | | | ---+ ---+ +
|
||||||
|
/ \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
|
||||||
|
/ \ / \ | | | | | | | | '---+ '-+ +
|
||||||
|
1 2 3 4 1 2 3 4 1 2 3 4 '--- 4 '-- 4 \ 4
|
||||||
|
```
|
||||||
|
|
||||||
|
## GoAT Diagrams Examples
|
||||||
|
|
||||||
|
### Graphics
|
||||||
|
|
||||||
|
```goat
|
||||||
|
.
|
||||||
|
0 3 P * Eye / ^ /
|
||||||
|
*-------* +y \ +) \ / Reflection
|
||||||
|
1 /| 2 /| ^ \ \ \ v
|
||||||
|
*-------* | | v0 \ v3 --------*--------
|
||||||
|
| |4 | |7 | *----\-----*
|
||||||
|
| *-----|-* +-----> +x / v X \ .-.<-------- o
|
||||||
|
|/ |/ / / o \ | / | Refraction / \
|
||||||
|
*-------* v / \ +-' / \
|
||||||
|
5 6 +z v1 *------------------* v2 | o-----o
|
||||||
|
v
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### Complex
|
||||||
|
|
||||||
|
```goat
|
||||||
|
+-------------------+ ^ .---.
|
||||||
|
| A Box |__.--.__ __.--> | .-. | |
|
||||||
|
| | '--' v | * |<--- | |
|
||||||
|
+-------------------+ '-' | |
|
||||||
|
Round *---(-. |
|
||||||
|
.-----------------. .-------. .----------. .-------. | | |
|
||||||
|
| Mixed Rounded | | | / Diagonals \ | | | | | |
|
||||||
|
| & Square Corners | '--. .--' / \ |---+---| '-)-' .--------.
|
||||||
|
'--+------------+-' .--. | '-------+--------' | | | | / Search /
|
||||||
|
| | | | '---. | '-------' | '-+------'
|
||||||
|
|<---------->| | | | v Interior | ^
|
||||||
|
' <---' '----' .-----------. ---. .--- v |
|
||||||
|
.------------------. Diag line | .-------. +---. \ / . |
|
||||||
|
| if (a > b) +---. .--->| | | | | Curved line \ / / \ |
|
||||||
|
| obj->fcn() | \ / | '-------' |<--' + / \ |
|
||||||
|
'------------------' '--' '--+--------' .--. .--. | .-. +Done?+-'
|
||||||
|
.---+-----. | ^ |\ | | /| .--+ | | \ /
|
||||||
|
| | | Join \|/ | | Curved | \| |/ | | \ | \ /
|
||||||
|
| | +----> o --o-- '-' Vertical '--' '--' '-- '--' + .---.
|
||||||
|
<--+---+-----' | /|\ | | 3 |
|
||||||
|
v not:line 'quotes' .-' '---'
|
||||||
|
.-. .---+--------. / A || B *bold* | ^
|
||||||
|
| | | Not a dot | <---+---<-- A dash--is not a line v |
|
||||||
|
'-' '---------+--' / Nor/is this. ---
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### Process
|
||||||
|
|
||||||
|
```goat
|
||||||
|
.
|
||||||
|
.---------. / \
|
||||||
|
| START | / \ .-+-------+-. ___________
|
||||||
|
'----+----' .-------. A / \ B | |COMPLEX| | / \ .-.
|
||||||
|
| | END |<-----+CHOICE +----->| | | +--->+ PREPARATION +--->| X |
|
||||||
|
v '-------' \ / | |PROCESS| | \___________/ '-'
|
||||||
|
.---------. \ / '-+---+---+-'
|
||||||
|
/ INPUT / \ /
|
||||||
|
'-----+---' '
|
||||||
|
| ^
|
||||||
|
v |
|
||||||
|
.-----------. .-----+-----. .-.
|
||||||
|
| PROCESS +---------------->| PROCESS |<------+ X |
|
||||||
|
'-----------' '-----------' '-'
|
||||||
|
```
|
||||||
|
|
||||||
|
### File tree
|
||||||
|
|
||||||
|
Created from <https://arthursonzogni.com/Diagon/#Tree>
|
||||||
|
|
||||||
|
```goat { width=300 color="orange" }
|
||||||
|
───Linux─┬─Android
|
||||||
|
├─Debian─┬─Ubuntu─┬─Lubuntu
|
||||||
|
│ │ ├─Kubuntu
|
||||||
|
│ │ ├─Xubuntu
|
||||||
|
│ │ └─Xubuntu
|
||||||
|
│ └─Mint
|
||||||
|
├─Centos
|
||||||
|
└─Fedora
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Sequence Diagram
|
||||||
|
|
||||||
|
<https://arthursonzogni.com/Diagon/#Sequence>
|
||||||
|
|
||||||
|
```goat { class="w-40" }
|
||||||
|
┌─────┐ ┌───┐
|
||||||
|
│Alice│ │Bob│
|
||||||
|
└──┬──┘ └─┬─┘
|
||||||
|
│ │
|
||||||
|
│ Hello Bob! │
|
||||||
|
│───────────>│
|
||||||
|
│ │
|
||||||
|
│Hello Alice!│
|
||||||
|
│<───────────│
|
||||||
|
┌──┴──┐ ┌─┴─┐
|
||||||
|
│Alice│ │Bob│
|
||||||
|
└─────┘ └───┘
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Flowchart
|
||||||
|
|
||||||
|
<https://arthursonzogni.com/Diagon/#Flowchart>
|
||||||
|
|
||||||
|
```goat
|
||||||
|
_________________
|
||||||
|
╱ ╲ ┌─────┐
|
||||||
|
╱ DO YOU UNDERSTAND ╲____________________________________________________│GOOD!│
|
||||||
|
╲ FLOW CHARTS? ╱yes └──┬──┘
|
||||||
|
╲_________________╱ │
|
||||||
|
│no │
|
||||||
|
_________▽_________ ______________________ │
|
||||||
|
╱ ╲ ╱ ╲ ┌────┐ │
|
||||||
|
╱ OKAY, YOU SEE THE ╲________________╱ ... AND YOU CAN SEE ╲___│GOOD│ │
|
||||||
|
╲ LINE LABELED 'YES'? ╱yes ╲ THE ONES LABELED 'NO'? ╱yes└──┬─┘ │
|
||||||
|
╲___________________╱ ╲______________________╱ │ │
|
||||||
|
│no │no │ │
|
||||||
|
________▽_________ _________▽__________ │ │
|
||||||
|
╱ ╲ ┌───────────┐ ╱ ╲ │ │
|
||||||
|
╱ BUT YOU SEE THE ╲___│WAIT, WHAT?│ ╱ BUT YOU JUST ╲___ │ │
|
||||||
|
╲ ONES LABELED 'NO'? ╱yes└───────────┘ ╲ FOLLOWED THEM TWICE? ╱yes│ │ │
|
||||||
|
╲__________________╱ ╲____________________╱ │ │ │
|
||||||
|
│no │no │ │ │
|
||||||
|
┌───▽───┐ │ │ │ │
|
||||||
|
│LISTEN.│ └───────┬───────┘ │ │
|
||||||
|
└───┬───┘ ┌──────▽─────┐ │ │
|
||||||
|
┌─────▽────┐ │(THAT WASN'T│ │ │
|
||||||
|
│I HATE YOU│ │A QUESTION) │ │ │
|
||||||
|
└──────────┘ └──────┬─────┘ │ │
|
||||||
|
┌────▽───┐ │ │
|
||||||
|
│SCREW IT│ │ │
|
||||||
|
└────┬───┘ │ │
|
||||||
|
└─────┬─────┘ │
|
||||||
|
│ │
|
||||||
|
└─────┬─────┘
|
||||||
|
┌───────▽──────┐
|
||||||
|
│LET'S GO DRING│
|
||||||
|
└───────┬──────┘
|
||||||
|
┌─────────▽─────────┐
|
||||||
|
│HEY, I SHOULD TRY │
|
||||||
|
│INSTALLING FREEBSD!│
|
||||||
|
└───────────────────┘
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
### Table
|
||||||
|
|
||||||
|
<https://arthursonzogni.com/Diagon/#Table>
|
||||||
|
|
||||||
|
```goat { class="w-80 dark-blue" }
|
||||||
|
┌────────────────────────────────────────────────┐
|
||||||
|
│ │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│SYNTAX : { PRODUCTION } . │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│PRODUCTION: IDENTIFIER "=" EXPRESSION "." . │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│EXPRESSION: TERM { "|" TERM } . │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│TERM : FACTOR { FACTOR } . │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│FACTOR : IDENTIFIER │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│ | LITERAL │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│ | "[" EXPRESSION "]" │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│ | "(" EXPRESSION ")" │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│ | "{" EXPRESSION "}" . │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│IDENTIFIER: letter { letter } . │
|
||||||
|
├────────────────────────────────────────────────┤
|
||||||
|
│LITERAL : """" character { character } """" .│
|
||||||
|
└────────────────────────────────────────────────┘
|
||||||
|
```
|
||||||
82
homepage/content/gedanken/hugoisforlovers.md
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
---
|
||||||
|
title: "Getting Started with Hugo"
|
||||||
|
date: 2022-10-26T17:12:11+07:00
|
||||||
|
comment: true
|
||||||
|
tags: ["hugo"]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Step 1. Install Hugo
|
||||||
|
|
||||||
|
Go to [Hugo releases](https://github.com/spf13/hugo/releases) and download the
|
||||||
|
appropriate version for your OS and architecture.
|
||||||
|
|
||||||
|
Save it somewhere specific as we will be using it in the next step.
|
||||||
|
|
||||||
|
More complete instructions are available at [Install Hugo](https://gohugo.io/getting-started/installing/)
|
||||||
|
|
||||||
|
## Step 2. Build the Docs
|
||||||
|
|
||||||
|
Hugo has its own example site which happens to also be the documentation site
|
||||||
|
you are reading right now.
|
||||||
|
|
||||||
|
Follow the following steps:
|
||||||
|
|
||||||
|
```
|
||||||
|
1. Clone the [Hugo repository](http://github.com/spf13/hugo)
|
||||||
|
2. Go into the repo
|
||||||
|
3. Run hugo in server mode and build the docs
|
||||||
|
4. Open your browser to http://localhost:1313
|
||||||
|
```
|
||||||
|
|
||||||
|
Corresponding pseudo commands:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git clone https://github.com/spf13/hugo
|
||||||
|
cd hugo
|
||||||
|
/path/to/where/you/installed/hugo server --source=./docs
|
||||||
|
> 29 pages created
|
||||||
|
> 0 tags index created
|
||||||
|
> in 27 ms
|
||||||
|
> Web Server is available at http://localhost:1313
|
||||||
|
> Press ctrl+c to stop
|
||||||
|
```
|
||||||
|
|
||||||
|
Once you've gotten here, follow along the rest of this page on your local build.
|
||||||
|
|
||||||
|
## Step 3. Change the docs site
|
||||||
|
|
||||||
|
Stop the Hugo process by hitting Ctrl+C.
|
||||||
|
|
||||||
|
Now we are going to run hugo again, but this time with hugo in watch mode.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
/path/to/hugo/from/step/1/hugo server --source=./docs --watch
|
||||||
|
> 29 pages created
|
||||||
|
> 0 tags index created
|
||||||
|
> in 27 ms
|
||||||
|
> Web Server is available at http://localhost:1313
|
||||||
|
> Watching for changes in /Users/spf13/Code/hugo/docs/content
|
||||||
|
> Press ctrl+c to stop
|
||||||
|
```
|
||||||
|
|
||||||
|
Open your [favorite editor](http://vim.spf13.com) and change one of the source
|
||||||
|
content pages. How about changing this very file to *fix the typo*. How about changing this very file to *fix the typo*.
|
||||||
|
|
||||||
|
Content files are found in `docs/content/`. Unless otherwise specified, files
|
||||||
|
are located at the same relative location as the url, in our case
|
||||||
|
`docs/content/overview/quickstart.md`.
|
||||||
|
|
||||||
|
Change and save this file.. Notice what happened in your terminal.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
> Change detected, rebuilding site
|
||||||
|
|
||||||
|
> 29 pages created
|
||||||
|
> 0 tags index created
|
||||||
|
> in 26 ms
|
||||||
|
```
|
||||||
|
|
||||||
|
Refresh the browser and observe that the typo is now fixed.
|
||||||
|
|
||||||
|
Notice how quick that was. Try to refresh the site before it's finished building. I double dare you.
|
||||||
|
Having nearly instant feedback enables you to have your creativity flow without waiting for long builds.
|
||||||
1141
homepage/content/gedanken/introduce-hugo.md
Normal file
179
homepage/content/gedanken/migrate-from-jekyll.md
Normal file
@@ -0,0 +1,179 @@
|
|||||||
|
---
|
||||||
|
title: "Migrate to Hugo from Jekyll"
|
||||||
|
date: 2021-10-22T17:12:11+07:00
|
||||||
|
comment: true
|
||||||
|
tags: ["hugo"]
|
||||||
|
---
|
||||||
|
|
||||||
|
## Move static content to `static`
|
||||||
|
|
||||||
|
Jekyll has a rule that any directory not starting with `_` will be copied as-is to the `_site` output. Hugo keeps all static content under `static`. You should therefore move it all there.
|
||||||
|
With Jekyll, something that looked like
|
||||||
|
|
||||||
|
```shell
|
||||||
|
▾ <root>/
|
||||||
|
▾ images/
|
||||||
|
logo.png
|
||||||
|
```
|
||||||
|
|
||||||
|
should become
|
||||||
|
|
||||||
|
```shell
|
||||||
|
▾ <root>/
|
||||||
|
▾ static/
|
||||||
|
▾ images/
|
||||||
|
logo.png
|
||||||
|
```
|
||||||
|
|
||||||
|
Additionally, you'll want any files that should reside at the root (such as `CNAME`) to be moved to `static`.
|
||||||
|
|
||||||
|
## Create your Hugo configuration file
|
||||||
|
|
||||||
|
Hugo can read your configuration as JSON, YAML or TOML. Hugo supports parameters custom configuration too. Refer to the [Hugo configuration documentation](/overview/configuration/) for details.
|
||||||
|
|
||||||
|
## Set your configuration publish folder to `_site`
|
||||||
|
|
||||||
|
The default is for Jekyll to publish to `_site` and for Hugo to publish to `public`. If, like me, you have [`_site` mapped to a git submodule on the `gh-pages` branch](http://blog.blindgaenger.net/generate_github_pages_in_a_submodule.html), you'll want to do one of two alternatives:
|
||||||
|
|
||||||
|
1. Change your submodule to point to map `gh-pages` to public instead of `_site` (recommended).
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git submodule deinit _site
|
||||||
|
git rm _site
|
||||||
|
git submodule add -b gh-pages git@github.com:your-username/your-repo.git public
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Or, change the Hugo configuration to use `_site` instead of `public`.
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
..
|
||||||
|
"publishdir": "_site",
|
||||||
|
..
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Convert Jekyll templates to Hugo templates
|
||||||
|
|
||||||
|
That's the bulk of the work right here. The documentation is your friend. You should refer to [Jekyll's template documentation](http://jekyllrb.com/docs/templates/) if you need to refresh your memory on how you built your blog and [Hugo's template](/layout/templates/) to learn Hugo's way.
|
||||||
|
|
||||||
|
As a single reference data point, converting my templates for [heyitsalex.net](http://heyitsalex.net/) took me no more than a few hours.
|
||||||
|
|
||||||
|
## Convert Jekyll plugins to Hugo shortcodes
|
||||||
|
|
||||||
|
Jekyll has [plugins](http://jekyllrb.com/docs/plugins/); Hugo has [shortcodes](/doc/shortcodes/). It's fairly trivial to do a port.
|
||||||
|
|
||||||
|
### Implementation
|
||||||
|
|
||||||
|
As an example, I was using a custom [`image_tag`](https://github.com/alexandre-normand/alexandre-normand/blob/74bb12036a71334fdb7dba84e073382fc06908ec/_plugins/image_tag.rb) plugin to generate figures with caption when running Jekyll. As I read about shortcodes, I found Hugo had a nice built-in shortcode that does exactly the same thing.
|
||||||
|
|
||||||
|
Jekyll's plugin:
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
module Jekyll
|
||||||
|
class ImageTag < Liquid::Tag
|
||||||
|
@url: nil
|
||||||
|
@caption: nil
|
||||||
|
@class: nil
|
||||||
|
@link: nil
|
||||||
|
// Patterns
|
||||||
|
IMAGE_URL_WITH_CLASS_AND_CAPTION =
|
||||||
|
IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK: /(\w+)(\s+)((https?:\/\/|\/)(\S+))(\s+)"(.*?)"(\s+)->((https?:\/\/|\/)(\S+))(\s*)/i
|
||||||
|
IMAGE_URL_WITH_CAPTION: /((https?:\/\/|\/)(\S+))(\s+)"(.*?)"/i
|
||||||
|
IMAGE_URL_WITH_CLASS: /(\w+)(\s+)((https?:\/\/|\/)(\S+))/i
|
||||||
|
IMAGE_URL: /((https?:\/\/|\/)(\S+))/i
|
||||||
|
def initialize(tag_name, markup, tokens)
|
||||||
|
super
|
||||||
|
if markup =~ IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK
|
||||||
|
@class : $1
|
||||||
|
@url : $3
|
||||||
|
@caption: $7
|
||||||
|
@link: $9
|
||||||
|
elsif markup =~ IMAGE_URL_WITH_CLASS_AND_CAPTION
|
||||||
|
@class : $1
|
||||||
|
@url : $3
|
||||||
|
@caption: $7
|
||||||
|
elsif markup =~ IMAGE_URL_WITH_CAPTION
|
||||||
|
@url : $1
|
||||||
|
@caption: $5
|
||||||
|
elsif markup =~ IMAGE_URL_WITH_CLASS
|
||||||
|
@class: $1
|
||||||
|
@url : $3
|
||||||
|
elsif markup =~ IMAGE_URL
|
||||||
|
@url: $1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
def render(context)
|
||||||
|
if @class
|
||||||
|
source: "<figure class='#{@class}'>"
|
||||||
|
else
|
||||||
|
source: "<figure>"
|
||||||
|
end
|
||||||
|
if @link
|
||||||
|
source += "<a href=\"#{@link}\">"
|
||||||
|
end
|
||||||
|
source += "<img src=\"#{@url}\">"
|
||||||
|
if @link
|
||||||
|
source += "</a>"
|
||||||
|
end
|
||||||
|
source += "<figcaption>#{@caption}</figcaption>" if @caption
|
||||||
|
source += "</figure>"
|
||||||
|
source
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
Liquid::Template.register_tag('image', Jekyll::ImageTag)
|
||||||
|
```
|
||||||
|
|
||||||
|
is written as this Hugo shortcode:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<!-- image -->
|
||||||
|
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
|
||||||
|
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
|
||||||
|
<img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }} />
|
||||||
|
{{ if .Get "link"}}</a>{{ end }}
|
||||||
|
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
|
||||||
|
<figcaption>{{ if isset .Params "title" }}
|
||||||
|
{{ .Get "title" }}{{ end }}
|
||||||
|
{{ if or (.Get "caption") (.Get "attr")}}<p>
|
||||||
|
{{ .Get "caption" }}
|
||||||
|
{{ with .Get "attrlink"}}<a href="{{.}}"> {{ end }}
|
||||||
|
{{ .Get "attr" }}
|
||||||
|
{{ if .Get "attrlink"}}</a> {{ end }}
|
||||||
|
</p> {{ end }}
|
||||||
|
</figcaption>
|
||||||
|
{{ end }}
|
||||||
|
</figure>
|
||||||
|
<!-- image -->
|
||||||
|
```
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
I simply changed:
|
||||||
|
|
||||||
|
```
|
||||||
|
{% image full http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg "One of my favorite touristy-type photos. I secretly waited for the good light while we were "having fun" and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." ->http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/ %}
|
||||||
|
```
|
||||||
|
|
||||||
|
to this (this example uses a slightly extended version named `fig`, different than the built-in `figure`):
|
||||||
|
|
||||||
|
```
|
||||||
|
{{%/* fig class="full" src="http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg" title="One of my favorite touristy-type photos. I secretly waited for the good light while we were having fun and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." link="http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/" */%}}
|
||||||
|
```
|
||||||
|
|
||||||
|
As a bonus, the shortcode named parameters are, arguably, more readable.
|
||||||
|
|
||||||
|
## Finishing touches
|
||||||
|
|
||||||
|
### Fix content
|
||||||
|
|
||||||
|
Depending on the amount of customization that was done with each post with Jekyll, this step will require more or less effort. There are no hard and fast rules here except that `hugo server --watch` is your friend. Test your changes and fix errors as needed.
|
||||||
|
|
||||||
|
### Clean up
|
||||||
|
|
||||||
|
You'll want to remove the Jekyll configuration at this point. If you have anything else that isn't used, delete it.
|
||||||
|
|
||||||
|
## A practical example in a diff
|
||||||
|
|
||||||
|
[Hey, it's Alex](http://heyitsalex.net/) was migrated in less than a _father-with-kids day_ from Jekyll to Hugo. You can see all the changes (and screw-ups) by looking at this [diff](https://github.com/alexandre-normand/alexandre-normand/compare/869d69435bd2665c3fbf5b5c78d4c22759d7613a...b7f6605b1265e83b4b81495423294208cc74d610).
|
||||||
12
homepage/content/warum.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
title: "Warum"
|
||||||
|
---
|
||||||
|
|
||||||
|
## Über mich und Warum
|
||||||
|
|
||||||
|
### über mich
|
||||||
|
Ich bin Thomas
|
||||||
|
|
||||||
|
### warum
|
||||||
|
und ich schreibe hier auf dieser Page einfach meine Gedanken, wie sie mir kommen zu den Themen Liebe, Beziehungen und was da so alles an Zeug dazu gehört. Ich schreibe das im Wesentlichen für mich, um meine Gedanken ein wenig zu ordnen und zu strukturieren. Wenn Euch was gefällt, nehmt es für Euch. Kommentiert gerne die Gedanken, fügt Eure hinzu ...
|
||||||
|
|
||||||
12
homepage/content/warum/_index.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
title: "Warum"
|
||||||
|
---
|
||||||
|
|
||||||
|
## Über mich und Warum
|
||||||
|
|
||||||
|
### über mich
|
||||||
|
Ich bin Thomas
|
||||||
|
|
||||||
|
### warum
|
||||||
|
und ich schreibe hier auf dieser Page einfach meine Gedanken, wie sie mir kommen zu den Themen Liebe, Beziehungen und was da so alles an Zeug dazu gehört. Ich schreibe das im Wesentlichen für mich, um meine Gedanken ein wenig zu ordnen und zu strukturieren. Wenn Euch was gefällt, nehmt es für Euch. Kommentiert gerne die Gedanken, fügt Eure hinzu ...
|
||||||
|
|
||||||
@@ -1,4 +1,50 @@
|
|||||||
baseURL = 'https://example.org/'
|
baseURL = 'http://example.org/'
|
||||||
locale = 'en-us'
|
locale = 'en-us'
|
||||||
title = 'My New Hugo Project'
|
title = 'Thomas Internet Garden'
|
||||||
theme = 'ananke'
|
theme = "shibui"
|
||||||
|
|
||||||
|
[params.author]
|
||||||
|
name = "Thomas"
|
||||||
|
email = "Thomas.Sindt@gmx.de"
|
||||||
|
|
||||||
|
[markup]
|
||||||
|
defaultMarkdownHandler = "goldmark"
|
||||||
|
# By default, Goldmark trims unsafe outputs which might prevent some shortcodes from rendering.
|
||||||
|
# It is recommended to set markup.goldmark.renderer.unsafe=true if you encounter problems.
|
||||||
|
[markup.goldmark]
|
||||||
|
[markup.goldmark.renderer]
|
||||||
|
unsafe = true # Enable user to embed HTML snippets in Markdown content.
|
||||||
|
[markup.highlight]
|
||||||
|
codeFences = true
|
||||||
|
guessSyntax = true
|
||||||
|
lineNos = false
|
||||||
|
noClasses = true
|
||||||
|
tabWidth = 4
|
||||||
|
style = "algol_nu"
|
||||||
|
[markup.tableOfContents]
|
||||||
|
startLevel = 2
|
||||||
|
endLevel = 4
|
||||||
|
ordered = true
|
||||||
|
|
||||||
|
[menu]
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Gedanken"
|
||||||
|
url = "/gedanken/"
|
||||||
|
weight = 1
|
||||||
|
[[menu.main]]
|
||||||
|
name = "Warum"
|
||||||
|
url = "/warum/"
|
||||||
|
weight = 2
|
||||||
|
|
||||||
|
[build]
|
||||||
|
writeStats = true
|
||||||
|
|
||||||
|
[frontmatter]
|
||||||
|
date = ['date', 'publishDate', 'lastmod']
|
||||||
|
expiryDate = ['expiryDate']
|
||||||
|
lastmod = [':git', 'lastmod', 'date', 'publishDate']
|
||||||
|
publishDate = ['publishDate', 'date']
|
||||||
|
|
||||||
|
[caches]
|
||||||
|
[caches.images]
|
||||||
|
dir = ':cacheDir/images'
|
||||||
|
|||||||
10
homepage/hugo.toml.old
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
baseURL = 'https://example.org/'
|
||||||
|
locale = 'en-us'
|
||||||
|
title = 'Thomas Internet Garden'
|
||||||
|
theme = 'shibui'
|
||||||
|
|
||||||
|
[params]
|
||||||
|
author = "Thomas Sindt"
|
||||||
|
email = "Thomas.Sindt@gmx.de"
|
||||||
|
|
||||||
|
|
||||||
138
homepage/hugo_stats.json
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
{
|
||||||
|
"htmlElements": {
|
||||||
|
"tags": [
|
||||||
|
"a",
|
||||||
|
"body",
|
||||||
|
"circle",
|
||||||
|
"code",
|
||||||
|
"details",
|
||||||
|
"div",
|
||||||
|
"em",
|
||||||
|
"footer",
|
||||||
|
"g",
|
||||||
|
"h1",
|
||||||
|
"h2",
|
||||||
|
"h3",
|
||||||
|
"h4",
|
||||||
|
"head",
|
||||||
|
"header",
|
||||||
|
"html",
|
||||||
|
"li",
|
||||||
|
"link",
|
||||||
|
"main",
|
||||||
|
"meta",
|
||||||
|
"nav",
|
||||||
|
"ol",
|
||||||
|
"p",
|
||||||
|
"path",
|
||||||
|
"polygon",
|
||||||
|
"pre",
|
||||||
|
"script",
|
||||||
|
"span",
|
||||||
|
"strong",
|
||||||
|
"summary",
|
||||||
|
"svg",
|
||||||
|
"text",
|
||||||
|
"time",
|
||||||
|
"title",
|
||||||
|
"ul"
|
||||||
|
],
|
||||||
|
"classes": [
|
||||||
|
"back-link",
|
||||||
|
"back-nav",
|
||||||
|
"comments",
|
||||||
|
"current",
|
||||||
|
"dark-blue",
|
||||||
|
"goat",
|
||||||
|
"highlight",
|
||||||
|
"path-nav",
|
||||||
|
"reading-time",
|
||||||
|
"skip-link",
|
||||||
|
"svg-container",
|
||||||
|
"terminal-nav",
|
||||||
|
"terms-list",
|
||||||
|
"time",
|
||||||
|
"time-list",
|
||||||
|
"toc",
|
||||||
|
"toc-content",
|
||||||
|
"toc-title",
|
||||||
|
"w-40",
|
||||||
|
"w-80"
|
||||||
|
],
|
||||||
|
"ids": [
|
||||||
|
"TableOfContents",
|
||||||
|
"a-practical-example-in-a-diff",
|
||||||
|
"add-content-to-the-homepage",
|
||||||
|
"add-content-to-the-posts",
|
||||||
|
"add-date-published-to-posts",
|
||||||
|
"add-date-published-to-the-template",
|
||||||
|
"build-a-dynamic-home-page",
|
||||||
|
"clean-up",
|
||||||
|
"complex",
|
||||||
|
"content",
|
||||||
|
"convert-jekyll-plugins-to-hugo-shortcodes",
|
||||||
|
"convert-jekyll-templates-to-hugo-templates",
|
||||||
|
"create-a-new-site",
|
||||||
|
"create-a-new-theme",
|
||||||
|
"create-a-post-listing",
|
||||||
|
"create-a-skeleton",
|
||||||
|
"create-new-posts",
|
||||||
|
"create-the-header-and-footer-partials",
|
||||||
|
"create-your-hugo-configuration-file",
|
||||||
|
"creating-top-level-pages",
|
||||||
|
"development-commands",
|
||||||
|
"dont-repeat-yourself",
|
||||||
|
"file-tree",
|
||||||
|
"finishing-touches",
|
||||||
|
"fix-content",
|
||||||
|
"flowchart",
|
||||||
|
"front-matter",
|
||||||
|
"generate-the-html-for-the-new-site",
|
||||||
|
"generate-the-site",
|
||||||
|
"goat-diagrams-ascii",
|
||||||
|
"goat-diagrams-examples",
|
||||||
|
"graphics",
|
||||||
|
"hugos-watch-option",
|
||||||
|
"implementation",
|
||||||
|
"introduction",
|
||||||
|
"linking-to-content",
|
||||||
|
"list-and-single-templates",
|
||||||
|
"list-template",
|
||||||
|
"live-reload",
|
||||||
|
"live-reload-1",
|
||||||
|
"main-content",
|
||||||
|
"make-a-static-home-page",
|
||||||
|
"markdown",
|
||||||
|
"move-static-content-to-static",
|
||||||
|
"partial-template",
|
||||||
|
"process",
|
||||||
|
"purge-the-public-directory",
|
||||||
|
"sequence-diagram",
|
||||||
|
"set-your-configuration-publish-folder-to-_site",
|
||||||
|
"sharing-templates",
|
||||||
|
"single-template",
|
||||||
|
"site-configuration-file",
|
||||||
|
"skins",
|
||||||
|
"some-definitions",
|
||||||
|
"step-1-install-hugo",
|
||||||
|
"step-2-build-the-docs",
|
||||||
|
"step-3-change-the-docs-site",
|
||||||
|
"table",
|
||||||
|
"template-files",
|
||||||
|
"test-the-new-site",
|
||||||
|
"the-home-page",
|
||||||
|
"the-home-page-1",
|
||||||
|
"the-magic-of-static",
|
||||||
|
"the-theme-development-cycle",
|
||||||
|
"update-the-configuration-file-to-use-the-theme",
|
||||||
|
"update-the-default-single-template-to-use-the-partials",
|
||||||
|
"update-the-home-page-template",
|
||||||
|
"update-the-home-page-template-to-use-the-partials",
|
||||||
|
"update-the-template-file",
|
||||||
|
"usage",
|
||||||
|
"warum",
|
||||||
|
"über-mich",
|
||||||
|
"über-mich-und-warum"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
24
homepage/layouts/404.html
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<h1>404 - Page Not Found</h1>
|
||||||
|
<p>The page you're looking for doesn't exist or has been moved.</p>
|
||||||
|
|
||||||
|
<nav aria-label="404 navigation">
|
||||||
|
<ul>
|
||||||
|
<li><a href="{{ "/" | relURL }}">← Return to homepage</a></li>
|
||||||
|
{{ with site.Home }}
|
||||||
|
{{ with .GetPage "posts" }}
|
||||||
|
{{ if . }}
|
||||||
|
<li><a href="{{ .RelPermalink }}">Browse posts</a></li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ with site.Home }}
|
||||||
|
{{ with .GetPage "about" }}
|
||||||
|
{{ if . }}
|
||||||
|
<li><a href="{{ .RelPermalink }}">About page</a></li>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
{{ end }}
|
||||||
7
homepage/layouts/_default/_markup/render-heading.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{{ $class := "" }}
|
||||||
|
{{ if findRE "^(?:\\d+\\.)+\\s+" .Text 1 }}
|
||||||
|
{{ $class = "manual-number" }}
|
||||||
|
{{ end }}
|
||||||
|
<h{{ .Level }} id="{{ .Anchor | safeURL }}"{{ with $class }} class="{{ . }}"{{ end }}>
|
||||||
|
{{ .Text | safeHTML }}
|
||||||
|
</h{{ .Level }}>
|
||||||
20
homepage/layouts/_default/_markup/render-image.html
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{{- $alt := .Text -}} {{- $src := .Destination -}} {{- $title := .Title -}}
|
||||||
|
|
||||||
|
<figure>
|
||||||
|
<img
|
||||||
|
src="{{ $src }}"
|
||||||
|
alt="{{ $alt }}"
|
||||||
|
loading="lazy"
|
||||||
|
{{
|
||||||
|
with
|
||||||
|
$title
|
||||||
|
}}
|
||||||
|
title="{{ . }}"
|
||||||
|
{{
|
||||||
|
end
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
{{- with $alt }}
|
||||||
|
<figcaption>{{ . }}</figcaption>
|
||||||
|
{{ end -}}
|
||||||
|
</figure>
|
||||||
30
homepage/layouts/_default/archive.html
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<h1>Archive</h1>
|
||||||
|
<div class="archive">
|
||||||
|
{{- $.Scratch.Add "year" "" -}}
|
||||||
|
{{- $.Scratch.Add "month" "" -}}
|
||||||
|
|
||||||
|
{{- range where site.Pages "Section" "posts" -}}
|
||||||
|
{{- if and (not .Draft) .Date -}}
|
||||||
|
{{- $year := .Date.Format "2006" -}}
|
||||||
|
{{- $month := .Date.Format "January" -}}
|
||||||
|
|
||||||
|
{{- if ne $year ($.Scratch.Get "year") -}}
|
||||||
|
{{- $.Scratch.Set "year" $year -}}
|
||||||
|
{{- $.Scratch.Set "month" "" -}}
|
||||||
|
<h2 class="archive-year">{{ $year }}</h2>
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if ne $month ($.Scratch.Get "month") -}}
|
||||||
|
{{- $.Scratch.Set "month" $month -}}
|
||||||
|
<h3 class="archive-month">{{ $month }}</h3>
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
<article class="archive-item">
|
||||||
|
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02" }}</time>
|
||||||
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
|
</article>
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
15
homepage/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="{{ site.Language.Locale }}"
|
||||||
|
dir="{{ or site.Language.Direction `ltr` }}"
|
||||||
|
>
|
||||||
|
<head>
|
||||||
|
{{ partial "head.html" . }}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner">{{ partial "header.html" . }}</header>
|
||||||
|
<main id="main-content" role="main">{{ block "main" . }}{{ end }}</main>
|
||||||
|
<footer role="contentinfo">{{ partial "footer.html" . }}</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
14
homepage/layouts/_default/list.html
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ .Content }}
|
||||||
|
<div class="time-list">
|
||||||
|
<ul>
|
||||||
|
{{ range .Pages }}
|
||||||
|
<li>
|
||||||
|
<span>{{- partial "date" .Date -}}</span>
|
||||||
|
<div><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></div>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
51
homepage/layouts/_default/single.html
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||||
|
|
||||||
|
{{/* Table of Contents */}}
|
||||||
|
{{ $hasToC := .Params.toc | default true }}
|
||||||
|
{{ $headers := findRE "<h[2-6]" .Content }}
|
||||||
|
{{ if and $hasToC (ge (len $headers) 1) }}
|
||||||
|
<details class="toc" open>
|
||||||
|
<summary class="toc-title">Table of contents</summary>
|
||||||
|
<nav class="toc-content">
|
||||||
|
{{ .TableOfContents }}
|
||||||
|
</nav>
|
||||||
|
</details>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
<!-- Content -->
|
||||||
|
{{ .Content }}
|
||||||
|
<div class="time">
|
||||||
|
{{ partial "date.html" .Date }}
|
||||||
|
{{ $showReadingTime := .Params.showreadingtime | default site.Params.showreadingtime | default true }}
|
||||||
|
{{ if and $showReadingTime .ReadingTime }}
|
||||||
|
<span class="reading-time"> · {{ .ReadingTime }} min read</span>
|
||||||
|
{{ end }}
|
||||||
|
{{ $showLastMod := .Params.showlastmod | default site.Params.showlastmod | default false }}
|
||||||
|
{{ if and $showLastMod .Lastmod }}
|
||||||
|
{{ if ne .LastMod.Format "2006-01-02" .Date.Format "2006-01-02" }}
|
||||||
|
<span class="lastmod"> · Last updated: {{ .LastMod.Format "2006-01-02" }}</span>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Comments block -->
|
||||||
|
{{ if and .Content (default true (default .Site.Params.comments
|
||||||
|
.Params.comments))
|
||||||
|
}}
|
||||||
|
<div class="comments">{{- partial "comments" . -}}</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if not .IsHome }}
|
||||||
|
<div class="terminal-nav">
|
||||||
|
<div class="back-nav">
|
||||||
|
{{ with .Parent }}
|
||||||
|
<a href="{{ .RelPermalink }}" class="back-link">../</a>
|
||||||
|
{{ else }}
|
||||||
|
<a href="{{ "/" | relURL }}" class="back-link">../</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
2
homepage/layouts/_partials/comments.html
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<!-- This partial can be replaced to support other commenting engines -->
|
||||||
|
{{ template "_internal/disqus.html" . }}
|
||||||
1
homepage/layouts/_partials/date.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<time datetime="{{ . | time.Format "2006-01-02" }}">{{ . | time.Format "2006-01-02" }} </time>
|
||||||
4
homepage/layouts/_partials/footer.html
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<p role="contentinfo">
|
||||||
|
© Copyright {{ now.Year }} ·
|
||||||
|
Thomas
|
||||||
|
</p>
|
||||||
59
homepage/layouts/_partials/head.html
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title
|
||||||
|
site.Title }}{{ end }}
|
||||||
|
</title>
|
||||||
|
{{ with .Description | default .Site.Params.description }}<meta
|
||||||
|
name="description"
|
||||||
|
content="{{ . }}"
|
||||||
|
/>{{ end }} {{/* Canonical URL */}}
|
||||||
|
<link rel="canonical" href="{{ .Permalink }}" />
|
||||||
|
|
||||||
|
{{/* Open Graph */}}
|
||||||
|
<meta property="og:title" content="{{ .Title }}" />
|
||||||
|
{{ with .Description | default .Site.Params.description }}<meta
|
||||||
|
property="og:description"
|
||||||
|
content="{{ . }}"
|
||||||
|
/>{{ end }}
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="{{ if .IsPage }}article{{ else }}website{{ end }}"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="{{ .Permalink }}" />
|
||||||
|
{{ with .Site.Params.ogImage }}<meta
|
||||||
|
property="og:image"
|
||||||
|
content="{{ . | absURL }}"
|
||||||
|
/>{{ end }} {{/* Twitter Card */}}
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="{{ .Title }}" />
|
||||||
|
{{ with .Description | default .Site.Params.description }}<meta
|
||||||
|
name="twitter:description"
|
||||||
|
content="{{ . }}"
|
||||||
|
/>{{ end }} {{ with .Site.Params.twitterHandle }}<meta
|
||||||
|
name="twitter:site"
|
||||||
|
content="@{{ . }}"
|
||||||
|
/>{{ end }} {{ with .Site.Params.ogImage }}<meta
|
||||||
|
name="twitter:image"
|
||||||
|
content="{{ . | absURL }}"
|
||||||
|
/>{{ end }} {{/* RSS Feed */}} {{ with .OutputFormats.Get "rss" -}} {{ printf
|
||||||
|
`<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type
|
||||||
|
.Permalink site.Title | safeHTML }} {{ end }} {{/* JSON-LD Structured Data for
|
||||||
|
Articles */}} {{ if .IsPage }}
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Article",
|
||||||
|
"headline": "{{ .Title }}",
|
||||||
|
"url": "{{ .Permalink }}",
|
||||||
|
"datePublished": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}",
|
||||||
|
"dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}"
|
||||||
|
{{- with $.Description | default $.Site.Params.description }},
|
||||||
|
"description": "{{ . }}"
|
||||||
|
{{- end }}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
{{ end }} {{ partialCached "head/favicon.html" . }} {{ partialCached
|
||||||
|
"head/css.html" . }}
|
||||||
19
homepage/layouts/_partials/head/css.html
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{{- with resources.Get "css/main.css" }}
|
||||||
|
{{- if hugo.IsDevelopment }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||||
|
{{- else }}
|
||||||
|
{{- with . | minify | fingerprint }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- with resources.Get "css/custom.css" }}
|
||||||
|
{{- if hugo.IsDevelopment }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}">
|
||||||
|
{{- else }}
|
||||||
|
{{- with . | minify | fingerprint }}
|
||||||
|
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
17
homepage/layouts/_partials/head/favicon.html
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="{{ "favicon_io/apple-icon-57x57.png" | relURL }}">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="{{ "favicon_io/apple-icon-60x60.png" | relURL }}">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="{{ "favicon_io/apple-icon-72x72.png" | relURL }}">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="{{ "favicon_io/apple-icon-76x76.png" | relURL }}">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="{{ "favicon_io/apple-icon-114x114.png" | relURL }}">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="{{ "favicon_io/apple-icon-120x120.png" | relURL }}">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="{{ "favicon_io/apple-icon-144x144.png" | relURL }}">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="{{ "favicon_io/apple-icon-152x152.png" | relURL }}">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ "favicon_io/apple-icon-180x180.png" | relURL }}">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="{{ "favicon_io/android-icon-192x192.png" | relURL }}">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon_io/favicon-32x32.png" | relURL }}">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="{{ "favicon_io/favicon-96x96.png" | relURL }}">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon_io/favicon-16x16.png" | relURL }}">
|
||||||
|
<link rel="manifest" href="{{ "favicon_io/manifest.json" | relURL }}">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="{{ "favicon_io/ms-icon-144x144.png" | relURL }}">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
19
homepage/layouts/_partials/header.html
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
{{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{ define "breadcrumbnav" }}
|
||||||
|
{{ if .p1.Parent }}
|
||||||
|
{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
|
||||||
|
{{ else if not .p1.IsHome }}
|
||||||
|
{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
|
||||||
|
{{ end }}
|
||||||
|
<li{{ if eq .p1 .p2 }} class="current"{{ end }}>
|
||||||
|
{{ if .p1.IsHome }}/{{ end }}
|
||||||
|
<a href="{{ .p1.RelPermalink }}">{{ if .p1.IsHome }}{{ .p1.Site.Title }}{{ else }}{{ .p1.Title }}{{ end }}</a>
|
||||||
|
{{ if ne .p1 .p2 }}/{{ end }}
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
51
homepage/layouts/_partials/menu.html
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{{- /*
|
||||||
|
Renders a menu for the given menu ID.
|
||||||
|
|
||||||
|
@context {page} page The current page.
|
||||||
|
@context {string} menuID The menu ID.
|
||||||
|
|
||||||
|
@example: {{ partial "menu.html" (dict "menuID" "main" "page" .) }}
|
||||||
|
*/}}
|
||||||
|
|
||||||
|
{{- $page := .page }}
|
||||||
|
{{- $menuID := .menuID }}
|
||||||
|
|
||||||
|
{{- with index site.Menus $menuID }}
|
||||||
|
<nav aria-label="Main navigation">
|
||||||
|
<ul>
|
||||||
|
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- define "_partials/inline/menu/walk.html" }}
|
||||||
|
{{- $page := .page }}
|
||||||
|
{{- range .menuEntries }}
|
||||||
|
{{- $attrs := dict "href" .URL }}
|
||||||
|
{{- if $page.IsMenuCurrent .Menu . }}
|
||||||
|
{{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") }}
|
||||||
|
{{- else if $page.HasMenuCurrent .Menu .}}
|
||||||
|
{{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") }}
|
||||||
|
{{- end }}
|
||||||
|
{{- $name := .Name }}
|
||||||
|
{{- with .Identifier }}
|
||||||
|
{{- with T . }}
|
||||||
|
{{- $name = . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
{{- range $k, $v := $attrs }}
|
||||||
|
{{- with $v }}
|
||||||
|
{{- printf " %s=%q" $k $v | safeHTMLAttr }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
>{{ $name }}</a>
|
||||||
|
{{- with .Children }}
|
||||||
|
<ul>
|
||||||
|
{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}
|
||||||
|
</ul>
|
||||||
|
{{- end }}
|
||||||
|
</li>
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
22
homepage/layouts/_partials/terms.html
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{{- /*
|
||||||
|
For a given taxonomy, renders a list of terms assigned to the page.
|
||||||
|
|
||||||
|
@context {page} page The current page.
|
||||||
|
@context {string} taxonomy The taxonomy.
|
||||||
|
|
||||||
|
@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
|
||||||
|
*/}}
|
||||||
|
|
||||||
|
{{- $page := .page }}
|
||||||
|
{{- $taxonomy := .taxonomy }}
|
||||||
|
|
||||||
|
{{- with $page.GetTerms $taxonomy }}
|
||||||
|
{{- $label := (index . 0).Parent.LinkTitle }}
|
||||||
|
<div class="terms-list">
|
||||||
|
<ul>
|
||||||
|
{{- range . }}
|
||||||
|
<li><a href="{{ .RelPermalink }}">#{{ .LinkTitle }}</a></li>
|
||||||
|
{{- end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
6
homepage/layouts/index.html
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{{ define "main" }}
|
||||||
|
{{ .Content }}
|
||||||
|
<div class="terminal-nav">
|
||||||
|
{{ partial "menu.html" (dict "menuID" "main" "page" .) }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
4
homepage/layouts/robots.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
Sitemap: {{ "sitemap.xml" | absURL }}
|
||||||
2
homepage/layouts/shortcodes/mermaid.html
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
|
||||||
|
<div class="mermaid" align="{{ if .Get "align" }}{{ .Get "align" }}{{ else }}center{{ end }}">{{ safeHTML .Inner }}</div>
|
||||||
@@ -1,98 +1,100 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en-us">
|
<html
|
||||||
<head>
|
lang="en-us"
|
||||||
<meta charset="utf-8">
|
dir="ltr"
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
404 Page not found | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
<title>My New Hugo Project</title>
|
<link rel="canonical" href="http://localhost:1313/404.html" />
|
||||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="generator" content="Hugo 0.161.1">
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="404 Page not found" />
|
||||||
|
|
||||||
<meta name="robots" content="index, follow">
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="website"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/404.html" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="404 Page not found" />
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
<link rel="stylesheet" href="/ananke/css/main.fe543ec729f225f1a33caed07775c832a416476900d82ba51765d6ead9de6758.css" integrity="sha256-/lQ+xynyJfGjPK7Qd3XIMqQWR2kA2CulF2XW6tneZ1g=" crossorigin="anonymous">
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/404.html">404 Page not found</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
|
||||||
<link rel="canonical" href="https://example.org/404.html">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<meta property="og:url" content="https://example.org/404.html">
|
|
||||||
<meta property="og:site_name" content="My New Hugo Project">
|
|
||||||
<meta property="og:title" content="404 Page not found">
|
|
||||||
<meta property="og:locale" content="en_us">
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
|
|
||||||
<meta itemprop="name" content="404 Page not found">
|
|
||||||
<meta name="twitter:card" content="summary">
|
|
||||||
<meta name="twitter:title" content="404 Page not found">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head><body class="ma0 avenir bg-near-white production is-404">
|
|
||||||
|
|
||||||
|
|
||||||
<header>
|
|
||||||
<div class="bg-black">
|
|
||||||
<nav class="pv3 ph3 ph4-ns" role="navigation">
|
|
||||||
<div class="flex-l center items-center justify-between">
|
|
||||||
<a href="/" class="f3 fw2 hover-white white-90 dib no-underline">
|
|
||||||
|
|
||||||
My New Hugo Project
|
|
||||||
|
|
||||||
</a>
|
|
||||||
<div class="flex-l items-center">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="ananke-socials"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>404 - Page Not Found</h1>
|
||||||
|
<p>The page you're looking for doesn't exist or has been moved.</p>
|
||||||
|
|
||||||
|
<nav aria-label="404 navigation">
|
||||||
|
<ul>
|
||||||
|
<li><a href="/">← Return to homepage</a></li>
|
||||||
|
|
||||||
|
|
||||||
<main class="pb7" role="main">
|
|
||||||
|
|
||||||
<article class="center cf pv5 measure-wide-l">
|
|
||||||
<h1>
|
|
||||||
This is not the page you were looking for
|
|
||||||
</h1>
|
|
||||||
</article>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
</main>
|
</main>
|
||||||
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
<div class="flex justify-between">
|
© Copyright 2026 ·
|
||||||
<a class="f4 fw4 hover-white white-70 dn dib-ns pv2 ph3 no-underline" href="https://example.org/" >
|
Thomas
|
||||||
© My New Hugo Project 2026
|
</p>
|
||||||
</a>
|
|
||||||
<div><div class="ananke-socials"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,114 +1,93 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en-us">
|
<html
|
||||||
<head>
|
lang="en-us"
|
||||||
<meta charset="utf-8">
|
dir="ltr"
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Categories | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
<title>My New Hugo Project</title>
|
<link rel="canonical" href="http://localhost:1313/categories/" />
|
||||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="generator" content="Hugo 0.161.1">
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Categories" />
|
||||||
|
|
||||||
<meta name="robots" content="index, follow">
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="website"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/categories/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Categories" />
|
||||||
|
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/categories/index.xml" title="Thomas Internet Garden" /> <link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
<link rel="stylesheet" href="/ananke/css/main.fe543ec729f225f1a33caed07775c832a416476900d82ba51765d6ead9de6758.css" integrity="sha256-/lQ+xynyJfGjPK7Qd3XIMqQWR2kA2CulF2XW6tneZ1g=" crossorigin="anonymous">
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/categories/">Categories</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
<link href="/categories/index.xml" rel="alternate" type="application/rss+xml" title="My New Hugo Project" />
|
|
||||||
<link href="/categories/index.xml" rel="feed" type="application/rss+xml" title="My New Hugo Project" />
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="canonical" href="https://example.org/categories/">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<meta property="og:url" content="https://example.org/categories/">
|
|
||||||
<meta property="og:site_name" content="My New Hugo Project">
|
|
||||||
<meta property="og:title" content="Categories">
|
|
||||||
<meta property="og:locale" content="en_us">
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
|
|
||||||
<meta itemprop="name" content="Categories">
|
|
||||||
<meta name="twitter:card" content="summary">
|
|
||||||
<meta name="twitter:title" content="Categories">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head><body class="ma0 avenir bg-near-white production is-taxonomy">
|
|
||||||
|
|
||||||
|
|
||||||
<header>
|
|
||||||
<div class="pb3-m pb6-l bg-black">
|
|
||||||
<nav class="pv3 ph3 ph4-ns" role="navigation">
|
|
||||||
<div class="flex-l center items-center justify-between">
|
|
||||||
<a href="/" class="f3 fw2 hover-white white-90 dib no-underline">
|
|
||||||
|
|
||||||
My New Hugo Project
|
|
||||||
|
|
||||||
</a>
|
|
||||||
<div class="flex-l items-center">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="ananke-socials"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="tc-l pv3 ph3 ph4-ns">
|
|
||||||
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
|
|
||||||
Categories
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Categories</h1>
|
||||||
|
|
||||||
|
<div class="time-list">
|
||||||
|
<ul>
|
||||||
|
|
||||||
<main class="pb7" role="main">
|
</ul>
|
||||||
|
|
||||||
<article class="cf pa3 pa4-m pa4-l">
|
|
||||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links mid-gray">
|
|
||||||
<p>Below you will find pages that utilize the taxonomy term “Categories”</p>
|
|
||||||
</div>
|
</div>
|
||||||
</article>
|
|
||||||
<div class="mw8 center">
|
|
||||||
<section class="flex-ns mt5 flex-wrap justify-around">
|
|
||||||
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
<div class="flex justify-between">
|
© Copyright 2026 ·
|
||||||
<a class="f4 fw4 hover-white white-70 dn dib-ns pv2 ph3 no-underline" href="https://example.org/" >
|
Thomas
|
||||||
© My New Hugo Project 2026
|
</p>
|
||||||
</a>
|
|
||||||
<div><div class="ananke-socials"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
<title>Categories on My New Hugo Project</title>
|
<title>Categories on Thomas Internet Garden</title>
|
||||||
<link>https://example.org/categories/</link>
|
<link>http://localhost:1313/categories/</link>
|
||||||
<description>Recent content in Categories on My New Hugo Project</description>
|
<description>Recent content in Categories on Thomas Internet Garden</description>
|
||||||
<generator>Hugo</generator>
|
<generator>Hugo</generator>
|
||||||
<language>en-us</language>
|
<language>en-us</language>
|
||||||
<atom:link href="https://example.org/categories/index.xml" rel="self" type="application/rss+xml" />
|
<managingEditor>Thomas.Sindt@gmx.de (Thomas)</managingEditor>
|
||||||
|
<webMaster>Thomas.Sindt@gmx.de (Thomas)</webMaster>
|
||||||
|
<atom:link href="http://localhost:1313/categories/index.xml" rel="self" type="application/rss+xml" />
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|||||||
44
homepage/public/css/custom.css
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/* You can add custom style here */
|
||||||
|
/* Enhanced Table of Contents Styling */
|
||||||
|
.toc {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-title {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--spacing-xs);
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-title::before {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Visual indicator for TOC depth levels */
|
||||||
|
.toc-content ol ol {
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol ol ol {
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Smooth transitions for links in TOC */
|
||||||
|
.toc-content a {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content a::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
bottom: -2px;
|
||||||
|
left: 0;
|
||||||
|
width: 0;
|
||||||
|
height: 1px;
|
||||||
|
background: var(--color-text-primary);
|
||||||
|
transition: width 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content a:hover::after {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
734
homepage/public/css/main.css
Normal file
@@ -0,0 +1,734 @@
|
|||||||
|
:root {
|
||||||
|
/* Typography */
|
||||||
|
--spacing-base: 1.5em;
|
||||||
|
--font-family-mono: monospace;
|
||||||
|
--font-size-base: 1em;
|
||||||
|
--font-size-small: 0.9em;
|
||||||
|
--font-size-code: 0.95em;
|
||||||
|
|
||||||
|
/* Spacing */
|
||||||
|
--spacing-xs: calc(var(--spacing-base) * 0.25);
|
||||||
|
--spacing-sm: calc(var(--spacing-base) * 0.5);
|
||||||
|
--spacing-md: var(--spacing-base);
|
||||||
|
--spacing-lg: calc(var(--spacing-base) * 2);
|
||||||
|
|
||||||
|
/* Base theme knobs */
|
||||||
|
--bg-h: 0;
|
||||||
|
--bg-s: 0%;
|
||||||
|
--bg-l: 99%;
|
||||||
|
|
||||||
|
/* Background colors */
|
||||||
|
--color-bg-primary: hsl(var(--bg-h) var(--bg-s) var(--bg-l));
|
||||||
|
--color-bg-secondary: hsl(var(--bg-h) var(--bg-s) calc(var(--bg-l) - 2%));
|
||||||
|
--color-border: hsl(var(--bg-h) var(--bg-s) calc(var(--bg-l) - 6%));
|
||||||
|
--color-selection-bg: hsl(var(--bg-h) var(--bg-s) calc(var(--bg-l) - 13%));
|
||||||
|
|
||||||
|
/* Text colors with WCAG-friendly contrast */
|
||||||
|
/* Primary: ensures near-black on light bg and near-white on dark bg */
|
||||||
|
--color-text-primary: hsl(
|
||||||
|
var(--bg-h) var(--bg-s) clamp(8%, calc(100% - var(--bg-l)), 92%)
|
||||||
|
);
|
||||||
|
|
||||||
|
/* Muted: softer but still >4.5:1 contrast */
|
||||||
|
--color-text-muted: hsl(
|
||||||
|
var(--bg-h) var(--bg-s) clamp(30%, calc(85% - var(--bg-l)), 75%)
|
||||||
|
);
|
||||||
|
|
||||||
|
/* Code text: slightly brighter than muted */
|
||||||
|
--color-text-code: hsl(
|
||||||
|
var(--bg-h) var(--bg-s) clamp(20%, calc(90% - var(--bg-l)), 85%)
|
||||||
|
);
|
||||||
|
|
||||||
|
/* Layout */
|
||||||
|
--container-width: 64ch;
|
||||||
|
--pre-border-radius: 0.75rem;
|
||||||
|
--inline-border-radius: 0.375rem;
|
||||||
|
--gap-base: 1em;
|
||||||
|
--gap-small: 0.5em;
|
||||||
|
|
||||||
|
/* Breakpoints */
|
||||||
|
--breakpoint-mobile: 600px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Common component styles */
|
||||||
|
.no-scrollbar {
|
||||||
|
scrollbar-width: none; /* Firefox */
|
||||||
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-scrollbar::-webkit-scrollbar {
|
||||||
|
display: none; /* Chrome, Safari, Opera */
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-unstyled {
|
||||||
|
list-style: none;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-muted {
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-underline {
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
background: var(--color-selection-bg);
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Skip link for accessibility */
|
||||||
|
.skip-link {
|
||||||
|
position: absolute;
|
||||||
|
top: -100%;
|
||||||
|
left: 0;
|
||||||
|
padding: var(--spacing-sm) var(--spacing-md);
|
||||||
|
background: var(--color-bg-primary);
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
z-index: 1000;
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.2s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.skip-link:focus {
|
||||||
|
position: fixed;
|
||||||
|
top: var(--spacing-sm);
|
||||||
|
left: var(--spacing-sm);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Focus styles for accessibility */
|
||||||
|
a:focus-visible,
|
||||||
|
button:focus-visible,
|
||||||
|
input:focus-visible,
|
||||||
|
textarea:focus-visible,
|
||||||
|
select:focus-visible {
|
||||||
|
outline: 2px solid var(--color-text-primary);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font: inherit;
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style-type: disc;
|
||||||
|
margin-left: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol {
|
||||||
|
list-style-type: decimal;
|
||||||
|
margin-left: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
margin: 0 0 0 calc(100vw - 100%);
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font: var(--font-size-base) / var(--spacing-base) var(--font-family-mono);
|
||||||
|
background: var(--color-bg-primary);
|
||||||
|
min-height: 100%;
|
||||||
|
display: grid;
|
||||||
|
grid-template-rows: auto 1fr auto;
|
||||||
|
grid-template-columns: minmax(auto, var(--container-width));
|
||||||
|
justify-content: center;
|
||||||
|
padding: var(--spacing-lg);
|
||||||
|
gap: var(--spacing-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: -0.16666em;
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: 1px dotted;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
border-bottom: 1px solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
p,
|
||||||
|
pre {
|
||||||
|
margin: var(--spacing-base) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5 {
|
||||||
|
margin: var(--spacing-base) 0;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
counter-increment: h2;
|
||||||
|
counter-reset: h3;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
counter-increment: h3;
|
||||||
|
counter-reset: h4;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
counter-increment: h4;
|
||||||
|
counter-reset: h5;
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
counter-increment: h5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* nested counters */
|
||||||
|
h2:not(.manual-number)::before {
|
||||||
|
content: counter(h2) ". ";
|
||||||
|
}
|
||||||
|
|
||||||
|
h3:not(.manual-number)::before {
|
||||||
|
content: counter(h2) "." counter(h3) ". ";
|
||||||
|
}
|
||||||
|
|
||||||
|
h4:not(.manual-number)::before {
|
||||||
|
content: counter(h2) "." counter(h3) "." counter(h4) ". ";
|
||||||
|
}
|
||||||
|
|
||||||
|
h5:not(.manual-number)::before {
|
||||||
|
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". ";
|
||||||
|
}
|
||||||
|
|
||||||
|
time {
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
padding: calc(var(--spacing-base) * 2) 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
footer p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
padding: var(--spacing-sm) var(--spacing-md);
|
||||||
|
border-radius: var(--pre-border-radius);
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-wrap: break-word;
|
||||||
|
font-family: var(--font-family-mono);
|
||||||
|
font-size: var(--font-size-code);
|
||||||
|
line-height: 1.6;
|
||||||
|
color: var(--color-text-code);
|
||||||
|
overflow-x: auto;
|
||||||
|
box-shadow: 0 1px 2px 0 var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
pre code {
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
font-size: inherit;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
p > code,
|
||||||
|
li > code,
|
||||||
|
h1 > code,
|
||||||
|
h2 > code,
|
||||||
|
h3 > code,
|
||||||
|
h4 > code,
|
||||||
|
h5 > code {
|
||||||
|
background: var(--color-bg-secondary);
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
border-radius: var(--inline-border-radius);
|
||||||
|
padding: 0.2em 0.4em;
|
||||||
|
font-family: var(--font-family-mono);
|
||||||
|
font-size: var(--font-size-code);
|
||||||
|
color: var(--color-text-code);
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terms-list {
|
||||||
|
padding-bottom: var(--spacing-base);
|
||||||
|
}
|
||||||
|
|
||||||
|
.terms-list ul {
|
||||||
|
list-style-type: none;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terms-list ul li {
|
||||||
|
display: inline-block;
|
||||||
|
font-style: italic;
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
padding: 0 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Path navigation styles */
|
||||||
|
.path-nav {
|
||||||
|
font-family: var(--font-family-mono);
|
||||||
|
padding: var(--spacing-base) 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow-x: auto;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
scrollbar-width: none; /* Firefox */
|
||||||
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-nav::-webkit-scrollbar {
|
||||||
|
display: none; /* Chrome, Safari, Opera */
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-nav ol {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-nav li {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
flex-shrink: 0;
|
||||||
|
max-width: 200px; /* Limit maximum width on small screens */
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-nav li.current {
|
||||||
|
max-width: none; /* Allow full width for current page */
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-nav li a {
|
||||||
|
text-decoration: none;
|
||||||
|
border-bottom: none;
|
||||||
|
padding: 0 0.25em;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-nav li.current a {
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-nav a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-nav {
|
||||||
|
margin-bottom: var(--spacing-base);
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-link {
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.back-link:hover {
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Time list */
|
||||||
|
.time-list ul {
|
||||||
|
list-style: none;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.time-list li {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: auto 1fr;
|
||||||
|
gap: var(--gap-base);
|
||||||
|
align-items: start;
|
||||||
|
padding: var(--spacing-sm) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.time-list li {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
gap: var(--gap-small);
|
||||||
|
}
|
||||||
|
|
||||||
|
.time-list time {
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Archive styles */
|
||||||
|
.archive {
|
||||||
|
margin: var(--spacing-base) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-year {
|
||||||
|
margin: calc(var(--spacing-base) * 1.5) 0 var(--spacing-sm) 0;
|
||||||
|
font-size: 1.2em;
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-month {
|
||||||
|
margin: var(--spacing-md) 0 var(--spacing-sm) 0;
|
||||||
|
font-size: 1.1em;
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: var(--gap-small);
|
||||||
|
margin: var(--spacing-sm) 0;
|
||||||
|
padding-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-item time {
|
||||||
|
font-family: var(--font-family-mono);
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
min-width: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-item a {
|
||||||
|
font-size: var(--font-size-base);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Main menu navigation styles */
|
||||||
|
.terminal-nav {
|
||||||
|
font-family: var(--font-family-mono);
|
||||||
|
border-top: 1px solid var(--color-border);
|
||||||
|
margin-top: calc(var(--spacing-base) * 2);
|
||||||
|
padding-top: var(--spacing-base);
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal-nav nav ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
display: flex;
|
||||||
|
gap: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal-nav nav ul li {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal-nav nav ul li a,
|
||||||
|
.terminal-nav .back-link {
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
border-bottom: none;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal-nav nav ul li a:hover,
|
||||||
|
.terminal-nav .back-link:hover {
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal-nav nav ul li a.active {
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.terminal-nav .back-nav {
|
||||||
|
margin: calc(var(--spacing-base) * 0.5) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Image styles */
|
||||||
|
img {
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
margin: var(--spacing-base) auto;
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
padding: var(--spacing-sm) var(--spacing-md);
|
||||||
|
border-radius: var(--pre-border-radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
margin: var(--spacing-base) 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure img {
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
figcaption {
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
margin-top: calc(var(--spacing-base) / 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Table styles */
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
margin: var(--spacing-base) 0;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead th,
|
||||||
|
th {
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
border-bottom: 2px solid var(--color-border);
|
||||||
|
padding: var(--spacing-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
padding: var(--spacing-sm);
|
||||||
|
border-bottom: 1px solid var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Typography emphasis */
|
||||||
|
strong {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
em {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Blockquote styles */
|
||||||
|
blockquote {
|
||||||
|
margin: var(--spacing-base) 0;
|
||||||
|
padding: var(--spacing-sm) var(--spacing-base);
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
border-radius: var(--pre-border-radius);
|
||||||
|
background: var(--color-bg-secondary);
|
||||||
|
box-shadow: 0 1px 2px 0 var(--color-border);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote > :first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote > :last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Table of Contents */
|
||||||
|
.toc {
|
||||||
|
margin: var(--spacing-base) 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 1px solid var(--color-border);
|
||||||
|
background: var(--color-bg-secondary);
|
||||||
|
border-radius: var(--pre-border-radius);
|
||||||
|
box-shadow: 0 1px 2px 0 var(--color-border);
|
||||||
|
overflow: hidden;
|
||||||
|
transition: all 0.3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-title {
|
||||||
|
display: block;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: var(--spacing-sm) var(--spacing-md);
|
||||||
|
font-weight: bold;
|
||||||
|
user-select: none;
|
||||||
|
transition: background-color 0.2s ease-in-out;
|
||||||
|
list-style: none;
|
||||||
|
position: relative;
|
||||||
|
padding-left: var(--spacing-lg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-title:hover {
|
||||||
|
background: var(--color-bg-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom disclosure triangle for details/summary */
|
||||||
|
.toc-title::before {
|
||||||
|
content: "▶";
|
||||||
|
position: absolute;
|
||||||
|
left: var(--spacing-sm);
|
||||||
|
transition: transform 0.2s ease-in-out;
|
||||||
|
display: inline-block;
|
||||||
|
width: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] > .toc-title::before {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content {
|
||||||
|
padding: var(--spacing-md);
|
||||||
|
border-top: 1px solid var(--color-border);
|
||||||
|
animation: slideDown 0.3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes slideDown {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
max-height: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
max-height: 100vh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
transition: color 0.15s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content a:hover {
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
border-bottom: 1px solid var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* CSS Counters for hierarchical numbering */
|
||||||
|
.toc-content {
|
||||||
|
counter-reset: level1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol {
|
||||||
|
list-style: none;
|
||||||
|
margin-left: 1.5rem;
|
||||||
|
padding: 0;
|
||||||
|
counter-reset: level2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol li {
|
||||||
|
margin: var(--spacing-xs) 0;
|
||||||
|
counter-increment: level1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol li::before {
|
||||||
|
content: counter(level1) ". ";
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol ol {
|
||||||
|
margin-top: var(--spacing-xs);
|
||||||
|
margin-bottom: var(--spacing-xs);
|
||||||
|
counter-reset: level2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol ol li {
|
||||||
|
counter-increment: level2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol ol li::before {
|
||||||
|
content: counter(level1) "." counter(level2) ". ";
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol ol ol {
|
||||||
|
counter-reset: level3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol ol ol li {
|
||||||
|
counter-increment: level3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol ol ol li::before {
|
||||||
|
content: counter(level1) "." counter(level2) "." counter(level3) ". ";
|
||||||
|
}
|
||||||
|
|
||||||
|
.toc-content ol ol ol ol li::before {
|
||||||
|
content: counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) ". ";
|
||||||
|
}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
margin: var(--spacing-md) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.reading-time,
|
||||||
|
.lastmod {
|
||||||
|
color: var(--color-text-muted);
|
||||||
|
font-size: var(--font-size-small);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.path-nav li {
|
||||||
|
max-width: 100px; /* More aggressive truncation on mobile */
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-nav li:first-child {
|
||||||
|
max-width: none; /* Don't truncate site title */
|
||||||
|
}
|
||||||
|
|
||||||
|
.path-nav li.current {
|
||||||
|
max-width: 150px; /* Allow slightly more width for current page on mobile */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
body {
|
||||||
|
padding-top: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
max-width: calc(100vw - 4em);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Print styles */
|
||||||
|
@media print {
|
||||||
|
body {
|
||||||
|
background: white;
|
||||||
|
color: black;
|
||||||
|
padding: 0;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
header,
|
||||||
|
footer,
|
||||||
|
.terminal-nav,
|
||||||
|
.skip-link,
|
||||||
|
.toc,
|
||||||
|
.back-nav {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
border-bottom: none;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[href]::after {
|
||||||
|
content: " (" attr(href) ")";
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: gray;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[href^="#"]::after,
|
||||||
|
a[href^="javascript:"]::after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
pre,
|
||||||
|
blockquote,
|
||||||
|
img {
|
||||||
|
page-break-inside: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5 {
|
||||||
|
page-break-after: avoid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BIN
homepage/public/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
homepage/public/favicon_io/android-icon-144x144.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
homepage/public/favicon_io/android-icon-192x192.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
homepage/public/favicon_io/android-icon-36x36.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
homepage/public/favicon_io/android-icon-48x48.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
homepage/public/favicon_io/android-icon-72x72.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
homepage/public/favicon_io/android-icon-96x96.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
homepage/public/favicon_io/apple-icon-114x114.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
homepage/public/favicon_io/apple-icon-120x120.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
homepage/public/favicon_io/apple-icon-144x144.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
homepage/public/favicon_io/apple-icon-152x152.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
homepage/public/favicon_io/apple-icon-180x180.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
homepage/public/favicon_io/apple-icon-57x57.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
homepage/public/favicon_io/apple-icon-60x60.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
homepage/public/favicon_io/apple-icon-72x72.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
homepage/public/favicon_io/apple-icon-76x76.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
homepage/public/favicon_io/apple-icon-precomposed.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
homepage/public/favicon_io/apple-icon.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
2
homepage/public/favicon_io/browserconfig.xml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
|
||||||
BIN
homepage/public/favicon_io/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 816 B |
BIN
homepage/public/favicon_io/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
homepage/public/favicon_io/favicon-96x96.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
homepage/public/favicon_io/favicon.ico
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
41
homepage/public/favicon_io/manifest.json
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"name": "App",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-36x36.png",
|
||||||
|
"sizes": "36x36",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "0.75"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-48x48.png",
|
||||||
|
"sizes": "48x48",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "1.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-72x72.png",
|
||||||
|
"sizes": "72x72",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "1.5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-96x96.png",
|
||||||
|
"sizes": "96x96",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "2.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-144x144.png",
|
||||||
|
"sizes": "144x144",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "3.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "\/android-icon-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image\/png",
|
||||||
|
"density": "4.0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
BIN
homepage/public/favicon_io/ms-icon-144x144.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
homepage/public/favicon_io/ms-icon-150x150.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
homepage/public/favicon_io/ms-icon-310x310.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
homepage/public/favicon_io/ms-icon-70x70.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
1228
homepage/public/gedanken/creating-a-new-theme/index.html
Normal file
3132
homepage/public/gedanken/diagrams/index.html
Normal file
221
homepage/public/gedanken/hugoisforlovers/index.html
Normal file
@@ -0,0 +1,221 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Getting Started with Hugo | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/gedanken/hugoisforlovers/" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Getting Started with Hugo" />
|
||||||
|
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="article"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/gedanken/hugoisforlovers/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Getting Started with Hugo" />
|
||||||
|
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Article",
|
||||||
|
"headline": "Getting Started with Hugo",
|
||||||
|
"url": "http:\/\/localhost:1313\/gedanken\/hugoisforlovers\/",
|
||||||
|
"datePublished": "2022-10-26T17:12:11\u002b07:00",
|
||||||
|
"dateModified": "2022-10-26T17:12:11\u002b07:00"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<a href="/gedanken/">Gedanken</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/gedanken/hugoisforlovers/">Getting Started with Hugo</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Getting Started with Hugo</h1>
|
||||||
|
|
||||||
|
<div class="terms-list">
|
||||||
|
<ul>
|
||||||
|
<li><a href="/tags/hugo/">#Hugo</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<details class="toc" open>
|
||||||
|
<summary class="toc-title">Table of contents</summary>
|
||||||
|
<nav class="toc-content">
|
||||||
|
<nav id="TableOfContents">
|
||||||
|
<ol>
|
||||||
|
<li><a href="#step-1-install-hugo">Step 1. Install Hugo</a></li>
|
||||||
|
<li><a href="#step-2-build-the-docs">Step 2. Build the Docs</a></li>
|
||||||
|
<li><a href="#step-3-change-the-docs-site">Step 3. Change the docs site</a></li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
</nav>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="step-1-install-hugo">
|
||||||
|
Step 1. Install Hugo
|
||||||
|
</h2>
|
||||||
|
<p>Go to <a href="https://github.com/spf13/hugo/releases">Hugo releases</a> and download the
|
||||||
|
appropriate version for your OS and architecture.</p>
|
||||||
|
<p>Save it somewhere specific as we will be using it in the next step.</p>
|
||||||
|
<p>More complete instructions are available at <a href="https://gohugo.io/getting-started/installing/">Install Hugo</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="step-2-build-the-docs">
|
||||||
|
Step 2. Build the Docs
|
||||||
|
</h2>
|
||||||
|
<p>Hugo has its own example site which happens to also be the documentation site
|
||||||
|
you are reading right now.</p>
|
||||||
|
<p>Follow the following steps:</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>1. Clone the [Hugo repository](http://github.com/spf13/hugo)
|
||||||
|
</span></span><span style="display:flex;"><span>2. Go into the repo
|
||||||
|
</span></span><span style="display:flex;"><span>3. Run hugo in server mode and build the docs
|
||||||
|
</span></span><span style="display:flex;"><span>4. Open your browser to http://localhost:1313
|
||||||
|
</span></span></code></pre></div><p>Corresponding pseudo commands:</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>git clone https://github.com/spf13/hugo
|
||||||
|
</span></span><span style="display:flex;"><span><span style="font-weight:bold;font-style:italic">cd</span> hugo
|
||||||
|
</span></span><span style="display:flex;"><span>/path/to/where/you/installed/hugo server --source=./docs
|
||||||
|
</span></span><span style="display:flex;"><span>> 29 pages created
|
||||||
|
</span></span><span style="display:flex;"><span>> 0 tags index created
|
||||||
|
</span></span><span style="display:flex;"><span>> in 27 ms
|
||||||
|
</span></span><span style="display:flex;"><span>> Web Server is available at http://localhost:1313
|
||||||
|
</span></span><span style="display:flex;"><span>> Press ctrl+c to stop
|
||||||
|
</span></span></code></pre></div><p>Once you’ve gotten here, follow along the rest of this page on your local build.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="step-3-change-the-docs-site">
|
||||||
|
Step 3. Change the docs site
|
||||||
|
</h2>
|
||||||
|
<p>Stop the Hugo process by hitting Ctrl+C.</p>
|
||||||
|
<p>Now we are going to run hugo again, but this time with hugo in watch mode.</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>/path/to/hugo/from/step/1/hugo server --source=./docs --watch
|
||||||
|
</span></span><span style="display:flex;"><span>> 29 pages created
|
||||||
|
</span></span><span style="display:flex;"><span>> 0 tags index created
|
||||||
|
</span></span><span style="display:flex;"><span>> in 27 ms
|
||||||
|
</span></span><span style="display:flex;"><span>> Web Server is available at http://localhost:1313
|
||||||
|
</span></span><span style="display:flex;"><span>> Watching <span style="font-weight:bold">for</span> changes in /Users/spf13/Code/hugo/docs/content
|
||||||
|
</span></span><span style="display:flex;"><span>> Press ctrl+c to stop
|
||||||
|
</span></span></code></pre></div><p>Open your <a href="http://vim.spf13.com">favorite editor</a> and change one of the source
|
||||||
|
content pages. How about changing this very file to <em>fix the typo</em>. How about changing this very file to <em>fix the typo</em>.</p>
|
||||||
|
<p>Content files are found in <code>docs/content/</code>. Unless otherwise specified, files
|
||||||
|
are located at the same relative location as the url, in our case
|
||||||
|
<code>docs/content/overview/quickstart.md</code>.</p>
|
||||||
|
<p>Change and save this file.. Notice what happened in your terminal.</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>> Change detected, rebuilding site
|
||||||
|
</span></span><span style="display:flex;"><span>
|
||||||
|
</span></span><span style="display:flex;"><span>> 29 pages created
|
||||||
|
</span></span><span style="display:flex;"><span>> 0 tags index created
|
||||||
|
</span></span><span style="display:flex;"><span>> in 26 ms
|
||||||
|
</span></span></code></pre></div><p>Refresh the browser and observe that the typo is now fixed.</p>
|
||||||
|
<p>Notice how quick that was. Try to refresh the site before it’s finished building. I double dare you.
|
||||||
|
Having nearly instant feedback enables you to have your creativity flow without waiting for long builds.</p>
|
||||||
|
|
||||||
|
<div class="time">
|
||||||
|
<time datetime="2022-10-26">2022-10-26 </time>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="reading-time"> · 2 min read</span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="comments">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="terminal-nav">
|
||||||
|
<div class="back-nav">
|
||||||
|
|
||||||
|
<a href="/gedanken/" class="back-link">../</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
|
© Copyright 2026 ·
|
||||||
|
Thomas
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
129
homepage/public/gedanken/index.html
Normal file
@@ -0,0 +1,129 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Gedanken | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/gedanken/" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Gedanken" />
|
||||||
|
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="website"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/gedanken/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Gedanken" />
|
||||||
|
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/gedanken/index.xml" title="Thomas Internet Garden" /> <link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/gedanken/">Gedanken</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Gedanken</h1>
|
||||||
|
|
||||||
|
<div class="time-list">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2026-05-18">2026-05-18 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/my-first-post/">My First Post</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-26">2022-10-26 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/hugoisforlovers/">Getting Started with Hugo</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-25">2022-10-25 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/diagrams/">Hugo Diagrams</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-20">2022-10-20 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/introduce-hugo/">Introduce Hugo</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2021-10-22">2021-10-22 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/creating-a-new-theme/">Creating a New Theme</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2021-10-22">2021-10-22 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/migrate-from-jekyll/">Migrate to Hugo from Jekyll</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
|
© Copyright 2026 ·
|
||||||
|
Thomas
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
56
homepage/public/gedanken/index.xml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Gedanken on Thomas Internet Garden</title>
|
||||||
|
<link>http://localhost:1313/gedanken/</link>
|
||||||
|
<description>Recent content in Gedanken on Thomas Internet Garden</description>
|
||||||
|
<generator>Hugo</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<managingEditor>Thomas.Sindt@gmx.de (Thomas)</managingEditor>
|
||||||
|
<webMaster>Thomas.Sindt@gmx.de (Thomas)</webMaster>
|
||||||
|
<lastBuildDate>Mon, 18 May 2026 23:03:26 +0200</lastBuildDate>
|
||||||
|
<atom:link href="http://localhost:1313/gedanken/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<item>
|
||||||
|
<title>My First Post</title>
|
||||||
|
<link>http://localhost:1313/gedanken/my-first-post/</link>
|
||||||
|
<pubDate>Mon, 18 May 2026 23:03:26 +0200</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/my-first-post/</guid>
|
||||||
|
<description><h2 id="introduction">
 introduction
</h2>
<p>This is <strong>bold</strong> text, and this is <em>emphasized</em> text.</p>
<p>Visit the <a href="https://gohugo.io">Hugo</a> website!</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Getting Started with Hugo</title>
|
||||||
|
<link>http://localhost:1313/gedanken/hugoisforlovers/</link>
|
||||||
|
<pubDate>Wed, 26 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/hugoisforlovers/</guid>
|
||||||
|
<description><h2 id="step-1-install-hugo">
 Step 1. Install Hugo
</h2>
<p>Go to <a href="https://github.com/spf13/hugo/releases">Hugo releases</a> and download the
appropriate version for your OS and architecture.</p>
<p>Save it somewhere specific as we will be using it in the next step.</p>
<p>More complete instructions are available at <a href="https://gohugo.io/getting-started/installing/">Install Hugo</a></p>


<h2 id="step-2-build-the-docs">
 Step 2. Build the Docs
</h2>
<p>Hugo has its own example site which happens to also be the documentation site
you are reading right now.</p>
<p>Follow the following steps:</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Hugo Diagrams</title>
|
||||||
|
<link>http://localhost:1313/gedanken/diagrams/</link>
|
||||||
|
<pubDate>Tue, 25 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/diagrams/</guid>
|
||||||
|
<description><p>Hugo version &gt;= 0.93.0</p>


<h2 id="goat-diagrams-ascii">
 GoAT Diagrams (Ascii)
</h2>
<p>Hugo! supports <a href="https://github.com/bep/goat">GoAT</a> natively. This means that this code block:</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>```goat
</span></span><span style="display:flex;"><span> . . . .--- 1 .-- 1 / 1
</span></span><span style="display:flex;"><span> / \ | | .---+ .-+ +
</span></span><span style="display:flex;"><span> / \ .---+---. .--+--. | &#39;--- 2 | &#39;-- 2 / \ 2
</span></span><span style="display:flex;"><span> + + | | | | ---+ ---+ +
</span></span><span style="display:flex;"><span> / \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
</span></span><span style="display:flex;"><span> / \ / \ | | | | | | | | &#39;---+ &#39;-+ +
</span></span><span style="display:flex;"><span> 1 2 3 4 1 2 3 4 1 2 3 4 &#39;--- 4 &#39;-- 4 \ 4
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>```
</span></span></code></pre></div><p>Will be rendered as:</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Introduce Hugo</title>
|
||||||
|
<link>http://localhost:1313/gedanken/introduce-hugo/</link>
|
||||||
|
<pubDate>Thu, 20 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/introduce-hugo/</guid>
|
||||||
|
<description><h2 id="introduction">
 Introduction
</h2>
<p>This tutorial will show you how to create a simple theme in <a href="https://github.com/gohugoio/hugo">Hugo</a>. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme.</p>
<p>We&rsquo;ll start with creating a new site with a very basic template. Then we&rsquo;ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Creating a New Theme</title>
|
||||||
|
<link>http://localhost:1313/gedanken/creating-a-new-theme/</link>
|
||||||
|
<pubDate>Fri, 22 Oct 2021 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/creating-a-new-theme/</guid>
|
||||||
|
<description><h2 id="introduction">
 Introduction
</h2>
<p>This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme.</p>
<p>We&rsquo;ll start with creating a new site with a very basic template. Then we&rsquo;ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Migrate to Hugo from Jekyll</title>
|
||||||
|
<link>http://localhost:1313/gedanken/migrate-from-jekyll/</link>
|
||||||
|
<pubDate>Fri, 22 Oct 2021 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/migrate-from-jekyll/</guid>
|
||||||
|
<description><h2 id="move-static-content-to-static">
 Move static content to <code>static</code>
</h2>
<p>Jekyll has a rule that any directory not starting with <code>_</code> will be copied as-is to the <code>_site</code> output. Hugo keeps all static content under <code>static</code>. You should therefore move it all there.
With Jekyll, something that looked like</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ &lt;root&gt;/
</span></span><span style="display:flex;"><span> ▾ images/
</span></span><span style="display:flex;"><span> logo.png
</span></span></code></pre></div><p>should become</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ &lt;root&gt;/
</span></span><span style="display:flex;"><span> ▾ static/
</span></span><span style="display:flex;"><span> ▾ images/
</span></span><span style="display:flex;"><span> logo.png
</span></span></code></pre></div><p>Additionally, you&rsquo;ll want any files that should reside at the root (such as <code>CNAME</code>) to be moved to <code>static</code>.</p></description>
|
||||||
|
</item>
|
||||||
|
</channel>
|
||||||
|
</rss>
|
||||||
1229
homepage/public/gedanken/introduce-hugo/index.html
Normal file
343
homepage/public/gedanken/migrate-from-jekyll/index.html
Normal file
@@ -0,0 +1,343 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Migrate to Hugo from Jekyll | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/gedanken/migrate-from-jekyll/" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Migrate to Hugo from Jekyll" />
|
||||||
|
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="article"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/gedanken/migrate-from-jekyll/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Migrate to Hugo from Jekyll" />
|
||||||
|
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Article",
|
||||||
|
"headline": "Migrate to Hugo from Jekyll",
|
||||||
|
"url": "http:\/\/localhost:1313\/gedanken\/migrate-from-jekyll\/",
|
||||||
|
"datePublished": "2021-10-22T17:12:11\u002b07:00",
|
||||||
|
"dateModified": "2021-10-22T17:12:11\u002b07:00"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<a href="/gedanken/">Gedanken</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/gedanken/migrate-from-jekyll/">Migrate to Hugo from Jekyll</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Migrate to Hugo from Jekyll</h1>
|
||||||
|
|
||||||
|
<div class="terms-list">
|
||||||
|
<ul>
|
||||||
|
<li><a href="/tags/hugo/">#Hugo</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<details class="toc" open>
|
||||||
|
<summary class="toc-title">Table of contents</summary>
|
||||||
|
<nav class="toc-content">
|
||||||
|
<nav id="TableOfContents">
|
||||||
|
<ol>
|
||||||
|
<li><a href="#move-static-content-to-static">Move static content to <code>static</code></a></li>
|
||||||
|
<li><a href="#create-your-hugo-configuration-file">Create your Hugo configuration file</a></li>
|
||||||
|
<li><a href="#set-your-configuration-publish-folder-to-_site">Set your configuration publish folder to <code>_site</code></a></li>
|
||||||
|
<li><a href="#convert-jekyll-templates-to-hugo-templates">Convert Jekyll templates to Hugo templates</a></li>
|
||||||
|
<li><a href="#convert-jekyll-plugins-to-hugo-shortcodes">Convert Jekyll plugins to Hugo shortcodes</a>
|
||||||
|
<ol>
|
||||||
|
<li><a href="#implementation">Implementation</a></li>
|
||||||
|
<li><a href="#usage">Usage</a></li>
|
||||||
|
</ol>
|
||||||
|
</li>
|
||||||
|
<li><a href="#finishing-touches">Finishing touches</a>
|
||||||
|
<ol>
|
||||||
|
<li><a href="#fix-content">Fix content</a></li>
|
||||||
|
<li><a href="#clean-up">Clean up</a></li>
|
||||||
|
</ol>
|
||||||
|
</li>
|
||||||
|
<li><a href="#a-practical-example-in-a-diff">A practical example in a diff</a></li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
</nav>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="move-static-content-to-static">
|
||||||
|
Move static content to <code>static</code>
|
||||||
|
</h2>
|
||||||
|
<p>Jekyll has a rule that any directory not starting with <code>_</code> will be copied as-is to the <code>_site</code> output. Hugo keeps all static content under <code>static</code>. You should therefore move it all there.
|
||||||
|
With Jekyll, something that looked like</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ <root>/
|
||||||
|
</span></span><span style="display:flex;"><span> ▾ images/
|
||||||
|
</span></span><span style="display:flex;"><span> logo.png
|
||||||
|
</span></span></code></pre></div><p>should become</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ <root>/
|
||||||
|
</span></span><span style="display:flex;"><span> ▾ static/
|
||||||
|
</span></span><span style="display:flex;"><span> ▾ images/
|
||||||
|
</span></span><span style="display:flex;"><span> logo.png
|
||||||
|
</span></span></code></pre></div><p>Additionally, you’ll want any files that should reside at the root (such as <code>CNAME</code>) to be moved to <code>static</code>.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="create-your-hugo-configuration-file">
|
||||||
|
Create your Hugo configuration file
|
||||||
|
</h2>
|
||||||
|
<p>Hugo can read your configuration as JSON, YAML or TOML. Hugo supports parameters custom configuration too. Refer to the <a href="/overview/configuration/">Hugo configuration documentation</a> for details.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="set-your-configuration-publish-folder-to-_site">
|
||||||
|
Set your configuration publish folder to <code>_site</code>
|
||||||
|
</h2>
|
||||||
|
<p>The default is for Jekyll to publish to <code>_site</code> and for Hugo to publish to <code>public</code>. If, like me, you have <a href="http://blog.blindgaenger.net/generate_github_pages_in_a_submodule.html"><code>_site</code> mapped to a git submodule on the <code>gh-pages</code> branch</a>, you’ll want to do one of two alternatives:</p>
|
||||||
|
<ol>
|
||||||
|
<li>Change your submodule to point to map <code>gh-pages</code> to public instead of <code>_site</code> (recommended).</li>
|
||||||
|
</ol>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>git submodule deinit _site
|
||||||
|
</span></span><span style="display:flex;"><span>git rm _site
|
||||||
|
</span></span><span style="display:flex;"><span>git submodule add -b gh-pages git@github.com:your-username/your-repo.git public
|
||||||
|
</span></span></code></pre></div><ol start="2">
|
||||||
|
<li>Or, change the Hugo configuration to use <code>_site</code> instead of <code>public</code>.</li>
|
||||||
|
</ol>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>{
|
||||||
|
</span></span><span style="display:flex;"><span> ..
|
||||||
|
</span></span><span style="display:flex;"><span> "publishdir": "_site",
|
||||||
|
</span></span><span style="display:flex;"><span> ..
|
||||||
|
</span></span><span style="display:flex;"><span>}
|
||||||
|
</span></span></code></pre></div>
|
||||||
|
|
||||||
|
<h2 id="convert-jekyll-templates-to-hugo-templates">
|
||||||
|
Convert Jekyll templates to Hugo templates
|
||||||
|
</h2>
|
||||||
|
<p>That’s the bulk of the work right here. The documentation is your friend. You should refer to <a href="http://jekyllrb.com/docs/templates/">Jekyll’s template documentation</a> if you need to refresh your memory on how you built your blog and <a href="/layout/templates/">Hugo’s template</a> to learn Hugo’s way.</p>
|
||||||
|
<p>As a single reference data point, converting my templates for <a href="http://heyitsalex.net/">heyitsalex.net</a> took me no more than a few hours.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="convert-jekyll-plugins-to-hugo-shortcodes">
|
||||||
|
Convert Jekyll plugins to Hugo shortcodes
|
||||||
|
</h2>
|
||||||
|
<p>Jekyll has <a href="http://jekyllrb.com/docs/plugins/">plugins</a>; Hugo has <a href="/doc/shortcodes/">shortcodes</a>. It’s fairly trivial to do a port.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="implementation">
|
||||||
|
Implementation
|
||||||
|
</h3>
|
||||||
|
<p>As an example, I was using a custom <a href="https://github.com/alexandre-normand/alexandre-normand/blob/74bb12036a71334fdb7dba84e073382fc06908ec/_plugins/image_tag.rb"><code>image_tag</code></a> plugin to generate figures with caption when running Jekyll. As I read about shortcodes, I found Hugo had a nice built-in shortcode that does exactly the same thing.</p>
|
||||||
|
<p>Jekyll’s plugin:</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-ruby" data-lang="ruby"><span style="display:flex;"><span><span style="font-weight:bold">module</span> <span style="color:#666;font-weight:bold;font-style:italic">Jekyll</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">class</span> <span style="color:#666;font-weight:bold;font-style:italic">ImageTag</span> < <span style="color:#666;font-weight:bold;font-style:italic">Liquid</span>::<span style="color:#666;font-weight:bold;font-style:italic">Tag</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@url</span>: <span style="font-weight:bold">nil</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@caption</span>: <span style="font-weight:bold">nil</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@class</span>: <span style="font-weight:bold">nil</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@link</span>: <span style="font-weight:bold">nil</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-style:italic">//</span> <span style="color:#666;font-weight:bold;font-style:italic">Patterns</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">IMAGE_URL_WITH_CLASS_AND_CAPTION</span> =
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-style:italic">IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK</span>: <span style="color:#666;font-style:italic">/(\w+)(\s+)((https?:\/\/|\/)(\S+))(\s+)"(.*?)"(\s+)->((https?:\/\/|\/)(\S+))(\s*)/i</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-style:italic">IMAGE_URL_WITH_CAPTION</span>: <span style="color:#666;font-style:italic">/((https?:\/\/|\/)(\S+))(\s+)"(.*?)"/i</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-style:italic">IMAGE_URL_WITH_CLASS</span>: <span style="color:#666;font-style:italic">/(\w+)(\s+)((https?:\/\/|\/)(\S+))/i</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-style:italic">IMAGE_URL</span>: <span style="color:#666;font-style:italic">/((https?:\/\/|\/)(\S+))/i</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">def</span> <span style="color:#666;font-weight:bold;font-style:italic">initialize</span>(tag_name, markup, tokens)
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">super</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">if</span> markup =~ <span style="color:#666;font-weight:bold;font-style:italic">IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@class</span> : <span style="color:#666;font-weight:bold;font-style:italic">$1</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@url</span> : <span style="color:#666;font-weight:bold;font-style:italic">$3</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@caption</span>: <span style="color:#666;font-weight:bold;font-style:italic">$7</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@link</span>: <span style="color:#666;font-weight:bold;font-style:italic">$9</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">elsif</span> markup =~ <span style="color:#666;font-weight:bold;font-style:italic">IMAGE_URL_WITH_CLASS_AND_CAPTION</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@class</span> : <span style="color:#666;font-weight:bold;font-style:italic">$1</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@url</span> : <span style="color:#666;font-weight:bold;font-style:italic">$3</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@caption</span>: <span style="color:#666;font-weight:bold;font-style:italic">$7</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">elsif</span> markup =~ <span style="color:#666;font-weight:bold;font-style:italic">IMAGE_URL_WITH_CAPTION</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@url</span> : <span style="color:#666;font-weight:bold;font-style:italic">$1</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@caption</span>: <span style="color:#666;font-weight:bold;font-style:italic">$5</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">elsif</span> markup =~ <span style="color:#666;font-weight:bold;font-style:italic">IMAGE_URL_WITH_CLASS</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@class</span>: <span style="color:#666;font-weight:bold;font-style:italic">$1</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@url</span> : <span style="color:#666;font-weight:bold;font-style:italic">$3</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">elsif</span> markup =~ <span style="color:#666;font-weight:bold;font-style:italic">IMAGE_URL</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-weight:bold;font-style:italic">@url</span>: <span style="color:#666;font-weight:bold;font-style:italic">$1</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">def</span> <span style="color:#666;font-weight:bold;font-style:italic">render</span>(context)
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">if</span> <span style="color:#666;font-weight:bold;font-style:italic">@class</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-style:italic">source</span>: <span style="color:#666;font-style:italic">"<figure class='</span><span style="color:#666;font-style:italic">#{</span><span style="color:#666;font-weight:bold;font-style:italic">@class</span><span style="color:#666;font-style:italic">}</span><span style="color:#666;font-style:italic">'>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">else</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#666;font-style:italic">source</span>: <span style="color:#666;font-style:italic">"<figure>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">if</span> <span style="color:#666;font-weight:bold;font-style:italic">@link</span>
|
||||||
|
</span></span><span style="display:flex;"><span> source += <span style="color:#666;font-style:italic">"<a href=</span><span style="color:#666;font-style:italic">\"</span><span style="color:#666;font-style:italic">#{</span><span style="color:#666;font-weight:bold;font-style:italic">@link</span><span style="color:#666;font-style:italic">}</span><span style="color:#666;font-style:italic">\"</span><span style="color:#666;font-style:italic">>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> source += <span style="color:#666;font-style:italic">"<img src=</span><span style="color:#666;font-style:italic">\"</span><span style="color:#666;font-style:italic">#{</span><span style="color:#666;font-weight:bold;font-style:italic">@url</span><span style="color:#666;font-style:italic">}</span><span style="color:#666;font-style:italic">\"</span><span style="color:#666;font-style:italic">>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">if</span> <span style="color:#666;font-weight:bold;font-style:italic">@link</span>
|
||||||
|
</span></span><span style="display:flex;"><span> source += <span style="color:#666;font-style:italic">"</a>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> source += <span style="color:#666;font-style:italic">"<figcaption></span><span style="color:#666;font-style:italic">#{</span><span style="color:#666;font-weight:bold;font-style:italic">@caption</span><span style="color:#666;font-style:italic">}</span><span style="color:#666;font-style:italic"></figcaption>"</span> <span style="font-weight:bold">if</span> <span style="color:#666;font-weight:bold;font-style:italic">@caption</span>
|
||||||
|
</span></span><span style="display:flex;"><span> source += <span style="color:#666;font-style:italic">"</figure>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> source
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="font-weight:bold">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span><span style="font-weight:bold">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span><span style="color:#666;font-weight:bold;font-style:italic">Liquid</span>::<span style="color:#666;font-weight:bold;font-style:italic">Template</span>.register_tag(<span style="color:#666;font-style:italic">'image'</span>, <span style="color:#666;font-weight:bold;font-style:italic">Jekyll</span>::<span style="color:#666;font-weight:bold;font-style:italic">ImageTag</span>)
|
||||||
|
</span></span></code></pre></div><p>is written as this Hugo shortcode:</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-html" data-lang="html"><span style="display:flex;"><span><span style="color:#888;font-style:italic"><!-- image --></span>
|
||||||
|
</span></span><span style="display:flex;"><span><figure <span style="">{{</span> with <span style="">.</span>Get <span style="">"</span>class<span style="">"</span> <span style="">}}</span>class=<span style="color:#666;font-style:italic">"{{.}}"</span><span style="">{{</span> end <span style="">}}</span>>
|
||||||
|
</span></span><span style="display:flex;"><span> {{ with .Get "link"}}<a href=<span style="color:#666;font-style:italic">"{{.}}"</span>>{{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> <img src=<span style="color:#666;font-style:italic">"{{ .Get "</span>src<span style="">"</span> <span style="">}}"</span> <span style="">{{</span> if or <span style="">(.</span>Get <span style="">"</span>alt<span style="">")</span> <span style="">(.</span>Get <span style="">"</span>caption<span style="">")</span> <span style="">}}</span>alt=<span style="color:#666;font-style:italic">"{{ with .Get "</span>alt<span style="">"}}{{.}}{{</span>else<span style="">}}{{</span> <span style="">.</span>Get <span style="">"</span>caption<span style="">"</span> <span style="">}}{{</span> end <span style="">}}"{{</span> end <span style="">}}</span> />
|
||||||
|
</span></span><span style="display:flex;"><span> {{ if .Get "link"}}</a>{{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
|
||||||
|
</span></span><span style="display:flex;"><span> <figcaption>{{ if isset .Params "title" }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ .Get "title" }}{{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ if or (.Get "caption") (.Get "attr")}}<p>
|
||||||
|
</span></span><span style="display:flex;"><span> {{ .Get "caption" }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ with .Get "attrlink"}}<a href=<span style="color:#666;font-style:italic">"{{.}}"</span>> {{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ .Get "attr" }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ if .Get "attrlink"}}</a> {{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> </p> {{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> </figcaption>
|
||||||
|
</span></span><span style="display:flex;"><span> {{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span></figure>
|
||||||
|
</span></span><span style="display:flex;"><span><span style="color:#888;font-style:italic"><!-- image --></span>
|
||||||
|
</span></span></code></pre></div>
|
||||||
|
|
||||||
|
<h3 id="usage">
|
||||||
|
Usage
|
||||||
|
</h3>
|
||||||
|
<p>I simply changed:</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>{% image full http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg "One of my favorite touristy-type photos. I secretly waited for the good light while we were "having fun" and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." ->http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/ %}
|
||||||
|
</span></span></code></pre></div><p>to this (this example uses a slightly extended version named <code>fig</code>, different than the built-in <code>figure</code>):</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>{{% fig class="full" src="http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg" title="One of my favorite touristy-type photos. I secretly waited for the good light while we were having fun and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." link="http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/" %}}
|
||||||
|
</span></span></code></pre></div><p>As a bonus, the shortcode named parameters are, arguably, more readable.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="finishing-touches">
|
||||||
|
Finishing touches
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="fix-content">
|
||||||
|
Fix content
|
||||||
|
</h3>
|
||||||
|
<p>Depending on the amount of customization that was done with each post with Jekyll, this step will require more or less effort. There are no hard and fast rules here except that <code>hugo server --watch</code> is your friend. Test your changes and fix errors as needed.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="clean-up">
|
||||||
|
Clean up
|
||||||
|
</h3>
|
||||||
|
<p>You’ll want to remove the Jekyll configuration at this point. If you have anything else that isn’t used, delete it.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="a-practical-example-in-a-diff">
|
||||||
|
A practical example in a diff
|
||||||
|
</h2>
|
||||||
|
<p><a href="http://heyitsalex.net/">Hey, it’s Alex</a> was migrated in less than a <em>father-with-kids day</em> from Jekyll to Hugo. You can see all the changes (and screw-ups) by looking at this <a href="https://github.com/alexandre-normand/alexandre-normand/compare/869d69435bd2665c3fbf5b5c78d4c22759d7613a...b7f6605b1265e83b4b81495423294208cc74d610">diff</a>.</p>
|
||||||
|
|
||||||
|
<div class="time">
|
||||||
|
<time datetime="2021-10-22">2021-10-22 </time>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="reading-time"> · 4 min read</span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="comments">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="terminal-nav">
|
||||||
|
<div class="back-nav">
|
||||||
|
|
||||||
|
<a href="/gedanken/" class="back-link">../</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
|
© Copyright 2026 ·
|
||||||
|
Thomas
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
162
homepage/public/gedanken/my-first-post/index.html
Normal file
@@ -0,0 +1,162 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
My First Post | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/gedanken/my-first-post/" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="My First Post" />
|
||||||
|
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="article"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/gedanken/my-first-post/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="My First Post" />
|
||||||
|
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Article",
|
||||||
|
"headline": "My First Post",
|
||||||
|
"url": "http:\/\/localhost:1313\/gedanken\/my-first-post\/",
|
||||||
|
"datePublished": "2026-05-18T23:03:26\u002b02:00",
|
||||||
|
"dateModified": "2026-05-18T23:03:26\u002b02:00"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<a href="/gedanken/">Gedanken</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/gedanken/my-first-post/">My First Post</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>My First Post</h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<details class="toc" open>
|
||||||
|
<summary class="toc-title">Table of contents</summary>
|
||||||
|
<nav class="toc-content">
|
||||||
|
<nav id="TableOfContents">
|
||||||
|
<ol>
|
||||||
|
<li><a href="#introduction">introduction</a></li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
</nav>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="introduction">
|
||||||
|
introduction
|
||||||
|
</h2>
|
||||||
|
<p>This is <strong>bold</strong> text, and this is <em>emphasized</em> text.</p>
|
||||||
|
<p>Visit the <a href="https://gohugo.io">Hugo</a> website!</p>
|
||||||
|
|
||||||
|
<div class="time">
|
||||||
|
<time datetime="2026-05-18">2026-05-18 </time>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="reading-time"> · 1 min read</span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="comments">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="terminal-nav">
|
||||||
|
<div class="back-nav">
|
||||||
|
|
||||||
|
<a href="/gedanken/" class="back-link">../</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
|
© Copyright 2026 ·
|
||||||
|
Thomas
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,114 +1,108 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en-us">
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta name="generator" content="Hugo 0.161.1"><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
<title>My New Hugo Project</title>
|
<link rel="canonical" href="http://localhost:1313/" />
|
||||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="generator" content="Hugo 0.161.1">
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Thomas und die Liebe letzter Teil neue Version..." />
|
||||||
|
|
||||||
<meta name="robots" content="index, follow">
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="website"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Thomas und die Liebe letzter Teil neue Version..." />
|
||||||
|
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/index.xml" title="Thomas Internet Garden" /> <link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
<link rel="stylesheet" href="/ananke/css/main.fe543ec729f225f1a33caed07775c832a416476900d82ba51765d6ead9de6758.css" integrity="sha256-/lQ+xynyJfGjPK7Qd3XIMqQWR2kA2CulF2XW6tneZ1g=" crossorigin="anonymous">
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link href="/index.xml" rel="alternate" type="application/rss+xml" title="My New Hugo Project" />
|
|
||||||
<link href="/index.xml" rel="feed" type="application/rss+xml" title="My New Hugo Project" />
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="canonical" href="https://example.org/">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<meta property="og:url" content="https://example.org/">
|
|
||||||
<meta property="og:site_name" content="My New Hugo Project">
|
|
||||||
<meta property="og:title" content="My New Hugo Project">
|
|
||||||
<meta property="og:locale" content="en_us">
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
|
|
||||||
<meta itemprop="name" content="My New Hugo Project">
|
|
||||||
<meta name="twitter:card" content="summary">
|
|
||||||
<meta name="twitter:title" content="My New Hugo Project">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head><body class="ma0 avenir bg-near-white production is-home">
|
|
||||||
|
|
||||||
|
|
||||||
<header>
|
|
||||||
<div class="pb3-m pb6-l bg-black">
|
|
||||||
<nav class="pv3 ph3 ph4-ns" role="navigation">
|
|
||||||
<div class="flex-l center items-center justify-between">
|
|
||||||
<a href="/" class="f3 fw2 hover-white white-90 dib no-underline">
|
|
||||||
|
|
||||||
My New Hugo Project
|
|
||||||
|
|
||||||
</a>
|
|
||||||
<div class="flex-l items-center">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="ananke-socials"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="tc-l pv3 ph3 ph4-ns">
|
|
||||||
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
|
|
||||||
My New Hugo Project
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
|
||||||
|
|
||||||
<main class="pb7" role="main">
|
<h2 id="introduction">
|
||||||
<article class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy nested-links mid-gray">
|
Introduction
|
||||||
|
</h2>
|
||||||
</article>
|
<p>Ich glaube, ich schreibe es hauptsächlich deswegen, um zu lernen und das Gelernte zu vertiefen und vielleicht auch ein wenig, damit es Euch da draußen helfen kann.</p>
|
||||||
|
<p>Bis vor ein paar Jahren kannte ich wirklich noch nicht viel. Ich konnte nicht wirklich über Gefühle sprechen, geschweige denn diese auch ausleben und verstehen. Heute kenne ich große Teile der Gründe und hoffe auch, damit besser umgehen zu können.</p>
|
||||||
|
<p>Ich kannte mich eigentlich selber nicht so richtig, war aber sehr zufrieden mit mir. Ich war auch der einzige. In der Corona-Zeit hatte ich mich immer mehr von meiner Familie abgesondert und mich im wörtlichen Sinne in den Keller zurück gezogen.</p>
|
||||||
|
<p>Erst als meine Frau mich betrogen hatte musste ich etwas ändern. Ich hatte zu der Zeit noch ein sehr altes Beziehungsbild, bzw. Lebensmodell, so, dass ich deswegen echt angepisst war. Ich konnte keine Grenzen setzen, ich konnte nicht über Gefühle reden und ich konnte mich auch nicht selbst reflektieren. Ich wusste nur, so war es scheiße. Also machte ich mich auf, mich selber wieder in die Spur zu bringen. Dazu brauchte ich <em>nur</em> folgendes:</p>
|
||||||
|
<ul>
|
||||||
|
<li>Ich musste abnehmen. Aus drei Gründen. Zum Einen war es nicht mehr gesund, soviel, wie ich gewogen habe und zum Anderen habe ich mich selber auch nicht mehr als attraktiv wahrgenommen. Hinzu kommt noch ein dritter Grund: Meine Ausdauer in allen Belangen war unterirdisch. Deswegen hab ich beschlossen, abzunehmen. Ich hab erst mal komplett auf Süßes und auf Chips und auf alles verzichtet, was ich nur aus Langeweile gegessen habe. Dann hab ich immer mehr auf mein Hungergefühl geachtet und so hab ich es in einem halben Jahr von 95kg auf 65kg geschafft und halte dieses Gewicht nun schon ca. 2 Jahre. Das gibt mir wieder mehr Selbstvertrauen, Selbstwertgefühl und generell fühle ich mich viel fitter und wohler, als zuvor.</li>
|
||||||
|
<li>Ich musste lernen, die Welt wieder positiv zu sehen. Ich musste viel über meine Gefühle lernen und wie ich sie wieder ins Positive bringe. Ich musste lernen, das ich verantwortlich für meine Gefühle und Emotionen bin. Ich kann die Schuld nicht im Außen suchen. Ich bin auch nicht verantwortlich für die Gefühle anderer. Hier habe ich viel gelernt über Liebe, Grenzen, Lebensmodelle, innere Kinder, Bindungsprobleme, Kommunikation, etc. . Das sowohl theoretisch über Webseminare, Vorlesungen, Bücher, als auch in der Praxis durch den tatsächlichen Versuch, es zu leben.</li>
|
||||||
|
<li>Mit meinem wiederhergestellten, Selbstvertrauen, meiner wachsenden Praxis im Umgang mit meinen Gefühlen und in der Kommunikation habe ich viele total tolle Menschen kennen gelernt und mit ihnen komplett neue Lebensmodelle, Vorstellungen und Erkenntnisse über mich und die Welt. Ich habe gelernt, wie toll es ist, vorurteilsfrei und offen die Welt und die Menschen kennen lernen zu dürfen.</li>
|
||||||
|
</ul>
|
||||||
|
<p>All diese Punkte führten dazu, dass ich mich wieder richtig gut und vollständig und im Leben befindlich fühle und wieder mit einer sehr offenen, achtsamen und positiven Stimmung durchs Leben gehen kann, und ich wieder Freude an allem habe, was ich so mache.</p>
|
||||||
|
|
||||||
|
<div class="terminal-nav">
|
||||||
|
|
||||||
|
<nav aria-label="Main navigation">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="/gedanken/">Gedanken</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/warum/">Warum</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
<div class="flex justify-between">
|
© Copyright 2026 ·
|
||||||
<a class="f4 fw4 hover-white white-70 dn dib-ns pv2 ph3 no-underline" href="https://example.org/" >
|
Thomas
|
||||||
© My New Hugo Project 2026
|
</p>
|
||||||
</a>
|
|
||||||
<div><div class="ananke-socials"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,56 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
<title>My New Hugo Project</title>
|
<title>Thomas und die Liebe letzter Teil neue Version... on Thomas Internet Garden</title>
|
||||||
<link>https://example.org/</link>
|
<link>http://localhost:1313/</link>
|
||||||
<description>Recent content on My New Hugo Project</description>
|
<description>Recent content in Thomas und die Liebe letzter Teil neue Version... on Thomas Internet Garden</description>
|
||||||
<generator>Hugo</generator>
|
<generator>Hugo</generator>
|
||||||
<language>en-us</language>
|
<language>en-us</language>
|
||||||
<atom:link href="https://example.org/index.xml" rel="self" type="application/rss+xml" />
|
<managingEditor>Thomas.Sindt@gmx.de (Thomas)</managingEditor>
|
||||||
|
<webMaster>Thomas.Sindt@gmx.de (Thomas)</webMaster>
|
||||||
|
<lastBuildDate>Mon, 18 May 2026 23:03:26 +0200</lastBuildDate>
|
||||||
|
<atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<item>
|
||||||
|
<title>My First Post</title>
|
||||||
|
<link>http://localhost:1313/gedanken/my-first-post/</link>
|
||||||
|
<pubDate>Mon, 18 May 2026 23:03:26 +0200</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/my-first-post/</guid>
|
||||||
|
<description><h2 id="introduction">
 introduction
</h2>
<p>This is <strong>bold</strong> text, and this is <em>emphasized</em> text.</p>
<p>Visit the <a href="https://gohugo.io">Hugo</a> website!</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Getting Started with Hugo</title>
|
||||||
|
<link>http://localhost:1313/gedanken/hugoisforlovers/</link>
|
||||||
|
<pubDate>Wed, 26 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/hugoisforlovers/</guid>
|
||||||
|
<description><h2 id="step-1-install-hugo">
 Step 1. Install Hugo
</h2>
<p>Go to <a href="https://github.com/spf13/hugo/releases">Hugo releases</a> and download the
appropriate version for your OS and architecture.</p>
<p>Save it somewhere specific as we will be using it in the next step.</p>
<p>More complete instructions are available at <a href="https://gohugo.io/getting-started/installing/">Install Hugo</a></p>


<h2 id="step-2-build-the-docs">
 Step 2. Build the Docs
</h2>
<p>Hugo has its own example site which happens to also be the documentation site
you are reading right now.</p>
<p>Follow the following steps:</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Hugo Diagrams</title>
|
||||||
|
<link>http://localhost:1313/gedanken/diagrams/</link>
|
||||||
|
<pubDate>Tue, 25 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/diagrams/</guid>
|
||||||
|
<description><p>Hugo version &gt;= 0.93.0</p>


<h2 id="goat-diagrams-ascii">
 GoAT Diagrams (Ascii)
</h2>
<p>Hugo! supports <a href="https://github.com/bep/goat">GoAT</a> natively. This means that this code block:</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>```goat
</span></span><span style="display:flex;"><span> . . . .--- 1 .-- 1 / 1
</span></span><span style="display:flex;"><span> / \ | | .---+ .-+ +
</span></span><span style="display:flex;"><span> / \ .---+---. .--+--. | &#39;--- 2 | &#39;-- 2 / \ 2
</span></span><span style="display:flex;"><span> + + | | | | ---+ ---+ +
</span></span><span style="display:flex;"><span> / \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
</span></span><span style="display:flex;"><span> / \ / \ | | | | | | | | &#39;---+ &#39;-+ +
</span></span><span style="display:flex;"><span> 1 2 3 4 1 2 3 4 1 2 3 4 &#39;--- 4 &#39;-- 4 \ 4
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>```
</span></span></code></pre></div><p>Will be rendered as:</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Introduce Hugo</title>
|
||||||
|
<link>http://localhost:1313/gedanken/introduce-hugo/</link>
|
||||||
|
<pubDate>Thu, 20 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/introduce-hugo/</guid>
|
||||||
|
<description><h2 id="introduction">
 Introduction
</h2>
<p>This tutorial will show you how to create a simple theme in <a href="https://github.com/gohugoio/hugo">Hugo</a>. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme.</p>
<p>We&rsquo;ll start with creating a new site with a very basic template. Then we&rsquo;ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Creating a New Theme</title>
|
||||||
|
<link>http://localhost:1313/gedanken/creating-a-new-theme/</link>
|
||||||
|
<pubDate>Fri, 22 Oct 2021 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/creating-a-new-theme/</guid>
|
||||||
|
<description><h2 id="introduction">
 Introduction
</h2>
<p>This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme.</p>
<p>We&rsquo;ll start with creating a new site with a very basic template. Then we&rsquo;ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Migrate to Hugo from Jekyll</title>
|
||||||
|
<link>http://localhost:1313/gedanken/migrate-from-jekyll/</link>
|
||||||
|
<pubDate>Fri, 22 Oct 2021 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/migrate-from-jekyll/</guid>
|
||||||
|
<description><h2 id="move-static-content-to-static">
 Move static content to <code>static</code>
</h2>
<p>Jekyll has a rule that any directory not starting with <code>_</code> will be copied as-is to the <code>_site</code> output. Hugo keeps all static content under <code>static</code>. You should therefore move it all there.
With Jekyll, something that looked like</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ &lt;root&gt;/
</span></span><span style="display:flex;"><span> ▾ images/
</span></span><span style="display:flex;"><span> logo.png
</span></span></code></pre></div><p>should become</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ &lt;root&gt;/
</span></span><span style="display:flex;"><span> ▾ static/
</span></span><span style="display:flex;"><span> ▾ images/
</span></span><span style="display:flex;"><span> logo.png
</span></span></code></pre></div><p>Additionally, you&rsquo;ll want any files that should reside at the root (such as <code>CNAME</code>) to be moved to <code>static</code>.</p></description>
|
||||||
|
</item>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|||||||
1200
homepage/public/posts/creating-a-new-theme/index.html
Normal file
3132
homepage/public/posts/diagrams/index.html
Normal file
221
homepage/public/posts/hugoisforlovers/index.html
Normal file
@@ -0,0 +1,221 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Getting Started with Hugo | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/posts/hugoisforlovers/" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Getting Started with Hugo" />
|
||||||
|
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="article"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/posts/hugoisforlovers/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Getting Started with Hugo" />
|
||||||
|
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Article",
|
||||||
|
"headline": "Getting Started with Hugo",
|
||||||
|
"url": "http:\/\/localhost:1313\/posts\/hugoisforlovers\/",
|
||||||
|
"datePublished": "2022-10-26T17:12:11\u002b07:00",
|
||||||
|
"dateModified": "2022-10-26T17:12:11\u002b07:00"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<a href="/posts/">Posts</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/posts/hugoisforlovers/">Getting Started with Hugo</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Getting Started with Hugo</h1>
|
||||||
|
|
||||||
|
<div class="terms-list">
|
||||||
|
<ul>
|
||||||
|
<li><a href="/tags/hugo/">#Hugo</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<details class="toc" open>
|
||||||
|
<summary class="toc-title">Table of contents</summary>
|
||||||
|
<nav class="toc-content">
|
||||||
|
<nav id="TableOfContents">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#step-1-install-hugo">Step 1. Install Hugo</a></li>
|
||||||
|
<li><a href="#step-2-build-the-docs">Step 2. Build the Docs</a></li>
|
||||||
|
<li><a href="#step-3-change-the-docs-site">Step 3. Change the docs site</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</nav>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="step-1-install-hugo">
|
||||||
|
Step 1. Install Hugo
|
||||||
|
</h2>
|
||||||
|
<p>Go to <a href="https://github.com/spf13/hugo/releases">Hugo releases</a> and download the
|
||||||
|
appropriate version for your OS and architecture.</p>
|
||||||
|
<p>Save it somewhere specific as we will be using it in the next step.</p>
|
||||||
|
<p>More complete instructions are available at <a href="https://gohugo.io/getting-started/installing/">Install Hugo</a></p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="step-2-build-the-docs">
|
||||||
|
Step 2. Build the Docs
|
||||||
|
</h2>
|
||||||
|
<p>Hugo has its own example site which happens to also be the documentation site
|
||||||
|
you are reading right now.</p>
|
||||||
|
<p>Follow the following steps:</p>
|
||||||
|
<pre tabindex="0"><code>1. Clone the [Hugo repository](http://github.com/spf13/hugo)
|
||||||
|
2. Go into the repo
|
||||||
|
3. Run hugo in server mode and build the docs
|
||||||
|
4. Open your browser to http://localhost:1313
|
||||||
|
</code></pre><p>Corresponding pseudo commands:</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>git clone https://github.com/spf13/hugo
|
||||||
|
</span></span><span style="display:flex;"><span>cd hugo
|
||||||
|
</span></span><span style="display:flex;"><span>/path/to/where/you/installed/hugo server --source<span style="color:#f92672">=</span>./docs
|
||||||
|
</span></span><span style="display:flex;"><span>> <span style="color:#ae81ff">29</span> pages created
|
||||||
|
</span></span><span style="display:flex;"><span>> <span style="color:#ae81ff">0</span> tags index created
|
||||||
|
</span></span><span style="display:flex;"><span>> in <span style="color:#ae81ff">27</span> ms
|
||||||
|
</span></span><span style="display:flex;"><span>> Web Server is available at http://localhost:1313
|
||||||
|
</span></span><span style="display:flex;"><span>> Press ctrl+c to stop
|
||||||
|
</span></span></code></pre></div><p>Once you’ve gotten here, follow along the rest of this page on your local build.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="step-3-change-the-docs-site">
|
||||||
|
Step 3. Change the docs site
|
||||||
|
</h2>
|
||||||
|
<p>Stop the Hugo process by hitting Ctrl+C.</p>
|
||||||
|
<p>Now we are going to run hugo again, but this time with hugo in watch mode.</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>/path/to/hugo/from/step/1/hugo server --source<span style="color:#f92672">=</span>./docs --watch
|
||||||
|
</span></span><span style="display:flex;"><span>> <span style="color:#ae81ff">29</span> pages created
|
||||||
|
</span></span><span style="display:flex;"><span>> <span style="color:#ae81ff">0</span> tags index created
|
||||||
|
</span></span><span style="display:flex;"><span>> in <span style="color:#ae81ff">27</span> ms
|
||||||
|
</span></span><span style="display:flex;"><span>> Web Server is available at http://localhost:1313
|
||||||
|
</span></span><span style="display:flex;"><span>> Watching <span style="color:#66d9ef">for</span> changes in /Users/spf13/Code/hugo/docs/content
|
||||||
|
</span></span><span style="display:flex;"><span>> Press ctrl+c to stop
|
||||||
|
</span></span></code></pre></div><p>Open your <a href="http://vim.spf13.com">favorite editor</a> and change one of the source
|
||||||
|
content pages. How about changing this very file to <em>fix the typo</em>. How about changing this very file to <em>fix the typo</em>.</p>
|
||||||
|
<p>Content files are found in <code>docs/content/</code>. Unless otherwise specified, files
|
||||||
|
are located at the same relative location as the url, in our case
|
||||||
|
<code>docs/content/overview/quickstart.md</code>.</p>
|
||||||
|
<p>Change and save this file.. Notice what happened in your terminal.</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>> Change detected, rebuilding site
|
||||||
|
</span></span><span style="display:flex;"><span>
|
||||||
|
</span></span><span style="display:flex;"><span>> <span style="color:#ae81ff">29</span> pages created
|
||||||
|
</span></span><span style="display:flex;"><span>> <span style="color:#ae81ff">0</span> tags index created
|
||||||
|
</span></span><span style="display:flex;"><span>> in <span style="color:#ae81ff">26</span> ms
|
||||||
|
</span></span></code></pre></div><p>Refresh the browser and observe that the typo is now fixed.</p>
|
||||||
|
<p>Notice how quick that was. Try to refresh the site before it’s finished building. I double dare you.
|
||||||
|
Having nearly instant feedback enables you to have your creativity flow without waiting for long builds.</p>
|
||||||
|
|
||||||
|
<div class="time">
|
||||||
|
<time datetime="2022-10-26">2022-10-26 </time>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="reading-time"> · 2 min read</span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="comments">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="terminal-nav">
|
||||||
|
<div class="back-nav">
|
||||||
|
|
||||||
|
<a href="/posts/" class="back-link">../</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
|
© Copyright 2026 ·
|
||||||
|
<a href="https://github.com/ntk148v/shibui">shibui</a>
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,110 +1,129 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en-us">
|
<html
|
||||||
<head>
|
lang="en-us"
|
||||||
<meta charset="utf-8">
|
dir="ltr"
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Posts | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
<title>My New Hugo Project</title>
|
<link rel="canonical" href="http://localhost:1313/posts/" />
|
||||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="generator" content="Hugo 0.161.1">
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Posts" />
|
||||||
|
|
||||||
<meta name="robots" content="index, follow">
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="website"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/posts/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Posts" />
|
||||||
|
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/posts/index.xml" title="Thomas Internet Garden" /> <link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
<link rel="stylesheet" href="/ananke/css/main.fe543ec729f225f1a33caed07775c832a416476900d82ba51765d6ead9de6758.css" integrity="sha256-/lQ+xynyJfGjPK7Qd3XIMqQWR2kA2CulF2XW6tneZ1g=" crossorigin="anonymous">
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/posts/">Posts</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
<link href="/posts/index.xml" rel="alternate" type="application/rss+xml" title="My New Hugo Project" />
|
|
||||||
<link href="/posts/index.xml" rel="feed" type="application/rss+xml" title="My New Hugo Project" />
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="canonical" href="https://example.org/posts/">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<meta property="og:url" content="https://example.org/posts/">
|
|
||||||
<meta property="og:site_name" content="My New Hugo Project">
|
|
||||||
<meta property="og:title" content="Posts">
|
|
||||||
<meta property="og:locale" content="en_us">
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
|
|
||||||
<meta itemprop="name" content="Posts">
|
|
||||||
<meta name="twitter:card" content="summary">
|
|
||||||
<meta name="twitter:title" content="Posts">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head><body class="ma0 avenir bg-near-white production is-section is-section">
|
|
||||||
|
|
||||||
|
|
||||||
<header>
|
|
||||||
<div class="pb3-m pb6-l bg-black">
|
|
||||||
<nav class="pv3 ph3 ph4-ns" role="navigation">
|
|
||||||
<div class="flex-l center items-center justify-between">
|
|
||||||
<a href="/" class="f3 fw2 hover-white white-90 dib no-underline">
|
|
||||||
|
|
||||||
My New Hugo Project
|
|
||||||
|
|
||||||
</a>
|
|
||||||
<div class="flex-l items-center">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="ananke-socials"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="tc-l pv3 ph3 ph4-ns">
|
|
||||||
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
|
|
||||||
Posts
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Posts</h1>
|
||||||
|
|
||||||
|
<div class="time-list">
|
||||||
|
<ul>
|
||||||
|
|
||||||
<main class="pb7" role="main">
|
<li>
|
||||||
|
<span><time datetime="2026-05-18">2026-05-18 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/posts/my-first-post/">My First Post</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
<article class="pa3 pa4-ns nested-copy-line-height">
|
<li>
|
||||||
<section class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy nested-links mid-gray"></section>
|
<span><time datetime="2022-10-26">2022-10-26 </time>
|
||||||
<section class="flex-ns mt5 flex-wrap justify-around">
|
</span>
|
||||||
|
<div><a href="/posts/hugoisforlovers/">Getting Started with Hugo</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
</section>
|
<li>
|
||||||
</article>
|
<span><time datetime="2022-10-25">2022-10-25 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/posts/diagrams/">Hugo Diagrams</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-20">2022-10-20 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/posts/introduce-hugo/">Introduce Hugo</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2021-10-22">2021-10-22 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/posts/creating-a-new-theme/">Creating a New Theme</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2021-10-22">2021-10-22 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/posts/migrate-from-jekyll/">Migrate to Hugo from Jekyll</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
<div class="flex justify-between">
|
© Copyright 2026 ·
|
||||||
<a class="f4 fw4 hover-white white-70 dn dib-ns pv2 ph3 no-underline" href="https://example.org/" >
|
<a href="https://github.com/ntk148v/shibui">shibui</a>
|
||||||
© My New Hugo Project 2026
|
</p>
|
||||||
</a>
|
|
||||||
<div><div class="ananke-socials"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,54 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
<title>Posts on My New Hugo Project</title>
|
<title>Posts on Thomas Internet Garden</title>
|
||||||
<link>https://example.org/posts/</link>
|
<link>http://localhost:1313/posts/</link>
|
||||||
<description>Recent content in Posts on My New Hugo Project</description>
|
<description>Recent content in Posts on Thomas Internet Garden</description>
|
||||||
<generator>Hugo</generator>
|
<generator>Hugo</generator>
|
||||||
<language>en-us</language>
|
<language>en-us</language>
|
||||||
<atom:link href="https://example.org/posts/index.xml" rel="self" type="application/rss+xml" />
|
<lastBuildDate>Mon, 18 May 2026 23:03:26 +0200</lastBuildDate>
|
||||||
|
<atom:link href="http://localhost:1313/posts/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<item>
|
||||||
|
<title>My First Post</title>
|
||||||
|
<link>http://localhost:1313/posts/my-first-post/</link>
|
||||||
|
<pubDate>Mon, 18 May 2026 23:03:26 +0200</pubDate>
|
||||||
|
<guid>http://localhost:1313/posts/my-first-post/</guid>
|
||||||
|
<description><h2 id="introduction">
 introduction
</h2>
<p>This is <strong>bold</strong> text, and this is <em>emphasized</em> text.</p>
<p>Visit the <a href="https://gohugo.io">Hugo</a> website!</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Getting Started with Hugo</title>
|
||||||
|
<link>http://localhost:1313/posts/hugoisforlovers/</link>
|
||||||
|
<pubDate>Wed, 26 Oct 2022 17:12:11 +0700</pubDate>
|
||||||
|
<guid>http://localhost:1313/posts/hugoisforlovers/</guid>
|
||||||
|
<description><h2 id="step-1-install-hugo">
 Step 1. Install Hugo
</h2>
<p>Go to <a href="https://github.com/spf13/hugo/releases">Hugo releases</a> and download the
appropriate version for your OS and architecture.</p>
<p>Save it somewhere specific as we will be using it in the next step.</p>
<p>More complete instructions are available at <a href="https://gohugo.io/getting-started/installing/">Install Hugo</a></p>


<h2 id="step-2-build-the-docs">
 Step 2. Build the Docs
</h2>
<p>Hugo has its own example site which happens to also be the documentation site
you are reading right now.</p>
<p>Follow the following steps:</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Hugo Diagrams</title>
|
||||||
|
<link>http://localhost:1313/posts/diagrams/</link>
|
||||||
|
<pubDate>Tue, 25 Oct 2022 17:12:11 +0700</pubDate>
|
||||||
|
<guid>http://localhost:1313/posts/diagrams/</guid>
|
||||||
|
<description><p>Hugo version &gt;= 0.93.0</p>


<h2 id="goat-diagrams-ascii">
 GoAT Diagrams (Ascii)
</h2>
<p>Hugo! supports <a href="https://github.com/bep/goat">GoAT</a> natively. This means that this code block:</p>
<pre tabindex="0"><code>```goat
 . . . .--- 1 .-- 1 / 1
 / \ | | .---+ .-+ +
 / \ .---+---. .--+--. | &#39;--- 2 | &#39;-- 2 / \ 2
 + + | | | | ---+ ---+ +
 / \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
 / \ / \ | | | | | | | | &#39;---+ &#39;-+ +
 1 2 3 4 1 2 3 4 1 2 3 4 &#39;--- 4 &#39;-- 4 \ 4

```
</code></pre><p>Will be rendered as:</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Introduce Hugo</title>
|
||||||
|
<link>http://localhost:1313/posts/introduce-hugo/</link>
|
||||||
|
<pubDate>Thu, 20 Oct 2022 17:12:11 +0700</pubDate>
|
||||||
|
<guid>http://localhost:1313/posts/introduce-hugo/</guid>
|
||||||
|
<description><h2 id="introduction">
 Introduction
</h2>
<p>This tutorial will show you how to create a simple theme in <a href="https://github.com/gohugoio/hugo">Hugo</a>. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme.</p>
<p>We&rsquo;ll start with creating a new site with a very basic template. Then we&rsquo;ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Creating a New Theme</title>
|
||||||
|
<link>http://localhost:1313/posts/creating-a-new-theme/</link>
|
||||||
|
<pubDate>Fri, 22 Oct 2021 17:12:11 +0700</pubDate>
|
||||||
|
<guid>http://localhost:1313/posts/creating-a-new-theme/</guid>
|
||||||
|
<description><h2 id="introduction">
 Introduction
</h2>
<p>This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme.</p>
<p>We&rsquo;ll start with creating a new site with a very basic template. Then we&rsquo;ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Migrate to Hugo from Jekyll</title>
|
||||||
|
<link>http://localhost:1313/posts/migrate-from-jekyll/</link>
|
||||||
|
<pubDate>Fri, 22 Oct 2021 17:12:11 +0700</pubDate>
|
||||||
|
<guid>http://localhost:1313/posts/migrate-from-jekyll/</guid>
|
||||||
|
<description><h2 id="move-static-content-to-static">
 Move static content to <code>static</code>
</h2>
<p>Jekyll has a rule that any directory not starting with <code>_</code> will be copied as-is to the <code>_site</code> output. Hugo keeps all static content under <code>static</code>. You should therefore move it all there.
With Jekyll, something that looked like</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ &lt;root&gt;/
</span></span><span style="display:flex;"><span> ▾ images/
</span></span><span style="display:flex;"><span> logo.png
</span></span></code></pre></div><p>should become</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ &lt;root&gt;/
</span></span><span style="display:flex;"><span> ▾ static/
</span></span><span style="display:flex;"><span> ▾ images/
</span></span><span style="display:flex;"><span> logo.png
</span></span></code></pre></div><p>Additionally, you&rsquo;ll want any files that should reside at the root (such as <code>CNAME</code>) to be moved to <code>static</code>.</p></description>
|
||||||
|
</item>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|||||||
1201
homepage/public/posts/introduce-hugo/index.html
Normal file
343
homepage/public/posts/migrate-from-jekyll/index.html
Normal file
@@ -0,0 +1,343 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Migrate to Hugo from Jekyll | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/posts/migrate-from-jekyll/" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Migrate to Hugo from Jekyll" />
|
||||||
|
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="article"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/posts/migrate-from-jekyll/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Migrate to Hugo from Jekyll" />
|
||||||
|
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Article",
|
||||||
|
"headline": "Migrate to Hugo from Jekyll",
|
||||||
|
"url": "http:\/\/localhost:1313\/posts\/migrate-from-jekyll\/",
|
||||||
|
"datePublished": "2021-10-22T17:12:11\u002b07:00",
|
||||||
|
"dateModified": "2021-10-22T17:12:11\u002b07:00"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<a href="/posts/">Posts</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/posts/migrate-from-jekyll/">Migrate to Hugo from Jekyll</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Migrate to Hugo from Jekyll</h1>
|
||||||
|
|
||||||
|
<div class="terms-list">
|
||||||
|
<ul>
|
||||||
|
<li><a href="/tags/hugo/">#Hugo</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<details class="toc" open>
|
||||||
|
<summary class="toc-title">Table of contents</summary>
|
||||||
|
<nav class="toc-content">
|
||||||
|
<nav id="TableOfContents">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#move-static-content-to-static">Move static content to <code>static</code></a></li>
|
||||||
|
<li><a href="#create-your-hugo-configuration-file">Create your Hugo configuration file</a></li>
|
||||||
|
<li><a href="#set-your-configuration-publish-folder-to-_site">Set your configuration publish folder to <code>_site</code></a></li>
|
||||||
|
<li><a href="#convert-jekyll-templates-to-hugo-templates">Convert Jekyll templates to Hugo templates</a></li>
|
||||||
|
<li><a href="#convert-jekyll-plugins-to-hugo-shortcodes">Convert Jekyll plugins to Hugo shortcodes</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#implementation">Implementation</a></li>
|
||||||
|
<li><a href="#usage">Usage</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#finishing-touches">Finishing touches</a>
|
||||||
|
<ul>
|
||||||
|
<li><a href="#fix-content">Fix content</a></li>
|
||||||
|
<li><a href="#clean-up">Clean up</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li><a href="#a-practical-example-in-a-diff">A practical example in a diff</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</nav>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="move-static-content-to-static">
|
||||||
|
Move static content to <code>static</code>
|
||||||
|
</h2>
|
||||||
|
<p>Jekyll has a rule that any directory not starting with <code>_</code> will be copied as-is to the <code>_site</code> output. Hugo keeps all static content under <code>static</code>. You should therefore move it all there.
|
||||||
|
With Jekyll, something that looked like</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ <root>/
|
||||||
|
</span></span><span style="display:flex;"><span> ▾ images/
|
||||||
|
</span></span><span style="display:flex;"><span> logo.png
|
||||||
|
</span></span></code></pre></div><p>should become</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ <root>/
|
||||||
|
</span></span><span style="display:flex;"><span> ▾ static/
|
||||||
|
</span></span><span style="display:flex;"><span> ▾ images/
|
||||||
|
</span></span><span style="display:flex;"><span> logo.png
|
||||||
|
</span></span></code></pre></div><p>Additionally, you’ll want any files that should reside at the root (such as <code>CNAME</code>) to be moved to <code>static</code>.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="create-your-hugo-configuration-file">
|
||||||
|
Create your Hugo configuration file
|
||||||
|
</h2>
|
||||||
|
<p>Hugo can read your configuration as JSON, YAML or TOML. Hugo supports parameters custom configuration too. Refer to the <a href="/overview/configuration/">Hugo configuration documentation</a> for details.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="set-your-configuration-publish-folder-to-_site">
|
||||||
|
Set your configuration publish folder to <code>_site</code>
|
||||||
|
</h2>
|
||||||
|
<p>The default is for Jekyll to publish to <code>_site</code> and for Hugo to publish to <code>public</code>. If, like me, you have <a href="http://blog.blindgaenger.net/generate_github_pages_in_a_submodule.html"><code>_site</code> mapped to a git submodule on the <code>gh-pages</code> branch</a>, you’ll want to do one of two alternatives:</p>
|
||||||
|
<ol>
|
||||||
|
<li>Change your submodule to point to map <code>gh-pages</code> to public instead of <code>_site</code> (recommended).</li>
|
||||||
|
</ol>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>git submodule deinit _site
|
||||||
|
</span></span><span style="display:flex;"><span>git rm _site
|
||||||
|
</span></span><span style="display:flex;"><span>git submodule add -b gh-pages git@github.com:your-username/your-repo.git public
|
||||||
|
</span></span></code></pre></div><ol start="2">
|
||||||
|
<li>Or, change the Hugo configuration to use <code>_site</code> instead of <code>public</code>.</li>
|
||||||
|
</ol>
|
||||||
|
<pre tabindex="0"><code>{
|
||||||
|
..
|
||||||
|
"publishdir": "_site",
|
||||||
|
..
|
||||||
|
}
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<h2 id="convert-jekyll-templates-to-hugo-templates">
|
||||||
|
Convert Jekyll templates to Hugo templates
|
||||||
|
</h2>
|
||||||
|
<p>That’s the bulk of the work right here. The documentation is your friend. You should refer to <a href="http://jekyllrb.com/docs/templates/">Jekyll’s template documentation</a> if you need to refresh your memory on how you built your blog and <a href="/layout/templates/">Hugo’s template</a> to learn Hugo’s way.</p>
|
||||||
|
<p>As a single reference data point, converting my templates for <a href="http://heyitsalex.net/">heyitsalex.net</a> took me no more than a few hours.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="convert-jekyll-plugins-to-hugo-shortcodes">
|
||||||
|
Convert Jekyll plugins to Hugo shortcodes
|
||||||
|
</h2>
|
||||||
|
<p>Jekyll has <a href="http://jekyllrb.com/docs/plugins/">plugins</a>; Hugo has <a href="/doc/shortcodes/">shortcodes</a>. It’s fairly trivial to do a port.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="implementation">
|
||||||
|
Implementation
|
||||||
|
</h3>
|
||||||
|
<p>As an example, I was using a custom <a href="https://github.com/alexandre-normand/alexandre-normand/blob/74bb12036a71334fdb7dba84e073382fc06908ec/_plugins/image_tag.rb"><code>image_tag</code></a> plugin to generate figures with caption when running Jekyll. As I read about shortcodes, I found Hugo had a nice built-in shortcode that does exactly the same thing.</p>
|
||||||
|
<p>Jekyll’s plugin:</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-ruby" data-lang="ruby"><span style="display:flex;"><span><span style="color:#66d9ef">module</span> Jekyll
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">class</span> <span style="color:#a6e22e">ImageTag</span> <span style="color:#f92672"><</span> <span style="color:#66d9ef">Liquid</span><span style="color:#f92672">::</span><span style="color:#66d9ef">Tag</span>
|
||||||
|
</span></span><span style="display:flex;"><span> @url: <span style="color:#66d9ef">nil</span>
|
||||||
|
</span></span><span style="display:flex;"><span> @caption: <span style="color:#66d9ef">nil</span>
|
||||||
|
</span></span><span style="display:flex;"><span> @class: <span style="color:#66d9ef">nil</span>
|
||||||
|
</span></span><span style="display:flex;"><span> @link: <span style="color:#66d9ef">nil</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#e6db74">//</span> <span style="color:#66d9ef">Patterns</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">IMAGE_URL_WITH_CLASS_AND_CAPTION</span> <span style="color:#f92672">=</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#e6db74">IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK</span>: <span style="color:#e6db74">/(\w+)(\s+)((https?:\/\/|\/)(\S+))(\s+)"(.*?)"(\s+)->((https?:\/\/|\/)(\S+))(\s*)/i</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#e6db74">IMAGE_URL_WITH_CAPTION</span>: <span style="color:#e6db74">/((https?:\/\/|\/)(\S+))(\s+)"(.*?)"/i</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#e6db74">IMAGE_URL_WITH_CLASS</span>: <span style="color:#e6db74">/(\w+)(\s+)((https?:\/\/|\/)(\S+))/i</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#e6db74">IMAGE_URL</span>: <span style="color:#e6db74">/((https?:\/\/|\/)(\S+))/i</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">def</span> <span style="color:#a6e22e">initialize</span>(tag_name, markup, tokens)
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">super</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">if</span> markup <span style="color:#f92672">=~</span> <span style="color:#66d9ef">IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK</span>
|
||||||
|
</span></span><span style="display:flex;"><span> @class : $1
|
||||||
|
</span></span><span style="display:flex;"><span> @url : $3
|
||||||
|
</span></span><span style="display:flex;"><span> @caption: $7
|
||||||
|
</span></span><span style="display:flex;"><span> @link: $9
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">elsif</span> markup <span style="color:#f92672">=~</span> <span style="color:#66d9ef">IMAGE_URL_WITH_CLASS_AND_CAPTION</span>
|
||||||
|
</span></span><span style="display:flex;"><span> @class : $1
|
||||||
|
</span></span><span style="display:flex;"><span> @url : $3
|
||||||
|
</span></span><span style="display:flex;"><span> @caption: $7
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">elsif</span> markup <span style="color:#f92672">=~</span> <span style="color:#66d9ef">IMAGE_URL_WITH_CAPTION</span>
|
||||||
|
</span></span><span style="display:flex;"><span> @url : $1
|
||||||
|
</span></span><span style="display:flex;"><span> @caption: $5
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">elsif</span> markup <span style="color:#f92672">=~</span> <span style="color:#66d9ef">IMAGE_URL_WITH_CLASS</span>
|
||||||
|
</span></span><span style="display:flex;"><span> @class: $1
|
||||||
|
</span></span><span style="display:flex;"><span> @url : $3
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">elsif</span> markup <span style="color:#f92672">=~</span> <span style="color:#66d9ef">IMAGE_URL</span>
|
||||||
|
</span></span><span style="display:flex;"><span> @url: $1
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">def</span> <span style="color:#a6e22e">render</span>(context)
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">if</span> @class
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#e6db74">source</span>: <span style="color:#e6db74">"<figure class='</span><span style="color:#e6db74">#{</span>@class<span style="color:#e6db74">}</span><span style="color:#e6db74">'>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">else</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#e6db74">source</span>: <span style="color:#e6db74">"<figure>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">if</span> @link
|
||||||
|
</span></span><span style="display:flex;"><span> source <span style="color:#f92672">+=</span> <span style="color:#e6db74">"<a href=</span><span style="color:#ae81ff">\"</span><span style="color:#e6db74">#{</span>@link<span style="color:#e6db74">}</span><span style="color:#ae81ff">\"</span><span style="color:#e6db74">>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> source <span style="color:#f92672">+=</span> <span style="color:#e6db74">"<img src=</span><span style="color:#ae81ff">\"</span><span style="color:#e6db74">#{</span>@url<span style="color:#e6db74">}</span><span style="color:#ae81ff">\"</span><span style="color:#e6db74">>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">if</span> @link
|
||||||
|
</span></span><span style="display:flex;"><span> source <span style="color:#f92672">+=</span> <span style="color:#e6db74">"</a>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> source <span style="color:#f92672">+=</span> <span style="color:#e6db74">"<figcaption></span><span style="color:#e6db74">#{</span>@caption<span style="color:#e6db74">}</span><span style="color:#e6db74"></figcaption>"</span> <span style="color:#66d9ef">if</span> @caption
|
||||||
|
</span></span><span style="display:flex;"><span> source <span style="color:#f92672">+=</span> <span style="color:#e6db74">"</figure>"</span>
|
||||||
|
</span></span><span style="display:flex;"><span> source
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span> <span style="color:#66d9ef">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">end</span>
|
||||||
|
</span></span><span style="display:flex;"><span><span style="color:#66d9ef">Liquid</span><span style="color:#f92672">::</span><span style="color:#66d9ef">Template</span><span style="color:#f92672">.</span>register_tag(<span style="color:#e6db74">'image'</span>, <span style="color:#66d9ef">Jekyll</span><span style="color:#f92672">::</span><span style="color:#66d9ef">ImageTag</span>)
|
||||||
|
</span></span></code></pre></div><p>is written as this Hugo shortcode:</p>
|
||||||
|
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-html" data-lang="html"><span style="display:flex;"><span><span style="color:#75715e"><!-- image --></span>
|
||||||
|
</span></span><span style="display:flex;"><span><<span style="color:#f92672">figure</span> <span style="color:#960050;background-color:#1e0010">{{</span> <span style="color:#a6e22e">with</span> <span style="color:#960050;background-color:#1e0010">.</span><span style="color:#a6e22e">Get</span> <span style="color:#960050;background-color:#1e0010">"</span><span style="color:#a6e22e">class</span><span style="color:#960050;background-color:#1e0010">"</span> <span style="color:#960050;background-color:#1e0010">}}</span><span style="color:#a6e22e">class</span><span style="color:#f92672">=</span><span style="color:#e6db74">"{{.}}"</span><span style="color:#960050;background-color:#1e0010">{{</span> <span style="color:#a6e22e">end</span> <span style="color:#960050;background-color:#1e0010">}}</span>>
|
||||||
|
</span></span><span style="display:flex;"><span> {{ with .Get "link"}}<<span style="color:#f92672">a</span> <span style="color:#a6e22e">href</span><span style="color:#f92672">=</span><span style="color:#e6db74">"{{.}}"</span>>{{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> <<span style="color:#f92672">img</span> <span style="color:#a6e22e">src</span><span style="color:#f92672">=</span><span style="color:#e6db74">"{{ .Get "</span><span style="color:#a6e22e">src</span><span style="color:#960050;background-color:#1e0010">"</span> <span style="color:#960050;background-color:#1e0010">}}"</span> <span style="color:#960050;background-color:#1e0010">{{</span> <span style="color:#a6e22e">if</span> <span style="color:#a6e22e">or</span> <span style="color:#960050;background-color:#1e0010">(.</span><span style="color:#a6e22e">Get</span> <span style="color:#960050;background-color:#1e0010">"</span><span style="color:#a6e22e">alt</span><span style="color:#960050;background-color:#1e0010">")</span> <span style="color:#960050;background-color:#1e0010">(.</span><span style="color:#a6e22e">Get</span> <span style="color:#960050;background-color:#1e0010">"</span><span style="color:#a6e22e">caption</span><span style="color:#960050;background-color:#1e0010">")</span> <span style="color:#960050;background-color:#1e0010">}}</span><span style="color:#a6e22e">alt</span><span style="color:#f92672">=</span><span style="color:#e6db74">"{{ with .Get "</span><span style="color:#a6e22e">alt</span><span style="color:#960050;background-color:#1e0010">"}}{{.}}{{</span><span style="color:#a6e22e">else</span><span style="color:#960050;background-color:#1e0010">}}{{</span> <span style="color:#960050;background-color:#1e0010">.</span><span style="color:#a6e22e">Get</span> <span style="color:#960050;background-color:#1e0010">"</span><span style="color:#a6e22e">caption</span><span style="color:#960050;background-color:#1e0010">"</span> <span style="color:#960050;background-color:#1e0010">}}{{</span> <span style="color:#a6e22e">end</span> <span style="color:#960050;background-color:#1e0010">}}"{{</span> <span style="color:#a6e22e">end</span> <span style="color:#960050;background-color:#1e0010">}}</span> />
|
||||||
|
</span></span><span style="display:flex;"><span> {{ if .Get "link"}}</<span style="color:#f92672">a</span>>{{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
|
||||||
|
</span></span><span style="display:flex;"><span> <<span style="color:#f92672">figcaption</span>>{{ if isset .Params "title" }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ .Get "title" }}{{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ if or (.Get "caption") (.Get "attr")}}<<span style="color:#f92672">p</span>>
|
||||||
|
</span></span><span style="display:flex;"><span> {{ .Get "caption" }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ with .Get "attrlink"}}<<span style="color:#f92672">a</span> <span style="color:#a6e22e">href</span><span style="color:#f92672">=</span><span style="color:#e6db74">"{{.}}"</span>> {{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ .Get "attr" }}
|
||||||
|
</span></span><span style="display:flex;"><span> {{ if .Get "attrlink"}}</<span style="color:#f92672">a</span>> {{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> </<span style="color:#f92672">p</span>> {{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span> </<span style="color:#f92672">figcaption</span>>
|
||||||
|
</span></span><span style="display:flex;"><span> {{ end }}
|
||||||
|
</span></span><span style="display:flex;"><span></<span style="color:#f92672">figure</span>>
|
||||||
|
</span></span><span style="display:flex;"><span><span style="color:#75715e"><!-- image --></span>
|
||||||
|
</span></span></code></pre></div>
|
||||||
|
|
||||||
|
<h3 id="usage">
|
||||||
|
Usage
|
||||||
|
</h3>
|
||||||
|
<p>I simply changed:</p>
|
||||||
|
<pre tabindex="0"><code>{% image full http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg "One of my favorite touristy-type photos. I secretly waited for the good light while we were "having fun" and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." ->http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/ %}
|
||||||
|
</code></pre><p>to this (this example uses a slightly extended version named <code>fig</code>, different than the built-in <code>figure</code>):</p>
|
||||||
|
<pre tabindex="0"><code>{{% fig class="full" src="http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg" title="One of my favorite touristy-type photos. I secretly waited for the good light while we were having fun and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." link="http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/" %}}
|
||||||
|
</code></pre><p>As a bonus, the shortcode named parameters are, arguably, more readable.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="finishing-touches">
|
||||||
|
Finishing touches
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="fix-content">
|
||||||
|
Fix content
|
||||||
|
</h3>
|
||||||
|
<p>Depending on the amount of customization that was done with each post with Jekyll, this step will require more or less effort. There are no hard and fast rules here except that <code>hugo server --watch</code> is your friend. Test your changes and fix errors as needed.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="clean-up">
|
||||||
|
Clean up
|
||||||
|
</h3>
|
||||||
|
<p>You’ll want to remove the Jekyll configuration at this point. If you have anything else that isn’t used, delete it.</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="a-practical-example-in-a-diff">
|
||||||
|
A practical example in a diff
|
||||||
|
</h2>
|
||||||
|
<p><a href="http://heyitsalex.net/">Hey, it’s Alex</a> was migrated in less than a <em>father-with-kids day</em> from Jekyll to Hugo. You can see all the changes (and screw-ups) by looking at this <a href="https://github.com/alexandre-normand/alexandre-normand/compare/869d69435bd2665c3fbf5b5c78d4c22759d7613a...b7f6605b1265e83b4b81495423294208cc74d610">diff</a>.</p>
|
||||||
|
|
||||||
|
<div class="time">
|
||||||
|
<time datetime="2021-10-22">2021-10-22 </time>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<span class="reading-time"> · 4 min read</span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="comments">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="terminal-nav">
|
||||||
|
<div class="back-nav">
|
||||||
|
|
||||||
|
<a href="/posts/" class="back-link">../</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</main>
|
||||||
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
|
© Copyright 2026 ·
|
||||||
|
<a href="https://github.com/ntk148v/shibui">shibui</a>
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,132 +1,162 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en-us">
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
My First Post | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
<title>My First Post | My New Hugo Project</title>
|
<link rel="canonical" href="http://localhost:1313/posts/my-first-post/" />
|
||||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
|
||||||
<meta name="description" content="introduction
|
|
||||||
This is bold text, and this is emphasized text.
|
|
||||||
Visit the Hugo website!">
|
|
||||||
<meta name="generator" content="Hugo 0.161.1">
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="My First Post" />
|
||||||
|
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="article"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/posts/my-first-post/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="My First Post" />
|
||||||
|
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Article",
|
||||||
|
"headline": "My First Post",
|
||||||
|
"url": "http:\/\/localhost:1313\/posts\/my-first-post\/",
|
||||||
|
"datePublished": "2026-05-18T23:03:26\u002b02:00",
|
||||||
|
"dateModified": "2026-05-18T23:03:26\u002b02:00"
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
<link rel="stylesheet" href="/ananke/css/main.css">
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<a href="/posts/">Posts</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
<link rel="canonical" href="http://localhost:1313/posts/my-first-post/">
|
<a href="/posts/my-first-post/">My First Post</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
|
||||||
<meta property="og:url" content="http://localhost:1313/posts/my-first-post/">
|
|
||||||
<meta property="og:site_name" content="My New Hugo Project">
|
|
||||||
<meta property="og:title" content="My First Post">
|
|
||||||
<meta property="og:description" content="introduction This is bold text, and this is emphasized text.
|
|
||||||
Visit the Hugo website!">
|
|
||||||
<meta property="og:locale" content="en_us">
|
|
||||||
<meta property="og:type" content="article">
|
|
||||||
<meta property="article:section" content="posts">
|
|
||||||
<meta property="article:published_time" content="2026-05-18T23:03:26+02:00">
|
|
||||||
<meta property="article:modified_time" content="2026-05-18T23:03:26+02:00">
|
|
||||||
|
|
||||||
<meta itemprop="name" content="My First Post">
|
|
||||||
<meta itemprop="description" content="introduction This is bold text, and this is emphasized text.
|
|
||||||
Visit the Hugo website!">
|
|
||||||
<meta itemprop="datePublished" content="2026-05-18T23:03:26+02:00">
|
|
||||||
<meta itemprop="dateModified" content="2026-05-18T23:03:26+02:00">
|
|
||||||
<meta itemprop="wordCount" content="14">
|
|
||||||
<meta name="twitter:card" content="summary">
|
|
||||||
<meta name="twitter:title" content="My First Post">
|
|
||||||
<meta name="twitter:description" content="introduction This is bold text, and this is emphasized text.
|
|
||||||
Visit the Hugo website!">
|
|
||||||
|
|
||||||
|
|
||||||
</head><body class="ma0 avenir bg-near-white development is-page is-page page-my-first-post">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<header>
|
|
||||||
<div class="bg-black">
|
|
||||||
<nav class="pv3 ph3 ph4-ns" role="navigation">
|
|
||||||
<div class="flex-l center items-center justify-between">
|
|
||||||
<a href="/" class="f3 fw2 hover-white white-90 dib no-underline">
|
|
||||||
|
|
||||||
My New Hugo Project
|
|
||||||
|
|
||||||
</a>
|
|
||||||
<div class="flex-l items-center">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="ananke-socials"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<main class="pb7" role="main">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<article class="page-my-first-post flex-l mw7 center ph3 flex-wrap justify-between">
|
|
||||||
<header class="mt4 w-100"><aside class="instapaper_ignoref b helvetica tracked ttu">
|
|
||||||
Posts
|
|
||||||
</aside><div id="sharing" class="mt3 ananke-socials"></div>
|
|
||||||
<h1 class="f1 athelas mt3 mb1">My First Post</h1>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<time class="f6 mv4 dib tracked" datetime="2026-05-18T23:03:26+02:00">May 18, 2026</time>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
<div class="nested-copy-line-height lh-copy serif f4 nested-links mid-gray pr4-l w-100-l"><h2 id="introduction">introduction</h2>
|
<main id="main-content" role="main">
|
||||||
|
<h1>My First Post</h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<details class="toc" open>
|
||||||
|
<summary class="toc-title">Table of contents</summary>
|
||||||
|
<nav class="toc-content">
|
||||||
|
<nav id="TableOfContents">
|
||||||
|
<ul>
|
||||||
|
<li><a href="#introduction">introduction</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</nav>
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="introduction">
|
||||||
|
introduction
|
||||||
|
</h2>
|
||||||
<p>This is <strong>bold</strong> text, and this is <em>emphasized</em> text.</p>
|
<p>This is <strong>bold</strong> text, and this is <em>emphasized</em> text.</p>
|
||||||
<p>Visit the <a href="https://gohugo.io">Hugo</a> website!</p>
|
<p>Visit the <a href="https://gohugo.io">Hugo</a> website!</p>
|
||||||
<ul class="pa0">
|
|
||||||
|
|
||||||
</ul>
|
<div class="time">
|
||||||
|
<time datetime="2026-05-18">2026-05-18 </time>
|
||||||
|
|
||||||
|
|
||||||
</div></article>
|
|
||||||
|
<span class="reading-time"> · 1 min read</span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="comments">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="terminal-nav">
|
||||||
|
<div class="back-nav">
|
||||||
|
|
||||||
|
<a href="/posts/" class="back-link">../</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
<div class="flex justify-between">
|
© Copyright 2026 ·
|
||||||
<a class="f4 fw4 hover-white white-70 dn dib-ns pv2 ph3 no-underline" href="http://localhost:1313/" >
|
<a href="https://github.com/ntk148v/shibui">shibui</a>
|
||||||
© My New Hugo Project 2026
|
</p>
|
||||||
</a>
|
|
||||||
<div><div class="ananke-socials"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,44 @@
|
|||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
<url>
|
<url>
|
||||||
<loc>https://example.org/categories/</loc>
|
<loc>http://localhost:1313/gedanken/</loc>
|
||||||
|
<lastmod>2026-05-18T23:03:26+02:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>https://example.org/</loc>
|
<loc>http://localhost:1313/gedanken/my-first-post/</loc>
|
||||||
|
<lastmod>2026-05-18T23:03:26+02:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>https://example.org/posts/</loc>
|
<loc>http://localhost:1313/</loc>
|
||||||
|
<lastmod>2026-05-18T23:03:26+02:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>https://example.org/tags/</loc>
|
<loc>http://localhost:1313/gedanken/hugoisforlovers/</loc>
|
||||||
|
<lastmod>2022-10-26T17:12:11+07:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/tags/hugo/</loc>
|
||||||
|
<lastmod>2022-10-26T17:12:11+07:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/tags/</loc>
|
||||||
|
<lastmod>2022-10-26T17:12:11+07:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/tags/diagrams/</loc>
|
||||||
|
<lastmod>2022-10-25T17:12:11+07:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/gedanken/diagrams/</loc>
|
||||||
|
<lastmod>2022-10-25T17:12:11+07:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/tags/tech/</loc>
|
||||||
|
<lastmod>2022-10-25T17:12:11+07:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/gedanken/introduce-hugo/</loc>
|
||||||
|
<lastmod>2022-10-20T17:12:11+07:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/gedanken/creating-a-new-theme/</loc>
|
||||||
|
<lastmod>2021-10-22T17:12:11+07:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/gedanken/migrate-from-jekyll/</loc>
|
||||||
|
<lastmod>2021-10-22T17:12:11+07:00</lastmod>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/categories/</loc>
|
||||||
|
</url><url>
|
||||||
|
<loc>http://localhost:1313/warum/</loc>
|
||||||
</url>
|
</url>
|
||||||
</urlset>
|
</urlset>
|
||||||
|
|||||||
108
homepage/public/tags/diagrams/index.html
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Diagrams | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/tags/diagrams/" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Diagrams" />
|
||||||
|
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="website"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/tags/diagrams/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Diagrams" />
|
||||||
|
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/tags/diagrams/index.xml" title="Thomas Internet Garden" /> <link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<a href="/tags/">Tags</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/tags/diagrams/">Diagrams</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Diagrams</h1>
|
||||||
|
|
||||||
|
<div class="time-list">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-25">2022-10-25 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/diagrams/">Hugo Diagrams</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
|
© Copyright 2026 ·
|
||||||
|
Thomas
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
21
homepage/public/tags/diagrams/index.xml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Diagrams on Thomas Internet Garden</title>
|
||||||
|
<link>http://localhost:1313/tags/diagrams/</link>
|
||||||
|
<description>Recent content in Diagrams on Thomas Internet Garden</description>
|
||||||
|
<generator>Hugo</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<managingEditor>Thomas.Sindt@gmx.de (Thomas)</managingEditor>
|
||||||
|
<webMaster>Thomas.Sindt@gmx.de (Thomas)</webMaster>
|
||||||
|
<lastBuildDate>Tue, 25 Oct 2022 17:12:11 +0700</lastBuildDate>
|
||||||
|
<atom:link href="http://localhost:1313/tags/diagrams/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<item>
|
||||||
|
<title>Hugo Diagrams</title>
|
||||||
|
<link>http://localhost:1313/gedanken/diagrams/</link>
|
||||||
|
<pubDate>Tue, 25 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/diagrams/</guid>
|
||||||
|
<description><p>Hugo version &gt;= 0.93.0</p>


<h2 id="goat-diagrams-ascii">
 GoAT Diagrams (Ascii)
</h2>
<p>Hugo! supports <a href="https://github.com/bep/goat">GoAT</a> natively. This means that this code block:</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>```goat
</span></span><span style="display:flex;"><span> . . . .--- 1 .-- 1 / 1
</span></span><span style="display:flex;"><span> / \ | | .---+ .-+ +
</span></span><span style="display:flex;"><span> / \ .---+---. .--+--. | &#39;--- 2 | &#39;-- 2 / \ 2
</span></span><span style="display:flex;"><span> + + | | | | ---+ ---+ +
</span></span><span style="display:flex;"><span> / \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
</span></span><span style="display:flex;"><span> / \ / \ | | | | | | | | &#39;---+ &#39;-+ +
</span></span><span style="display:flex;"><span> 1 2 3 4 1 2 3 4 1 2 3 4 &#39;--- 4 &#39;-- 4 \ 4
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>```
</span></span></code></pre></div><p>Will be rendered as:</p></description>
|
||||||
|
</item>
|
||||||
|
</channel>
|
||||||
|
</rss>
|
||||||
132
homepage/public/tags/hugo/index.html
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Hugo | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/tags/hugo/" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Hugo" />
|
||||||
|
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="website"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/tags/hugo/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Hugo" />
|
||||||
|
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/tags/hugo/index.xml" title="Thomas Internet Garden" /> <link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<a href="/tags/">Tags</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/tags/hugo/">Hugo</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Hugo</h1>
|
||||||
|
|
||||||
|
<div class="time-list">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-26">2022-10-26 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/hugoisforlovers/">Getting Started with Hugo</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-25">2022-10-25 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/diagrams/">Hugo Diagrams</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-20">2022-10-20 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/introduce-hugo/">Introduce Hugo</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2021-10-22">2021-10-22 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/creating-a-new-theme/">Creating a New Theme</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2021-10-22">2021-10-22 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/migrate-from-jekyll/">Migrate to Hugo from Jekyll</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
|
© Copyright 2026 ·
|
||||||
|
Thomas
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
49
homepage/public/tags/hugo/index.xml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Hugo on Thomas Internet Garden</title>
|
||||||
|
<link>http://localhost:1313/tags/hugo/</link>
|
||||||
|
<description>Recent content in Hugo on Thomas Internet Garden</description>
|
||||||
|
<generator>Hugo</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<managingEditor>Thomas.Sindt@gmx.de (Thomas)</managingEditor>
|
||||||
|
<webMaster>Thomas.Sindt@gmx.de (Thomas)</webMaster>
|
||||||
|
<lastBuildDate>Wed, 26 Oct 2022 17:12:11 +0700</lastBuildDate>
|
||||||
|
<atom:link href="http://localhost:1313/tags/hugo/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<item>
|
||||||
|
<title>Getting Started with Hugo</title>
|
||||||
|
<link>http://localhost:1313/gedanken/hugoisforlovers/</link>
|
||||||
|
<pubDate>Wed, 26 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/hugoisforlovers/</guid>
|
||||||
|
<description><h2 id="step-1-install-hugo">
 Step 1. Install Hugo
</h2>
<p>Go to <a href="https://github.com/spf13/hugo/releases">Hugo releases</a> and download the
appropriate version for your OS and architecture.</p>
<p>Save it somewhere specific as we will be using it in the next step.</p>
<p>More complete instructions are available at <a href="https://gohugo.io/getting-started/installing/">Install Hugo</a></p>


<h2 id="step-2-build-the-docs">
 Step 2. Build the Docs
</h2>
<p>Hugo has its own example site which happens to also be the documentation site
you are reading right now.</p>
<p>Follow the following steps:</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Hugo Diagrams</title>
|
||||||
|
<link>http://localhost:1313/gedanken/diagrams/</link>
|
||||||
|
<pubDate>Tue, 25 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/diagrams/</guid>
|
||||||
|
<description><p>Hugo version &gt;= 0.93.0</p>


<h2 id="goat-diagrams-ascii">
 GoAT Diagrams (Ascii)
</h2>
<p>Hugo! supports <a href="https://github.com/bep/goat">GoAT</a> natively. This means that this code block:</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>```goat
</span></span><span style="display:flex;"><span> . . . .--- 1 .-- 1 / 1
</span></span><span style="display:flex;"><span> / \ | | .---+ .-+ +
</span></span><span style="display:flex;"><span> / \ .---+---. .--+--. | &#39;--- 2 | &#39;-- 2 / \ 2
</span></span><span style="display:flex;"><span> + + | | | | ---+ ---+ +
</span></span><span style="display:flex;"><span> / \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
</span></span><span style="display:flex;"><span> / \ / \ | | | | | | | | &#39;---+ &#39;-+ +
</span></span><span style="display:flex;"><span> 1 2 3 4 1 2 3 4 1 2 3 4 &#39;--- 4 &#39;-- 4 \ 4
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>```
</span></span></code></pre></div><p>Will be rendered as:</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Introduce Hugo</title>
|
||||||
|
<link>http://localhost:1313/gedanken/introduce-hugo/</link>
|
||||||
|
<pubDate>Thu, 20 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/introduce-hugo/</guid>
|
||||||
|
<description><h2 id="introduction">
 Introduction
</h2>
<p>This tutorial will show you how to create a simple theme in <a href="https://github.com/gohugoio/hugo">Hugo</a>. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme.</p>
<p>We&rsquo;ll start with creating a new site with a very basic template. Then we&rsquo;ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Creating a New Theme</title>
|
||||||
|
<link>http://localhost:1313/gedanken/creating-a-new-theme/</link>
|
||||||
|
<pubDate>Fri, 22 Oct 2021 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/creating-a-new-theme/</guid>
|
||||||
|
<description><h2 id="introduction">
 Introduction
</h2>
<p>This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme.</p>
<p>We&rsquo;ll start with creating a new site with a very basic template. Then we&rsquo;ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Migrate to Hugo from Jekyll</title>
|
||||||
|
<link>http://localhost:1313/gedanken/migrate-from-jekyll/</link>
|
||||||
|
<pubDate>Fri, 22 Oct 2021 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/migrate-from-jekyll/</guid>
|
||||||
|
<description><h2 id="move-static-content-to-static">
 Move static content to <code>static</code>
</h2>
<p>Jekyll has a rule that any directory not starting with <code>_</code> will be copied as-is to the <code>_site</code> output. Hugo keeps all static content under <code>static</code>. You should therefore move it all there.
With Jekyll, something that looked like</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ &lt;root&gt;/
</span></span><span style="display:flex;"><span> ▾ images/
</span></span><span style="display:flex;"><span> logo.png
</span></span></code></pre></div><p>should become</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>▾ &lt;root&gt;/
</span></span><span style="display:flex;"><span> ▾ static/
</span></span><span style="display:flex;"><span> ▾ images/
</span></span><span style="display:flex;"><span> logo.png
</span></span></code></pre></div><p>Additionally, you&rsquo;ll want any files that should reside at the root (such as <code>CNAME</code>) to be moved to <code>static</code>.</p></description>
|
||||||
|
</item>
|
||||||
|
</channel>
|
||||||
|
</rss>
|
||||||
@@ -1,114 +1,111 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en-us">
|
<html
|
||||||
<head>
|
lang="en-us"
|
||||||
<meta charset="utf-8">
|
dir="ltr"
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Tags | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
<title>My New Hugo Project</title>
|
<link rel="canonical" href="http://localhost:1313/tags/" />
|
||||||
<meta name="viewport" content="width=device-width,minimum-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="generator" content="Hugo 0.161.1">
|
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Tags" />
|
||||||
|
|
||||||
<meta name="robots" content="index, follow">
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="website"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/tags/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Tags" />
|
||||||
|
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/tags/index.xml" title="Thomas Internet Garden" /> <link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
<link rel="stylesheet" href="/ananke/css/main.fe543ec729f225f1a33caed07775c832a416476900d82ba51765d6ead9de6758.css" integrity="sha256-/lQ+xynyJfGjPK7Qd3XIMqQWR2kA2CulF2XW6tneZ1g=" crossorigin="anonymous">
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/tags/">Tags</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
<link href="/tags/index.xml" rel="alternate" type="application/rss+xml" title="My New Hugo Project" />
|
|
||||||
<link href="/tags/index.xml" rel="feed" type="application/rss+xml" title="My New Hugo Project" />
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="canonical" href="https://example.org/tags/">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<meta property="og:url" content="https://example.org/tags/">
|
|
||||||
<meta property="og:site_name" content="My New Hugo Project">
|
|
||||||
<meta property="og:title" content="Tags">
|
|
||||||
<meta property="og:locale" content="en_us">
|
|
||||||
<meta property="og:type" content="website">
|
|
||||||
|
|
||||||
<meta itemprop="name" content="Tags">
|
|
||||||
<meta name="twitter:card" content="summary">
|
|
||||||
<meta name="twitter:title" content="Tags">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head><body class="ma0 avenir bg-near-white production is-taxonomy">
|
|
||||||
|
|
||||||
|
|
||||||
<header>
|
|
||||||
<div class="pb3-m pb6-l bg-black">
|
|
||||||
<nav class="pv3 ph3 ph4-ns" role="navigation">
|
|
||||||
<div class="flex-l center items-center justify-between">
|
|
||||||
<a href="/" class="f3 fw2 hover-white white-90 dib no-underline">
|
|
||||||
|
|
||||||
My New Hugo Project
|
|
||||||
|
|
||||||
</a>
|
|
||||||
<div class="flex-l items-center">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="ananke-socials"></div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="tc-l pv3 ph3 ph4-ns">
|
|
||||||
<h1 class="f2 f-subheadline-l fw2 light-silver mb0 lh-title">
|
|
||||||
Tags
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Tags</h1>
|
||||||
|
|
||||||
|
<div class="time-list">
|
||||||
|
<ul>
|
||||||
|
|
||||||
<main class="pb7" role="main">
|
<li>
|
||||||
|
<span><time datetime="2022-10-26">2022-10-26 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/tags/hugo/">Hugo</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
<article class="cf pa3 pa4-m pa4-l">
|
<li>
|
||||||
<div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links mid-gray">
|
<span><time datetime="2022-10-25">2022-10-25 </time>
|
||||||
<p>Below you will find pages that utilize the taxonomy term “Tags”</p>
|
</span>
|
||||||
|
<div><a href="/tags/diagrams/">Diagrams</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-25">2022-10-25 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/tags/tech/">Tech</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
|
||||||
<div class="mw8 center">
|
|
||||||
<section class="flex-ns mt5 flex-wrap justify-around">
|
|
||||||
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
<footer class="bg-black bottom-0 w-100 pa3" role="contentinfo">
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
<div class="flex justify-between">
|
© Copyright 2026 ·
|
||||||
<a class="f4 fw4 hover-white white-70 dn dib-ns pv2 ph3 no-underline" href="https://example.org/" >
|
Thomas
|
||||||
© My New Hugo Project 2026
|
</p>
|
||||||
</a>
|
|
||||||
<div><div class="ananke-socials"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,35 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
<title>Tags on My New Hugo Project</title>
|
<title>Tags on Thomas Internet Garden</title>
|
||||||
<link>https://example.org/tags/</link>
|
<link>http://localhost:1313/tags/</link>
|
||||||
<description>Recent content in Tags on My New Hugo Project</description>
|
<description>Recent content in Tags on Thomas Internet Garden</description>
|
||||||
<generator>Hugo</generator>
|
<generator>Hugo</generator>
|
||||||
<language>en-us</language>
|
<language>en-us</language>
|
||||||
<atom:link href="https://example.org/tags/index.xml" rel="self" type="application/rss+xml" />
|
<managingEditor>Thomas.Sindt@gmx.de (Thomas)</managingEditor>
|
||||||
|
<webMaster>Thomas.Sindt@gmx.de (Thomas)</webMaster>
|
||||||
|
<lastBuildDate>Wed, 26 Oct 2022 17:12:11 +0700</lastBuildDate>
|
||||||
|
<atom:link href="http://localhost:1313/tags/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<item>
|
||||||
|
<title>Hugo</title>
|
||||||
|
<link>http://localhost:1313/tags/hugo/</link>
|
||||||
|
<pubDate>Wed, 26 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/tags/hugo/</guid>
|
||||||
|
<description></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Diagrams</title>
|
||||||
|
<link>http://localhost:1313/tags/diagrams/</link>
|
||||||
|
<pubDate>Tue, 25 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/tags/diagrams/</guid>
|
||||||
|
<description></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Tech</title>
|
||||||
|
<link>http://localhost:1313/tags/tech/</link>
|
||||||
|
<pubDate>Tue, 25 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/tags/tech/</guid>
|
||||||
|
<description></description>
|
||||||
|
</item>
|
||||||
</channel>
|
</channel>
|
||||||
</rss>
|
</rss>
|
||||||
|
|||||||
114
homepage/public/tags/tech/index.html
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Tech | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/tags/tech/" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Tech" />
|
||||||
|
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="website"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/tags/tech/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Tech" />
|
||||||
|
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/tags/tech/index.xml" title="Thomas Internet Garden" /> <link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<a href="/tags/">Tags</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/tags/tech/">Tech</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Tech</h1>
|
||||||
|
|
||||||
|
<div class="time-list">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-25">2022-10-25 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/diagrams/">Hugo Diagrams</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<span><time datetime="2022-10-20">2022-10-20 </time>
|
||||||
|
</span>
|
||||||
|
<div><a href="/gedanken/introduce-hugo/">Introduce Hugo</a></div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
|
© Copyright 2026 ·
|
||||||
|
Thomas
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
28
homepage/public/tags/tech/index.xml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Tech on Thomas Internet Garden</title>
|
||||||
|
<link>http://localhost:1313/tags/tech/</link>
|
||||||
|
<description>Recent content in Tech on Thomas Internet Garden</description>
|
||||||
|
<generator>Hugo</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<managingEditor>Thomas.Sindt@gmx.de (Thomas)</managingEditor>
|
||||||
|
<webMaster>Thomas.Sindt@gmx.de (Thomas)</webMaster>
|
||||||
|
<lastBuildDate>Tue, 25 Oct 2022 17:12:11 +0700</lastBuildDate>
|
||||||
|
<atom:link href="http://localhost:1313/tags/tech/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
<item>
|
||||||
|
<title>Hugo Diagrams</title>
|
||||||
|
<link>http://localhost:1313/gedanken/diagrams/</link>
|
||||||
|
<pubDate>Tue, 25 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/diagrams/</guid>
|
||||||
|
<description><p>Hugo version &gt;= 0.93.0</p>


<h2 id="goat-diagrams-ascii">
 GoAT Diagrams (Ascii)
</h2>
<p>Hugo! supports <a href="https://github.com/bep/goat">GoAT</a> natively. This means that this code block:</p>
<div class="highlight"><pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>```goat
</span></span><span style="display:flex;"><span> . . . .--- 1 .-- 1 / 1
</span></span><span style="display:flex;"><span> / \ | | .---+ .-+ +
</span></span><span style="display:flex;"><span> / \ .---+---. .--+--. | &#39;--- 2 | &#39;-- 2 / \ 2
</span></span><span style="display:flex;"><span> + + | | | | ---+ ---+ +
</span></span><span style="display:flex;"><span> / \ / \ .-+-. .-+-. .+. .+. | .--- 3 | .-- 3 \ / 3
</span></span><span style="display:flex;"><span> / \ / \ | | | | | | | | &#39;---+ &#39;-+ +
</span></span><span style="display:flex;"><span> 1 2 3 4 1 2 3 4 1 2 3 4 &#39;--- 4 &#39;-- 4 \ 4
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>```
</span></span></code></pre></div><p>Will be rendered as:</p></description>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<title>Introduce Hugo</title>
|
||||||
|
<link>http://localhost:1313/gedanken/introduce-hugo/</link>
|
||||||
|
<pubDate>Thu, 20 Oct 2022 17:12:11 +0700</pubDate><author>Thomas.Sindt@gmx.de (Thomas)</author>
|
||||||
|
<guid>http://localhost:1313/gedanken/introduce-hugo/</guid>
|
||||||
|
<description><h2 id="introduction">
 Introduction
</h2>
<p>This tutorial will show you how to create a simple theme in <a href="https://github.com/gohugoio/hugo">Hugo</a>. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I&rsquo;ll explain how Hugo uses templates and how you can organize your templates to create a theme. I won&rsquo;t cover using CSS to style your theme.</p>
<p>We&rsquo;ll start with creating a new site with a very basic template. Then we&rsquo;ll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.</p></description>
|
||||||
|
</item>
|
||||||
|
</channel>
|
||||||
|
</rss>
|
||||||
110
homepage/public/warum/index.html
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html
|
||||||
|
lang="en-us"
|
||||||
|
dir="ltr"
|
||||||
|
>
|
||||||
|
<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="preconnect" href="https://cdn.jsdelivr.net">
|
||||||
|
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
|
||||||
|
<title>
|
||||||
|
Warum | Thomas Internet Garden
|
||||||
|
</title>
|
||||||
|
|
||||||
|
<link rel="canonical" href="http://localhost:1313/warum/" />
|
||||||
|
|
||||||
|
|
||||||
|
<meta property="og:title" content="Warum" />
|
||||||
|
|
||||||
|
<meta
|
||||||
|
property="og:type"
|
||||||
|
content="website"
|
||||||
|
/>
|
||||||
|
<meta property="og:url" content="http://localhost:1313/warum/" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:title" content="Warum" />
|
||||||
|
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/warum/index.xml" title="Thomas Internet Garden" /> <link rel="apple-touch-icon" sizes="57x57" href="/favicon_io/apple-icon-57x57.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="60x60" href="/favicon_io/apple-icon-60x60.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="72x72" href="/favicon_io/apple-icon-72x72.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="76x76" href="/favicon_io/apple-icon-76x76.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="114x114" href="/favicon_io/apple-icon-114x114.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/favicon_io/apple-icon-120x120.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/favicon_io/apple-icon-144x144.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="152x152" href="/favicon_io/apple-icon-152x152.png">
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicon_io/apple-icon-180x180.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="192x192" href="/favicon_io/android-icon-192x192.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon_io/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="/favicon_io/favicon-96x96.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon_io/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/favicon_io/manifest.json">
|
||||||
|
<meta name="msapplication-TileColor" content="#ffffff">
|
||||||
|
<meta name="msapplication-TileImage" content="/favicon_io/ms-icon-144x144.png">
|
||||||
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="/css/main.css">
|
||||||
|
<link rel="stylesheet" href="/css/custom.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="#main-content" class="skip-link">Skip to content</a>
|
||||||
|
<header role="banner"><nav class="path-nav" aria-label="Breadcrumb">
|
||||||
|
<ol>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<li>
|
||||||
|
/
|
||||||
|
<a href="/">Thomas Internet Garden</a>
|
||||||
|
/
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
<li class="current">
|
||||||
|
|
||||||
|
<a href="/warum/">Warum</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</header>
|
||||||
|
<main id="main-content" role="main">
|
||||||
|
<h1>Warum</h1>
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="über-mich-und-warum">
|
||||||
|
Über mich und Warum
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="über-mich">
|
||||||
|
über mich
|
||||||
|
</h3>
|
||||||
|
<p>Ich bin Thomas</p>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 id="warum">
|
||||||
|
warum
|
||||||
|
</h3>
|
||||||
|
<p>und ich schreibe hier auf dieser Page einfach meine Gedanken, wie sie mir kommen zu den Themen Liebe, Beziehungen und was da so alles an Zeug dazu gehört. Ich schreibe das im Wesentlichen für mich, um meine Gedanken ein wenig zu ordnen und zu strukturieren. Wenn Euch was gefällt, nehmt es für Euch. Kommentiert gerne die Gedanken, fügt Eure hinzu …</p>
|
||||||
|
|
||||||
|
<div class="time-list">
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<footer role="contentinfo"><p role="contentinfo">
|
||||||
|
© Copyright 2026 ·
|
||||||
|
Thomas
|
||||||
|
</p>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
13
homepage/public/warum/index.xml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||||
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
|
<channel>
|
||||||
|
<title>Warum on Thomas Internet Garden</title>
|
||||||
|
<link>http://localhost:1313/warum/</link>
|
||||||
|
<description>Recent content in Warum on Thomas Internet Garden</description>
|
||||||
|
<generator>Hugo</generator>
|
||||||
|
<language>en-us</language>
|
||||||
|
<managingEditor>Thomas.Sindt@gmx.de (Thomas)</managingEditor>
|
||||||
|
<webMaster>Thomas.Sindt@gmx.de (Thomas)</webMaster>
|
||||||
|
<atom:link href="http://localhost:1313/warum/index.xml" rel="self" type="application/rss+xml" />
|
||||||
|
</channel>
|
||||||
|
</rss>
|
||||||