Browse Source

Merge pull request #6 from Miss-Jones/master

Adds the ability to override the current css with a custom css file
tags/v1.0.0
Mehedi Sharif Titas 6 years ago
parent
commit
7cdf588528
No account linked to committer's email address
3 changed files with 6 additions and 0 deletions
  1. 1
    0
      exampleSite/config.toml
  2. 1
    0
      exampleSite/static/css/custom.css
  3. 4
    0
      layouts/partials/header.html

+ 1
- 0
exampleSite/config.toml View File

home= "Home" home= "Home"
logo = "images/logo.png" logo = "images/logo.png"
gmapAPI = "https://maps.googleapis.com/maps/api/js?key=AIzaSyBI14J_PNWVd-m0gnUBkjmhoQyNyd7nllA" gmapAPI = "https://maps.googleapis.com/maps/api/js?key=AIzaSyBI14J_PNWVd-m0gnUBkjmhoQyNyd7nllA"
custom_css = ["css/custom.css"]


# Banner Section # Banner Section
[params.banner] [params.banner]

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



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

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


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

Loading…
Cancel
Save