Skip to content

Commit

Permalink
Prepare more metadata in posting footer
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Jan 3, 2025
1 parent 8bafffc commit 5e36abb
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 9 deletions.
17 changes: 16 additions & 1 deletion assets/scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1145,8 +1145,23 @@ a:visited {
}

&.single .post {
.post-footer {
display: flex;
justify-content: space-between;
flex-direction: row;

.spacer {
flex-grow: 1;
}

.meta,
.spacer,
.wikidata {
margin: 1.8rem 0;
}
}

.meta {
margin: 1.6em 0;
justify-content: flex-end;
position: relative;

Expand Down
4 changes: 4 additions & 0 deletions assets/scss/wikidata.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@
.wikidata-entries {
font-size: small;
}

@media (max-width : 35em) {
display: none !important;
}
}
4 changes: 2 additions & 2 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ other = "Ihr Browser unterstützt die Vibrarions-API!"
[showTagcloud]
other = "Tagcloud einblenden"

# PDF Preciew
# PDF Preview

[InlinePDFNotSupported]
other = "PDF Vorschau wird nicht unterstützt"
Expand All @@ -60,7 +60,7 @@ other = "von"
other = "RSS-Feed"

[WikidataEntries]
other = "Verbundene Wikidata Einträge"
other = "Entitäten in diesem Beitrag (Wikidata)"

[WikidataEntry]
other = "Wikidata Eintrag"
2 changes: 1 addition & 1 deletion i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ other = "by"
other = "RSS feed"

[WikidataEntries]
other = "Related Wikidata entries"
other = "Entites in this post (Wikidata)"

[WikidataEntry]
other = "Wikidata entry"
13 changes: 8 additions & 5 deletions layouts/partials/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ <h1 class="post-title">{{ .Title }}</h1>
</div>
{{- end -}}

{{- partial "data/wikidata.html" . -}}

{{- if not .Params.metaPage -}}
<div class="meta">
<div class="tags-heading">{{ i18n "Tags" }}</div>
{{ partial "meta/tags.html" . }}
<div class="post-footer">
{{- partial "data/wikidata.html" . -}}
<div class="spacer">
</div>
<div class="meta">
<div class="tags-heading">{{ i18n "Tags" }}</div>
{{ partial "meta/tags.html" . }}
</div>
</div>
{{ end }}
</div>

0 comments on commit 5e36abb

Please sign in to comment.