Initial commit. Been working on these theme from the ground up in my free time.
This commit is contained in:
parent
850c89eca2
commit
6b5742b1bd
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
date: {{ .Date }}
|
||||
title: "{{ dateFormat "Monday" .Date }}'s Accomplishments"
|
||||
draft: true
|
||||
---
|
||||
|
||||
Today I accomplished:
|
||||
1.
|
||||
|
||||
Next time I would like to do better on:
|
||||
1.
|
||||
|
||||
Tomorrow I would like to:
|
||||
1.
|
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
+++
|
|
@ -0,0 +1,3 @@
|
|||
{{ partial "head.html" . }}
|
||||
<p> Well. Looks like we can't find the page you were looking for. One of us (probably me) typed something wrong. If it was me, send me an email so I can fix it please.</p>
|
||||
{{ partial "footer.html" . }}
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="author" content="Dorian Wood">
|
||||
<meta name="Content-Type-Script" content="text/javascript" />
|
||||
<meta name="Content-Type-Style" content="text/css" />
|
||||
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
|
||||
<meta name="revisit-after" content="7 days" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ "css/style.css" | relURL }}">
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{- .Title }}</h1>
|
||||
{{- partial "nav.html" . }}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<section id="projects">
|
||||
{{- range first 10 .Data.Pages }}
|
||||
<a href="{{ .Permalink }}" class="button">
|
||||
<section class="project-tile">
|
||||
<a href="{{- .Permalink }}" class="button"><h2>{{ .Title }}</h2></a>
|
||||
{{ .Plain | truncate 500 | htmlUnescape | safeHTML }}
|
||||
</section>
|
||||
</a>
|
||||
{{- end }}
|
||||
</section>
|
||||
{{ end }}
|
|
@ -0,0 +1,10 @@
|
|||
{{ define "title" }}{{ .Title }}{{ end }}
|
||||
{{ define "main" }}
|
||||
<section class="postinfo">
|
||||
<span class="wordcount">{{ .WordCount }} words // {{ div .WordCount 200 }} minute read</span>
|
||||
<span class="date">Published: {{ .Date.Format "2006-01-02" }}</span>
|
||||
</section>
|
||||
<main class="main-content">
|
||||
{{ .Content }}
|
||||
</main>
|
||||
{{ end }}
|
|
@ -0,0 +1,7 @@
|
|||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.social }}
|
||||
<a class="{{if or ($currentPage.IsMenuCurrent "social" .) ($currentPage.HasMenuCurrent "social" .) }} active{{end}} button" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a><br>
|
||||
{{ end }}
|
||||
{{ end }}
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="author" content="Dorian Wood">
|
||||
<meta name="Content-Type-Script" content="text/javascript" />
|
||||
<meta name="Content-Type-Style" content="text/css" />
|
||||
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW" />
|
||||
<meta name="revisit-after" content="7 days" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ "css/style.css" | relURL }}">
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{- .Title }}</h1>
|
||||
{{- partial "nav.html" . }}
|
||||
<div id="content">
|
||||
{{- block "main" . }}{{- end }}
|
||||
</div>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
{{ define "main" }}
|
||||
<main class="main-content">
|
||||
{{ .Content }}
|
||||
</main>
|
||||
<section id="projects">
|
||||
{{- range first 10 .Data.Pages }}
|
||||
<a href="{{ .Permalink }}" class="button">
|
||||
<section class="project-tile">
|
||||
<a href="{{- .Permalink }}" class="button"><h2>{{ .Title }}</h2></a>
|
||||
</section>
|
||||
</a>
|
||||
{{- end }}
|
||||
</section>
|
||||
{{ end }}
|
|
@ -0,0 +1,10 @@
|
|||
{{ define "title" }}{{ .Title }}{{ end }}
|
||||
{{ define "main" }}
|
||||
<section class="postinfo">
|
||||
<span class="wordcount">{{ .WordCount }} words // {{ div .WordCount 200 }} minute read</span>
|
||||
<span class="date">Published: {{ .Date.Format "2006-01-02" }}</span>
|
||||
</section>
|
||||
<main class="main-content">
|
||||
{{ .Content }}
|
||||
</main>
|
||||
{{ end }}
|
|
@ -0,0 +1,6 @@
|
|||
</body>
|
||||
<footer>
|
||||
<p xmlns:dct="http://purl.org/dc/terms/" xmlns:cc="http://creativecommons.org/ns#" class="license-text">This work by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://threeraccoons.com">Dorian Wood</a> is licensed under <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0</a></p>
|
||||
</footer>
|
||||
</main>
|
||||
</html>
|
|
@ -0,0 +1,3 @@
|
|||
<body>
|
||||
{{ partial "nav.html" . }}
|
||||
<main id="main-content">
|
|
@ -0,0 +1,6 @@
|
|||
<nav id="navbar">
|
||||
{{ $currentPage := . }}
|
||||
{{ range .Site.Menus.main }}
|
||||
<a class="nav-link{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
|
@ -0,0 +1,49 @@
|
|||
{{ $full := false }}
|
||||
{{ $bigTitle := true }}
|
||||
{{ $content := .page.Content }}
|
||||
|
||||
{{ if isset . "full" }}{{ $full = .full }}{{ end }}
|
||||
{{ if isset . "bigTitle" }}{{ $bigTitle = .bigTitle }}{{ end }}
|
||||
|
||||
{{ if not $full}}
|
||||
{{ $content = $content | truncate 200}}
|
||||
{{ end }}
|
||||
|
||||
{{ if $bigTitle }}
|
||||
<div class="post-header">
|
||||
<div class="post-title">
|
||||
{{ if .page.PublishDate }}
|
||||
<h2>{{ .page.Title }}</h2>
|
||||
<a href={{ .page.Permalink }}>
|
||||
<em>{{ .page.PublishDate.Format "January 2, 2006" }}</em>
|
||||
</a>
|
||||
{{ else }}
|
||||
<a href={{ .page.Permalink }}>
|
||||
<h2>{{ .page.Title }}</h2>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="post-header">
|
||||
<div class="post-title">
|
||||
{{ if .page.PublishDate }}
|
||||
<em>{{ .page.Title }}</em><span> - </span>
|
||||
|
||||
<a href={{ .page.Permalink }}>
|
||||
<em>{{ .page.PublishDate.Format "January 2, 2006" }}</em>
|
||||
</a>
|
||||
{{ else }}
|
||||
<a href={{ .page.Permalink }}>
|
||||
<em>{{ .page.Title }}</em>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="list-content">
|
||||
{{ $content }}
|
||||
</div>
|
||||
|
||||
<hr />
|
|
@ -0,0 +1,39 @@
|
|||
{{- $pctx := . -}}
|
||||
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if or $.IsHome $.IsSection -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- end -}}
|
||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||
{{- if ge $limit 1 -}}
|
||||
{{- $pages = $pages | first $limit -}}
|
||||
{{- end -}}
|
||||
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
{{- with .OutputFormats.Get "RSS" -}}
|
||||
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
|
||||
{{- end -}}
|
||||
{{ range $pages }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ .Content | html }}</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
|
@ -0,0 +1,6 @@
|
|||
<!-- Audio Player -->
|
||||
<audio controls>
|
||||
<source src="{{.Get `file`}}.ogg" type="audio/ogg">
|
||||
<source src="{{.Get `file`}}.mp3" type="audio/mpeg">
|
||||
<p>Your browser does not support the <code>audio</code> element.</p>
|
||||
</audio>
|
|
@ -0,0 +1,2 @@
|
|||
<!-- raw html -->
|
||||
{{.Inner}}
|
|
@ -0,0 +1,163 @@
|
|||
:root {
|
||||
--base03: #002b36;
|
||||
--base02: #073642;
|
||||
--base01: #586e75;
|
||||
--base00: #657b83;
|
||||
--base0: #839496;
|
||||
--base1: #93a1a1;
|
||||
--base2: #eee8d5;
|
||||
--base3: #fdf6e3;
|
||||
--yellow: #b58900;
|
||||
--orange: #cb4b16;
|
||||
--red: #dc322f;
|
||||
--magenta: #d33682;
|
||||
--violet: #6c71c4;
|
||||
--blue: #268bd2;
|
||||
--cyan: #2aa198;
|
||||
--green: #859900;
|
||||
|
||||
--background: var(--base3);
|
||||
--color: var(--base02);
|
||||
--highlight: var(--base2);
|
||||
--accent: var(--base01);
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 1.8em;
|
||||
font-family: serif;
|
||||
background-color: var(--background);
|
||||
color: var(--color);
|
||||
width: 99vw;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
max-width: 40em;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
a, a:visited {
|
||||
color: var(--blue);
|
||||
}
|
||||
|
||||
#navbar {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
margin-top: 10px;
|
||||
padding: 10px 0px;
|
||||
border-width: 0 0 1px 0;
|
||||
border-color: var(--accent);
|
||||
border-style: solid;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
#banner {
|
||||
padding: 1em;
|
||||
grid-area: head;
|
||||
font-size: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.active {
|
||||
border-width: .1em;
|
||||
border-style: solid;
|
||||
border-color: var(--color);
|
||||
}
|
||||
|
||||
.nav-link, nav header, .nav-link:visited {
|
||||
/* margin: .5em 0em; */
|
||||
padding: .5em 2em;
|
||||
text-align: center;
|
||||
color: var(--color);
|
||||
/* border-radius: 5px; */
|
||||
}
|
||||
|
||||
code, pre {
|
||||
background-color: var(--highlight);
|
||||
font-family: monospace;
|
||||
}
|
||||
pre {
|
||||
border-width: 1px 1px 1px 5px;
|
||||
border-style: solid;
|
||||
border-color: var(--highlight) var(--highlight) var(--highlight) var(--red);
|
||||
padding: .5em;
|
||||
}
|
||||
|
||||
code > p {
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-color: var(--red);
|
||||
}
|
||||
|
||||
.date {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.postinfo {
|
||||
display: flex;
|
||||
width: 95vw;
|
||||
margin: 1em 0;
|
||||
padding: 0 0 0 0;
|
||||
}
|
||||
|
||||
h1, h2 {
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 3em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2.5em;
|
||||
text-align: right;
|
||||
border-width: 0 0 4px 0;
|
||||
border-style: dashed;
|
||||
border-color: var(--accent);
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.8em;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
h4 {
|
||||
border-width: 0 0 2px 0;
|
||||
border-style: solid;
|
||||
border-color: var(--base00);
|
||||
}
|
||||
|
||||
#projects {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.project-tile {
|
||||
max-width: 25em;
|
||||
margin: 1em;
|
||||
padding: 1em;
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
border-color: var(--accent);
|
||||
border-radius: 20px;
|
||||
/* box-shadow: 1em 1em var(--highlight); */
|
||||
color: var(--color);
|
||||
}
|
||||
|
||||
.button {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.license-text {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
audio {
|
||||
align: center;
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
# theme.toml template for a Hugo theme
|
||||
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
|
||||
|
||||
name = "Dor"
|
||||
license = "MIT"
|
||||
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
|
||||
description = ""
|
||||
homepage = "http://example.com/"
|
||||
tags = []
|
||||
features = []
|
||||
min_version = "0.41.0"
|
||||
|
||||
[author]
|
||||
name = ""
|
||||
homepage = ""
|
||||
|
||||
# If porting an existing theme
|
||||
[original]
|
||||
name = ""
|
||||
homepage = ""
|
||||
repo = ""
|
Loading…
Reference in New Issue