Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Stavrow <contact@angelostavrow.com>2019-08-30 14:11:54 +0300
committerAngelo Stavrow <contact@angelostavrow.com>2019-08-30 14:11:54 +0300
commit7ca58e51b92ac03c4aa8d5e09c5def2f4390c636 (patch)
treed5ffe590681ae58afb3e9e2e2a9ac87330445d5b
parentdae2c352ea4b11847f5d56181fd45235dcea234e (diff)
Import custom CSS from separate file (#48)
-rw-r--r--layouts/partials/head.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b4061f9..b5fe1a5 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -21,6 +21,9 @@
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<!-- Other stuff to make the site work -->
<style type="text/css">{{ partial "fonts.css" . | safeCSS }}</style>
- <link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css" />
+ <link rel="stylesheet" href="/css/style.css" />
+ {{ if (fileExists "/static/css/custom.css") -}}
+ <link rel="stylesheet" href="/css/custom.css" />
+ {{- end }}
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>