mirror of https://github.com/jpanther/congo.git
✨ Add favicons partial support
parent
93bb7e5f00
commit
ad0fe1db15
|
@ -18,13 +18,12 @@
|
||||||
<a class="hover:underline" href="https://git.io/hugo-congo" target="_blank">Congo</a>
|
<a class="hover:underline" href="https://git.io/hugo-congo" target="_blank">Congo</a>
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{/* Extend footer - eg. for extra scripts, etc. */}}
|
||||||
|
{{ if templates.Exists "partials/extend-footer.html" }}
|
||||||
|
{{ partialCached "extend-footer.html" . }}
|
||||||
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
{{/* Extend footer - eg. for extra scripts, etc. */}}
|
|
||||||
{{ if templates.Exists "partials/extend-footer.html" }}
|
|
||||||
{{ partialCached "extend-footer.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{/* Include mermaid.js only on pages that use the shortcode */}}
|
{{/* Include mermaid.js only on pages that use the shortcode */}}
|
||||||
{{- if (in (string .Content) "class=\"mermaid\"") -}}
|
{{- if (in (string .Content) "class=\"mermaid\"") -}}
|
||||||
<script src="https://unpkg.com/mermaid@8.11.4/dist/mermaid.min.js"></script>
|
<script src="https://unpkg.com/mermaid@8.11.4/dist/mermaid.min.js"></script>
|
||||||
|
|
|
@ -29,10 +29,14 @@
|
||||||
<link type="text/css" rel="stylesheet" href="{{ "css/custom.css" | absURL }}" />
|
<link type="text/css" rel="stylesheet" href="{{ "css/custom.css" | absURL }}" />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{/* Icons */}}
|
{{/* Icons */}}
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | absURL }}" />
|
{{ if templates.Exists "partials/favicons.html" }}
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | absURL }}" />
|
{{ partialCached "favicons.html" .Site }}
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | absURL }}" />
|
{{ else }}
|
||||||
<link rel="manifest" href="{{ "/site.webmanifest" | absURL }}" />
|
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | absURL }}" />
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | absURL }}" />
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | absURL }}" />
|
||||||
|
<link rel="manifest" href="{{ "/site.webmanifest" | absURL }}" />
|
||||||
|
{{ end }}
|
||||||
{{/* Site Verification */}}
|
{{/* Site Verification */}}
|
||||||
{{ with .Site.Params.verification.google }}
|
{{ with .Site.Params.verification.google }}
|
||||||
<meta name="google-site-verification" content="{{ . }}" />
|
<meta name="google-site-verification" content="{{ . }}" />
|
||||||
|
|
Loading…
Reference in New Issue