diff --git a/content/posts/adding-content-to-taxonomy-terms/_index.md b/content/posts/adding-content-to-taxonomy-terms/_index.md index 0a41df0..087b378 100644 --- a/content/posts/adding-content-to-taxonomy-terms/_index.md +++ b/content/posts/adding-content-to-taxonomy-terms/_index.md @@ -51,7 +51,10 @@ this is where i talk about building my blog with quartz The other half of this setup is modifying the term template. I had to add the `{{ .Content}}` line ( that's really all it took ) so it would render out the body content of my `_index.md` as above. -``` {title="layouts/_default/term.html"} +{{< badge >}} +`layouts/_default/term.html` +{{< /badge >}} +```html {{ partial "head.html" . }} @@ -80,14 +83,14 @@ The other half of this setup is modifying the term template. I had to add the `{ There was a really confusing issue I had with the title section of the term page. The title was appearing correctly, even pulling from the `_index.md`, but it was being prefixed with `Tag: `. It took me some digging to find the cause. I started with grepping for `Tag`, and found it in the `i18n/en.toml`. This told me that a template was calling `i18n`, and there we had it: -``` {title="layouts/_default/term.html"} +```html {title="layouts/_default/term.html"}

{{ i18n "tag" }}: {{ .Title }}

``` In practice, I don't think The final template looks like this. -``` {title="layouts/_default/term.html"} +```html {{ partial "head.html" . }}