This commit is contained in:
Madison Scott-Clary
2019-08-11 00:49:24 -07:00
commit 91c286a9bb
23 changed files with 447 additions and 0 deletions

20
themes/ally/LICENSE Normal file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2019 YOUR_NAME_HERE
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,2 @@
+++
+++

View File

View 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>

View File

View File

View File

@ -0,0 +1,9 @@
{{ define "main" }}
<main id="main">
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
{{ range $paginator.Pages.ByWeight }}
{{ .Content }}
{{ end }}
{{ template "_internal/pagination.html" . }}
</main>
{{end}}

View File

@ -0,0 +1,5 @@
<footer>
<p>&copy; Madison Scott-Clary, 2019</p>
</footer>
</body>
</html>

View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<title>ally</title>
<link rel="stylesheet" type="text/css" href="{{ "css/main.css" | absURL }}" />
</head>

View File

@ -0,0 +1,4 @@
<body>
<header>
<h1>ally</h1>
</header>

View File

@ -0,0 +1,9 @@
{{ define "main" }}
<main id="main">
{{ $paginator := .Paginate (where .Pages ".Params.date" "!=" nil) 1 }}
{{ range $paginator.Pages.ByWeight }}
{{ .Content }}
{{ end }}
{{ template "_internal/pagination.html" . }}
</main>
{{end}}

View File

@ -0,0 +1,147 @@
@import url('https://fonts.googleapis.com/css?family=Gentium+Book+Basic|Ubuntu|Merriweather+Sans&display=swap');
/* Resets */
*,
*::before,
*::after {
font-family: inherit;
background-color: inherit;
color: inherit;
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: calc(1em + 0.33vw);
font-family: Arial, Helvetica Neue, sans-serif;
line-height: 1.5;
color: #111;
background-color: #fefefe;
}
* + * {
margin-top: 2.25rem;
}
br,
dt,
dd,
th,
td,
option,
[hidden] + *,
li + li,
body,
.main-and-footer {
margin-top: 0;
}
p + p,
blockquote + p {
margin-top: 0.75rem;
}
.priority {
margin-top: 0;
}
a {
text-decoration: none;
border-bottom: 1px solid;
}
abbr {
text-decoration: none;
cursor: help;
border-bottom: 1px dashed;
}
img {
max-width: 100%;
max-height: 50vh;
}
p img {
margin: 0.75rem 0;
}
figure p img {
margin: 0;
}
:focus:not([tabindex="-1"]),
[data-expands]:focus svg,
.patterns a:focus .text,
[for="themer"] :focus + [aria-hidden] {
outline: 4px solid #999;
}
a {
outline-offset: 2px;
}
/* Specific stuff */
body {
background-color: #fffffe;
color: #222;
font-size: 16pt;
}
header {
font-family: 'Ubuntu', monospace;
margin: 1rem;
}
h1 {
padding: 0;
margin: 0;
}
main, footer {
max-width: 960px;
margin: 0 auto;
padding: 0 1rem;
font-family: 'Gentium Book Basic', serif;
}
footer {
color: #888;
margin-top: 5rem;
font-size: 12pt;
padding-bottom: 1rem;
}
blockquote {
font-family: 'Merriweather Sans', sans-serif;
margin-top: 0.75rem;
padding: 0.5rem 1rem;
font-size: 14pt;
color: #444;
border-left: 0.5rem solid #444;
}
.verse {
white-space: pre-wrap;
}
/* pagination */
ul.pagination {
list-style-type: none;
display: block;
margin-top: 5rem;
text-align: center;
}
ul.pagination li {
display: inline-block;
border: 2px solid currentColor;
padding: 2px;
min-width: 2rem;
text-align: center;
margin-right: -7px;
}
ul.pagination li:last-of-type {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
ul.pagination li:first-of-type {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
ul.pagination .page-item.disabled a {
color: #666;
border: none;
cursor: text;
}
ul.pagination .page-item.active a {
text-decoration: none;
border: none;
cursor: text;
}

21
themes/ally/theme.toml Normal file
View File

@ -0,0 +1,21 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Ally"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = ""
homepage = "http://example.com/"
tags = []
features = []
min_version = "0.41"
[author]
name = ""
homepage = ""
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""