diff options
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/footer.html | 5 | ||||
| -rw-r--r-- | layouts/partials/head.html | 35 | ||||
| -rw-r--r-- | layouts/partials/head_fonts.html | 1 | ||||
| -rw-r--r-- | layouts/partials/hook_head_end.html | 0 | ||||
| -rw-r--r-- | layouts/partials/sidebar.html | 39 | ||||
| -rw-r--r-- | layouts/partials/theme-color.html | 17 |
6 files changed, 53 insertions, 44 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..d8e44e7 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,5 @@ +<footer> + <div class="copyright"> + © {{ $.Site.Params.copyright }} {{ now.Format "2006"}} ยท {{ with $.Site.Params.license }}<a href="{{ $.Site.Params.licenseURL }}">{{ . | safeHTML }}</a>{{end}} + </div> +</footer> diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index 56a3157..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,35 +0,0 @@ -<!DOCTYPE html> -<html xmlns="http://www.w3.org/1999/xhtml"{{with .Site.LanguageCode}} xml:lang="{{.}}" lang="{{.}}"{{end}}> -<head> - <link href="https://gmpg.org/xfn/11" rel="profile"> - <meta http-equiv="content-type" content="text/html; charset=utf-8"> - {{ hugo.Generator }} - - <!-- Enable responsiveness on mobile devices--> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - - {{ if .IsHome -}} - <title>{{ .Site.Title }}</title> - {{- else -}} - <title>{{ .Title }} · {{ .Site.Title }}</title> - {{- end }} - <meta name="description" content="{{if .IsHome}}{{ $.Site.Params.description }}{{else}}{{.Description}}{{end}}" /> - - <!-- CSS --> - <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/print.css" media="print"> - <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/poole.css"> - <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/syntax.css"> - <link type="text/css" rel="stylesheet" href="{{ .Site.BaseURL }}css/hyde.css"> - {{ partial "head_fonts.html" . }} - - <!-- Icons --> - <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png"> - <link rel="shortcut icon" href="/favicon.png"> - - <!-- RSS etc --> - {{ range .AlternativeOutputFormats -}} - {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} - {{ end -}} - - {{ partial "hook_head_end.html" . }} -</head> diff --git a/layouts/partials/head_fonts.html b/layouts/partials/head_fonts.html deleted file mode 100644 index 4729eb2..0000000 --- a/layouts/partials/head_fonts.html +++ /dev/null @@ -1 +0,0 @@ - <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Abril+Fatface|PT+Sans:400,400i,700"> diff --git a/layouts/partials/hook_head_end.html b/layouts/partials/hook_head_end.html deleted file mode 100644 index e69de29..0000000 --- a/layouts/partials/hook_head_end.html +++ /dev/null diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 162fcad..22ecbf5 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,21 +1,44 @@ <aside class="sidebar"> - <div class="container sidebar-sticky"> + <div class="container"> <div class="sidebar-about"> - <a href="{{ .Site.BaseURL }}"><h1>{{ .Site.Title }}</h1></a> - <p class="lead"> - {{ with .Site.Params.description }} {{.}} {{ else }}An elegant open source and mobile first theme for <a href="http://hugo.spf13.com">hugo</a> made by <a href="http://twitter.com/mdo">@mdo</a>. Originally made for Jekyll.{{end}} - </p> + {{ with .Site.Params.gravatar }} + <div class="author-image"> + <img src="https://www.gravatar.com/avatar/{{md5 .}}?s=200&d=mp" class="img-circle img-headshot center" alt="Gravatar"> + </div> + {{ else }} + {{ with .Site.Params.profilePicture }} + <div class="author-image"> + <img src="{{ $.Site.BaseURL }}{{ . }}" class="img-circle img-headshot center" alt="Profile Picture"> + </div> + {{ end }} + {{ end }} + + <h1>{{ .Site.Title }}</h1> + + {{ with .Site.Params.description }} + <p class="lead">{{.}}</p> + {{end}} </div> <nav> <ul class="sidebar-nav"> - <li><a href="{{ .Site.BaseURL }}">Home</a> </li> + <li> + <a href="{{ .Site.BaseURL }}">Home</a> + </li> {{ range .Site.Menus.main -}} - <li><a href="{{.URL}}"> {{ .Name }} </a></li> + <li> + <a href="{{.URL}}"> {{ .Name }} </a> + </li> {{- end }} </ul> </nav> - <p>{{ with .Site.Params.copyright }}{{.}}{{ else }}© {{ now.Format "2006"}}. All rights reserved. {{end}}</p> + <section class="social-icons"> + {{ range $item := .Site.Params.socialIcons }} + <a href="{{ $item.url }}" rel="me" title="{{ $item.title }}"> + <i class="fab {{ $item.icon }}" aria-hidden="true"></i> + </a> + {{ end }} + </section> </div> </aside> diff --git a/layouts/partials/theme-color.html b/layouts/partials/theme-color.html new file mode 100644 index 0000000..0f624af --- /dev/null +++ b/layouts/partials/theme-color.html @@ -0,0 +1,17 @@ +{{ with $.Site.Params.themeColor }} +<style type="text/css"> + .sidebar { + background-color: {{ . }}; + } + + .read-more-link a { + border-color: {{ . }}; + } + + footer a, + .content a, + .related-posts li a:hover { + color: {{ . }}; + } +</style> +{{ end }} |
