Only insert custom CSS link if the file exists

This commit is contained in:
Michael Serajnik
2019-06-15 15:55:40 +02:00
parent 30410267ec
commit 79b040a3ec

View File

@ -12,7 +12,9 @@
{{ end }}
<!-- Custom CSS to override theme properties (/static/style.css) -->
{{ if (fileExists "static/style.css") -}}
<link rel="stylesheet" href="{{ "style.css" | absURL }}">
{{- end }}
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ "img/apple-touch-icon-144-precomposed.png" | absURL }}">