2022-02-06 12:51:54 +00:00
|
|
|
{{- $assetBusting := not .Site.Params.disableAssetsBusting }}
|
|
|
|
{{- if (fileExists "/static/images/favicon.svg") }}
|
2022-07-05 22:26:05 +00:00
|
|
|
<link rel="icon" href="{{ "images/favicon.svg" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" type="image/svg+xml">
|
2022-02-06 12:51:54 +00:00
|
|
|
{{- else if (fileExists "/static/images/favicon.png") }}
|
2022-07-05 22:26:05 +00:00
|
|
|
<link rel="icon" href="{{ "images/favicon.png" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" type="image/png">
|
2022-02-06 12:51:54 +00:00
|
|
|
{{- else if (fileExists "/static/images/favicon.ico") }}
|
2022-07-05 22:26:05 +00:00
|
|
|
<link rel="icon" href="{{ "images/favicon.ico" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" type="image/x-icon">
|
2022-02-06 12:51:54 +00:00
|
|
|
{{- else if (fileExists "/static/images/logo.svg") }}
|
2022-07-05 22:26:05 +00:00
|
|
|
<link rel="icon" href="{{ "images/logo.svg" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" type="image/svg+xml">
|
2022-02-06 12:51:54 +00:00
|
|
|
{{- else if (fileExists "/static/images/logo.png") }}
|
2022-07-05 22:26:05 +00:00
|
|
|
<link rel="icon" href="{{ "images/logo.png" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" type="image/png">
|
2022-02-06 12:51:54 +00:00
|
|
|
{{- else if (fileExists "/static/images/logo.ico") }}
|
2022-07-05 22:26:05 +00:00
|
|
|
<link rel="icon" href="{{ "images/logo.ico" | relURL }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" type="image/x-icon">
|
2022-02-06 12:51:54 +00:00
|
|
|
{{- end }}
|