Files
sumup/content/posts/tribut.md

1.5 KiB

title, date, year, month, draft, image, alt_text, author, disableComments, categories, tags
title date year month draft image alt_text author disableComments categories tags
Tribute Von 2025-11-19T16:16:30+01:00 2025 2025/11 false /images/tribute.png Bucheinbandausschnitt Franz Klotsche true
Programmierbuch
Website
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 tag1

  • Aufgabe 2 ebenfalls nicht was gemeint wird mit

individual category pages1

  • 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) ↩︎