Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
667a105b2e Add a <ul> of available translation for the page to the content header
Attempt to style it.
2024-03-11 08:30:15 -07:00
2 changed files with 20 additions and 6 deletions

View file

@ -265,6 +265,18 @@
grid-column: wide-content-start / wide-content-end;
}
main > header > .translations {
display: flex;
gap: 1rem;
list-style: none;
margin-inline: 0;
width: 100%;
}
main > header > .translations > li {
margin-inline-start: 0;
}
main > header > .series {
margin-inline-start: 0.5em;
width: 100%;
@ -402,11 +414,6 @@
}
.page > header {
align-items: first baseline;
column-gap: 4rem;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
@media (max-width: 539px) {
@ -415,7 +422,6 @@
}
}
.page > header,
.page > footer {
grid-column: content-start / content-end;
}

View file

@ -5,6 +5,14 @@
<time>{{ .Date | time.Format "January 2, 2006" }}</time>
{{ end }}
{{ if gt (len .AllTranslations) 1 }}
<ul class=translations>
{{ range .AllTranslations }}
<li><a href="{{ .RelPermalink }}">{{ .Language.LanguageCode }}</a></li>
{{ end }}
</ul>
{{ end }}
{{- if .Params.series -}}
{{- $series := .GetTerms "series" -}}