mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 19:23:12 +00:00
14 lines
No EOL
1.2 KiB
HTML
14 lines
No EOL
1.2 KiB
HTML
{{- $assetBusting := not .Site.Params.disableAssetsBusting }}
|
|
{{- if (fileExists "/static/images/favicon.svg") }}
|
|
<link href="{{ "images/favicon.svg" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="icon" type="image/svg+xml">
|
|
{{- else if (fileExists "/static/images/favicon.png") }}
|
|
<link href="{{ "images/favicon.png" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="icon" type="image/png">
|
|
{{- else if (fileExists "/static/images/favicon.ico") }}
|
|
<link href="{{ "images/favicon.ico" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="icon" type="image/x-icon">
|
|
{{- else if (fileExists "/static/images/logo.svg") }}
|
|
<link href="{{ "images/logo.svg" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="icon" type="image/svg+xml">
|
|
{{- else if (fileExists "/static/images/logo.png") }}
|
|
<link href="{{ "images/logo.png" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="icon" type="image/png">
|
|
{{- else if (fileExists "/static/images/logo.ico") }}
|
|
<link href="{{ "images/logo.ico" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="icon" type="image/x-icon">
|
|
{{- end }} |