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

github.com/Vimux/mainroad.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimux <vimux@protonmail.com>2020-07-23 19:15:21 +0300
committervimux <vimux@protonmail.com>2020-08-17 17:04:25 +0300
commit451a8fa08212c683f781230b68012a4088eebcf8 (patch)
tree422126cd6eb04d10a457fc2a9b9f1db25ce2913b /README.md
parent82db1410f6be2d874c58c83598b2921f8483fe5f (diff)
Add font params
* Add .Site.Params.googleFontsLink * Add .Site.Params.style.vars.fontFamilyPrimary * Add .Site.Params.style.vars.fontFamilySecondary To store all style related parameters in one place: * Deprecate .Site.Params.highlightColor * Add .Site.Params.style.vars.highlightColor Closes #150 Closes #155 Closes #225
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/README.md b/README.md
index 1f9fd25..12d9551 100644
--- a/README.md
+++ b/README.md
@@ -89,10 +89,19 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
mathjax = true # Enable MathJax
mathjaxPath = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js" # Specify MathJax path
mathjaxConfig = "TeX-AMS-MML_HTMLorMML" # Specify MathJax config
- highlightColor = "#e22d30" # Override highlight color
+ googleFontsLink = "https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" # Load Google Fonts
+ highlightColor = "" # Deprecated in favor of .Site.Params.style.vars.highlightColor
customCSS = ["css/custom.css"] # Include custom CSS files
customJS = ["js/custom.js"] # Include custom JS files
+[Params.style.vars]
+ highlightColor = "#e22d30" # Override highlight color
+
+ # Override font-family sets. Secondary font-family set responsible for pre, code, kbd, and samp tags font
+ # Take care of different quotes OR escaping symbols in these params if necessary
+ fontFamilyPrimary = "'Open Sans', Helvetica, Arial, sans-serif"
+ fontFamilySecondary = "SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace"
+
[Params.logo]
image = "img/placeholder.png" # Logo image. Path relative to "static"
title = "Mainroad" # Logo title, otherwise will use site title