From 933926baaae910da1352dba21209e4c7a2dd6f34 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 21 Jun 2024 22:42:43 -0400 Subject: [PATCH] experimenting with styling code snippets --- content/posts/adding-content-to-taxonomy-terms/_index.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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" . }}