* Beginning of hugo driven theming
This commit is contained in:
0
themes/shockrah.xyz/layouts/404.html
Normal file
0
themes/shockrah.xyz/layouts/404.html
Normal file
11
themes/shockrah.xyz/layouts/_default/baseof.html
Normal file
11
themes/shockrah.xyz/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
||||
12
themes/shockrah.xyz/layouts/_default/list.html
Normal file
12
themes/shockrah.xyz/layouts/_default/list.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ range .Pages.ByPublishDate.Reverse }}
|
||||
<p>
|
||||
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
|
||||
{{ partial "metadata.html" }}
|
||||
<a class="summary" href="{{ .RelPermalink }}">
|
||||
<p>{{ .Summary }}</p>
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
6
themes/shockrah.xyz/layouts/_default/single.html
Normal file
6
themes/shockrah.xyz/layouts/_default/single.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ partial "metadata.html" }}
|
||||
<br><br>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
13
themes/shockrah.xyz/layouts/index.html
Normal file
13
themes/shockrah.xyz/layouts/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<div id="main">
|
||||
<div id="content">
|
||||
<!-- This is where we grab all the posts with their heaers and shit -->
|
||||
<!-- Title | date | description is all we want from each post -->
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
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