Added light and dark themes.

This commit is contained in:
Vicky 2017-05-14 15:12:23 +08:00
parent 11776e89f2
commit 90b2dd142f
5 changed files with 3 additions and 3 deletions

View file

@ -20,6 +20,7 @@ author = "A Clever Author" # Full name shows on blog post pages
firstname = "awesome" # First name shows in introduction on main page firstname = "awesome" # First name shows in introduction on main page
tagline = "I'm a theme for Hugo." # Appears after the introduction tagline = "I'm a theme for Hugo." # Appears after the introduction
introheight = "large" # Input either 'medium' or 'large' or 'fullheight' introheight = "large" # Input either 'medium' or 'large' or 'fullheight'
theme = "dark" # Choose 'light' or 'dark'
avatar = "img/profile.png" # Path to image in static folder eg. img/avatar.png avatar = "img/profile.png" # Path to image in static folder eg. img/avatar.png
email = "youremail@email.com" # Shows in contact section, or leave blank to omit email = "youremail@email.com" # Shows in contact section, or leave blank to omit
localtime = true # Show your current local time in contact section localtime = true # Show your current local time in contact section

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

@ -50,14 +50,14 @@
{{ if .Site.Params.cachebuster }} {{ if .Site.Params.cachebuster }}
{{ $t := now.Unix }} {{ $t := now.Unix }}
<link rel="stylesheet" href="/css/style.css?t={{$t}}"> <link rel="stylesheet" href="/css/{{ .Site.Params.theme }}-style.css?t={{$t}}">
{{range .Site.Params.extracssfiles}} {{range .Site.Params.extracssfiles}}
<link rel="stylesheet" href="{{.}}?t={{$t}}"> <link rel="stylesheet" href="{{.}}?t={{$t}}">
{{ end }} {{ end }}
{{ else }} {{ else }}
<link rel="stylesheet" href="/css/style.css"> <link rel="stylesheet" href="/css/{{ .Site.Params.theme }}-style.css">
{{range .Site.Params.extracssfiles}} {{range .Site.Params.extracssfiles}}
<link rel="stylesheet" href="{{.}}"> <link rel="stylesheet" href="{{.}}">
{{end}} {{end}}

File diff suppressed because one or more lines are too long