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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exampleSite/config.toml3
-rw-r--r--layouts/partials/header.html5
2 files changed, 7 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 7348219..c0d2472 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -27,6 +27,7 @@ canonifyurls = true # Turns relative urls in
pygmentsCodeFences = true
footertext = "" # Text to show in footer (overrides default text)
fadein = true # Turn on/off the fade-in effect
+ customCSS = [] # Include custom css files e.g. ["css/foo.css", "css/bar.css"]
showblog = true # Show Blog section on home page
showprojects = true # Show Projects section on home page
@@ -55,4 +56,4 @@ canonifyurls = true # Turns relative urls in
[[params.social]]
url = "https://linkedin.com/"
- icon = "linkedin" \ No newline at end of file
+ icon = "linkedin"
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index c8eb9ee..67e122d 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -60,6 +60,11 @@ crossorigin="anonymous"></script>
{{ end }}
+<!-- Custom css -->
+{{ range .Site.Params.customCSS -}}
+ <link rel="stylesheet" href="{{ . | absURL }}">
+{{- end }}
+
<!-- Icon -->
<link rel="shortcut icon"
{{ if .Site.Params.faviconFile }}