Files
sumup/content/posts/tribut.md

39 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

---
title: "Tribute Von"
date: 2025-11-19T16:16:30+01:00
year: "2025"
month: "2025/11"
draft: false
image: /images/tribute.png
alt_text: "Bucheinbandausschnitt"
author: Franz Klotsche
disableComments: true
categories:
- Programmierbuch
- Website
tags:
- gohugo
- static html
---
### Bücher
Das Buch was den Anfang dieser Website ermöglicht hat heißt:
> Build Websites with Hugo - Fast Web Development with Markdown
geschrieben von Brian P. Hogan und editiert von Tammy Coron aus dem Jahr 2020.
#### You Turn
Am Ende eines jeden Kapitels bekommt man Aufgaben. Am Ende des Kapitels *Displaying Related Content* wird die Gewichtung von zum Beispiel *keywords* angeschnitten. Die erste Aufgabe, eine Liste der Tags in /layouts/_default/tags.html zu erstellen, verstand ich nicht ganz da tag.terms.html schon existiert.
> iterate over all of the tags for the site with .Data.Terms. This will give you access to the number of content pages associated with each tag[^1]
* Aufgabe 2 ebenfalls nicht was gemeint wird mit
> individual category pages[^1]
* Aufgabe 3 war einfach zu realisieren mit `{{ if isset .Params "image" }}` und den zugehörigen *front matter*.
* Aufgabe 4 erachte ich für nicht dringend, da ich nicht soviele Projekte (mehr als 10) gleichzeitig erstellt habe (auch nicht vor habe).
* und Aufgabe 5 wird in `themes/mytheme/layouts/index.html` erledigt und fand ich zunächst nicht (erwartete die Definition in `baseof.html`).
Das nächste Kapitel behandelt die **Suche**.
[^1]: Seite 133 (Build Websites with Hugo, Brian P. Hogan)