Sfoglia il codice sorgente

Adds the ability to override the current css with a custom css file

tags/v1.0.0
JonasVHM 6 anni fa
parent
commit
8c527d6ed3

+ 1
- 0
exampleSite/config.toml Vedi File

@@ -45,6 +45,7 @@ theme = "meghna-hugo"
home= "Home"
logo = "images/logo.png"
gmapAPI = "https://maps.googleapis.com/maps/api/js?key=AIzaSyBI14J_PNWVd-m0gnUBkjmhoQyNyd7nllA"
custom_css = ["css/custom.css"]

# Banner Section
[params.banner]

+ 1
- 0
exampleSite/static/css/custom.css Vedi File

@@ -0,0 +1 @@


+ 4
- 0
layouts/partials/header.html Vedi File

@@ -28,6 +28,10 @@
<link rel="stylesheet" href="{{"plugins/slick-carousel/slick/slick-theme.css"|absURL}}">
{{"<!-- Main Stylesheet -->"|safeHTML}}
<link rel="stylesheet" href="{{"css/style.css"|absURL}}">
{{ "<!-- Custom CSS -->" | safeHTML }}
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ . | absURL }}">
{{ end }}

</head>
{{"<!-- body start -->" | safeHTML}}

Loading…
Annulla
Salva