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

github.com/zwbetz-gh/minimal-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2018-10-24 00:02:04 +0300
committerZachary Betz <zwbetz@gmail.com>2018-10-24 00:02:04 +0300
commit7463bb4b972ad28c5f247b2e484c4ef6801b5193 (patch)
treedd40af651f779eb74474fefd10c45ab315686649
parent2c96962b2768b3fe0b48e3c628589c8ecbe5d017 (diff)
Revert "Add config option for Google Font Roboto"
This reverts commit 578e4c1e80f63c13bfcc11d79e53d619342dcdf5.
-rw-r--r--README.md14
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/head.html4
-rw-r--r--layouts/partials/style.html13
4 files changed, 1 insertions, 31 deletions
diff --git a/README.md b/README.md
index cfc5af7..9196eee 100644
--- a/README.md
+++ b/README.md
@@ -9,8 +9,7 @@ The typical page size, if the page has no images, is under 300kb (even lower if
* Bootstrap CSS
* Favicon (if enabled)
* Google Analytics JS (if enabled)
-* Cookie Consent CSS/JS (if enabled)
-* Google Roboto Font (if enabled)
+* Cookie Consent CSS/JS (if enabled)
## Table of Contents
@@ -39,7 +38,6 @@ The typical page size, if the page has no images, is under 300kb (even lower if
* [Google Analytics](#google-analytics)
* [Cookie Consent](#cookie-consent)
* [Include Bootstrap JS](#include-bootstrap-js)
- * [Google Font Roboto](#google-font-roboto)
* [Favicon Colors on Various Platforms](#favicon-colors-on-various-platforms)
* [Menu Nav](#menu-nav)
* [Favicon and Apple Touch Icon](#favicon-and-apple-touch-icon)
@@ -139,7 +137,6 @@ pygmentsStyle = "pygments"
googleAnalytics = "UA-123456789-1"
cookieConsent = true
includeBootstrapJs = false
- googleFontRoboto = true
faviconSafariPinnedTabColor = "#5bbad5"
faviconMsApplicationTileColor = "#da532c"
@@ -322,15 +319,6 @@ includeBootstrapJs = false
* If set to `true`, this will include the Bootstrap JS scripts (they are not included by default)
* This is only necessary if you plan to override the theme and need to use Bootstrap functionality that requires its JS scripts
-### Google Font Roboto
-
-```
-googleFontRoboto = true
-```
-* Optional
-* If set to `true`, this will use the Google Font Roboto
-* If set to `false`, or if not present, the default Bootstrap [native font stack](https://getbootstrap.com/docs/4.1/content/reboot/#native-font-stack) will be used
-
### Favicon Colors on Various Platforms
```
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index dda76dd..285d9d2 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -24,7 +24,6 @@ enableGitInfo = false
googleAnalytics = "UA-123456789-1"
cookieConsent = true
includeBootstrapJs = false
- googleFontRoboto = true
faviconSafariPinnedTabColor = "#5bbad5"
faviconMsApplicationTileColor = "#da532c"
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 2ad06e4..951fdc4 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -28,10 +28,6 @@
{{ $bootstrapCss := "css/bootstrap.min.css" }}
<link rel="stylesheet" href="{{ $bootstrapCss | absURL }}" />
- {{ if eq .Site.Params.googleFontRoboto true }}
- <link href="https://fonts.googleapis.com/css?family=Roboto:400,400i,700,700i" rel="stylesheet">
- {{ end }}
-
{{ if .IsHome }}
{{ $homepage := "" }}{{ range first 1 .Site.Menus.nav }}{{ $homepage = .Name }}{{ end }}
<title>{{ $homepage }} | {{ .Site.Title }}</title>
diff --git a/layouts/partials/style.html b/layouts/partials/style.html
index 89020d7..5938cc9 100644
--- a/layouts/partials/style.html
+++ b/layouts/partials/style.html
@@ -158,17 +158,4 @@ blockquote,
border-left: 5px solid #6c757d;
}
{{ end }}
-
-{{ if eq .Site.Params.googleFontRoboto true }}
-html,
-body,
-code,
-kbd,
-pre,
-samp,
-.tooltip
-.popover {
- font-family: 'Roboto', sans-serif;
-}
-{{ end }}
</style> \ No newline at end of file