Replace logo file and use some SVG as primary
This commit is contained in:
parent
245deff793
commit
2bfc13efd9
Binary file not shown.
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 16 KiB |
BIN
assets/logo.png
BIN
assets/logo.png
Binary file not shown.
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 13 KiB |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 14 KiB |
|
@ -12,7 +12,7 @@ showmetadates: false
|
||||||
showmetalinks: false
|
showmetalinks: false
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< resource_image src="logo.png" alt="Logo" >}}
|
{{< full_logo >}}
|
||||||
|
|
||||||
<div class="pure-g">
|
<div class="pure-g">
|
||||||
<div class="pure-u-1-2 centered">
|
<div class="pure-u-1-2 centered">
|
||||||
|
|
|
@ -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>
|
|
@ -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>
|
|
Reference in New Issue