* Beginning of hugo driven theming
This commit is contained in:
0
themes/shockrah.xyz/layouts/partials/footer.html
Normal file
0
themes/shockrah.xyz/layouts/partials/footer.html
Normal file
8
themes/shockrah.xyz/layouts/partials/head.html
Normal file
8
themes/shockrah.xyz/layouts/partials/head.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" type="text/css" href="/css/style.css">
|
||||
{{ $title := print .Site.Title " | " .Title }}
|
||||
{{ if .IsHome }}{{ $title = .Site.Title}}{{end}}
|
||||
<title>{{ $title }}</title>
|
||||
</head>
|
||||
19
themes/shockrah.xyz/layouts/partials/header.html
Normal file
19
themes/shockrah.xyz/layouts/partials/header.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<div id="menu">
|
||||
<a class="pure-menu-heading" href="/">Home</a>
|
||||
<div class="pure-menu">
|
||||
<ul class="pure-menu-list">
|
||||
<li class="pure-menu-item">
|
||||
<a class="pure-menu-link" href="/about">About</a>
|
||||
</li>
|
||||
<li class="pure-menu-item">
|
||||
<a class="pure-menu-link" href="/links">Links</a>
|
||||
</li>
|
||||
<li class="pure-menu-item">
|
||||
<a class="pure-menu-link" href="/notes-ramblings">Notes</a>
|
||||
</li>
|
||||
<li class="pure-menu-item">
|
||||
<a class="pure-menu-link" href="/stream">Stream</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
10
themes/shockrah.xyz/layouts/partials/metadata.html
Normal file
10
themes/shockrah.xyz/layouts/partials/metadata.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ $dateTime := .PublishDate.Format "2017-01-01" }}
|
||||
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
|
||||
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
|
||||
{{ with .Params.tags }}
|
||||
{{ range . }}
|
||||
{{ $href := print (absURL "tags/") (urlize .) }}
|
||||
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user