diff options
author | Zachary Betz <zwbetz@gmail.com> | 2018-10-24 00:02:04 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2018-10-24 00:02:04 +0300 |
commit | 7463bb4b972ad28c5f247b2e484c4ef6801b5193 (patch) | |
tree | dd40af651f779eb74474fefd10c45ab315686649 | |
parent | 2c96962b2768b3fe0b48e3c628589c8ecbe5d017 (diff) |
Revert "Add config option for Google Font Roboto"
This reverts commit 578e4c1e80f63c13bfcc11d79e53d619342dcdf5.
-rw-r--r-- | README.md | 14 | ||||
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/head.html | 4 | ||||
-rw-r--r-- | layouts/partials/style.html | 13 |
4 files changed, 1 insertions, 31 deletions
@@ -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 |