diff --git a/README.adoc b/README.adoc index 82ced84..bc76ab5 100644 --- a/README.adoc +++ b/README.adoc @@ -40,7 +40,9 @@ the link:{uri-archive}[archive] into `themes/nocolor`. == Configuration & Modification Please take a look at the link:{uri-slick-example}[configuration example for -Slick]. It is valid for nocolor too. +Slick]. It is valid for nocolor too, with these exceptions: + +* `favicon` and `css` have to be in in the assets folder. You can add things to the end of the `` section by overwriting the partial template `extra-head.html` or above the footer by overwriting diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 9536b1e..70f9101 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -21,21 +21,16 @@ {{- end }} {{- with .Site.Params.favicon | default "favicon.ico" }} {{- if resources.Get . }} - {{- $favicon := resources.Get . | resources.Fingerprint }} + {{- $favicon := resources.Get . }} - {{- else if fileExists (path.Join "static" .) }} - {{- $favtype := cond (eq (path.Ext .) ".png") "image/png" "image/x-icon" }} - {{- end }} {{- end }} {{- $style := resources.Get "nocolor.css" }} {{- with .Site.Params.css }} {{- if resources.Get . }} - {{- $styleCustom := resources.Get . | resources.Fingerprint }} + {{- $styleCustom := resources.Get . }} - {{- else if fileExists (path.Join "static" .) }} - {{- end }} {{- end }} {{ partial "extra_head.html" . }}