diff options
author | Paul <paul@brainspark.nl> | 2020-04-01 18:37:23 +0300 |
---|---|---|
committer | Paul <paul@brainspark.nl> | 2020-04-01 18:37:23 +0300 |
commit | 98917a31936869b27c6d20398c6c3662c4ab074a (patch) | |
tree | cfd010568e7f573f03f47c8f3a39ddece98042fb | |
parent | b9265118ec7fc349752e8193b29bf37dd60a1b75 (diff) |
Add /static/css/local.css for local style adaptions
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | layouts/partials/head.html | 3 | ||||
-rw-r--r-- | static/css/local.css | 0 |
3 files changed, 6 insertions, 1 deletions
@@ -63,6 +63,10 @@ The following footer styles are included: By default a breadcrumb bar is shown at the top of each page other than Home. You can disable showing the breadcrumb bar at a site or page level by setting `showBreadcrumbs` to `false`. +## CSS adaption + +After Bootstrap and this theme's CSS file (*/static/css/theme.css*), the empty local CSS file (*/static/css/local.css*) is included which you can override in your own site. + ## Enabling Analytics Assuming you already signed up for [Google Analytics](https://www.google.com/analytics/), you can add your Google Tracking ID to the `googleAnalytics` parameter in `config.toml`. It will then automatically include Google Analytics code in your site. diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 3d4c55c..ce464c5 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -35,9 +35,10 @@ {{- partial "social/main.html" . -}} <!-- Links and stylesheets --> - <link rel="stylesheet" href="/css/theme.css"> <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> + <link rel="stylesheet" href="/css/theme.css"> + <link rel="stylesheet" href="/css/local.css"> {{- partial "head_custom.html" . -}} {{ template "_internal/google_analytics_async.html" . -}} diff --git a/static/css/local.css b/static/css/local.css new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/static/css/local.css |