experimenting with styling code snippets
continuous-integration/drone/push Build is passing Details

drafts
unknown 5 months ago
parent 6996860e2c
commit 933926baaa

@ -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
<!DOCTYPE html>
<html lang="{{ .Lang }}">
{{ 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"}
<h1>{{ i18n "tag" }}: {{ .Title }}</h1>
```
In practice, I don't think
The final template looks like this.
``` {title="layouts/_default/term.html"}
```html
<!DOCTYPE html>
<html lang="{{ .Lang }}">
{{ partial "head.html" . }}

Loading…
Cancel
Save