Replace logo file and use some SVG as primary

pull/81/head
sixtus 2023-01-04 17:12:52 +01:00
parent 245deff793
commit 2bfc13efd9
6 changed files with 14 additions and 13 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 13 KiB

1
assets/logo.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -12,7 +12,7 @@ showmetadates: false
showmetalinks: false
---
{{< resource_image src="logo.png" alt="Logo" >}}
{{< full_logo >}}
<div class="pure-g">
<div class="pure-u-1-2 centered">

View File

@ -0,0 +1,12 @@
{{- $svg := resources.Get "logo.svg" | resources.Fingerprint }}
{{- $png := resources.Get "logo.png" | resources.Fingerprint }}
{{- $cls := "pure-img centered" }}
<div class="pure-g">
<div class="pure-u-3-4 pure-u-md-2-3 centered">
<p>
<object class="{{ $cls }}" type="image/svg+xml" data="{{ $svg.Permalink }}">
<img class="{{ $cls }}" src="{{ $png.Permalink }}" alt="dezentrale logo" />
</object>
</p>
</div>
</div>

View File

@ -1,12 +0,0 @@
{{- $src := default (.Get 0) (.Get "src") }}
{{- if not $src }}
{{- errorf "missing value for 'src': %s" .Position }}
{{- end }}
{{- $alt := default (.Get 1) (.Get "alt") }}
{{- if not $alt }}
{{- errorf "missing value for 'alt': %s" .Position }}
{{- end }}
{{- $img := resources.Get $src | resources.Fingerprint }}
<p>
<img class="centered" src="{{ $img.RelPermalink }}" alt="{{ $alt }}">
</p>