diff --git a/README.md b/README.md index 401469f..2aa5b4b 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ $ hugo new fixed/about.md ## Fonts and Colors -The primary font face is Proxima Nova in 400 and 700 weights. If you own the font, create a font face declarations like in the example below, and place it in `static/css/webfonts.css`: +The primary font face is Proxima Nova in 400 and 700 weights. If you own the font, create a font face declarations like in the example below, and place it in the path specified in [`.Site.Params.WebfontsFile`](#site-variables): ````css @font-face { @@ -108,6 +108,7 @@ GitHub = "//github.com/username" Lang = "en" #
LinkedIn = "//linkedin.com/in/username" Twitter = "//twitter.com/username" +WebfontsFile = "/css/mywebfontsfile.css" # relative to static directory, defaults to /css/webfonts.css ```` # Extras diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html index 318127f..1de8da0 100644 --- a/layouts/partials/head_includes.html +++ b/layouts/partials/head_includes.html @@ -2,7 +2,11 @@ +{{ if .Site.Params.WebfontsFile }} + +{{ else }} +{{ end }}