ally
This commit is contained in:
20
themes/ally/LICENSE
Normal file
20
themes/ally/LICENSE
Normal 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.
|
||||
2
themes/ally/archetypes/default.md
Normal file
2
themes/ally/archetypes/default.md
Normal file
@ -0,0 +1,2 @@
|
||||
+++
|
||||
+++
|
||||
0
themes/ally/layouts/404.html
Normal file
0
themes/ally/layouts/404.html
Normal file
11
themes/ally/layouts/_default/baseof.html
Normal file
11
themes/ally/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>
|
||||
0
themes/ally/layouts/_default/list.html
Normal file
0
themes/ally/layouts/_default/list.html
Normal file
0
themes/ally/layouts/_default/single.html
Normal file
0
themes/ally/layouts/_default/single.html
Normal file
9
themes/ally/layouts/index.html
Normal file
9
themes/ally/layouts/index.html
Normal 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}}
|
||||
5
themes/ally/layouts/partials/footer.html
Normal file
5
themes/ally/layouts/partials/footer.html
Normal file
@ -0,0 +1,5 @@
|
||||
<footer>
|
||||
<p>© Madison Scott-Clary, 2019</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
6
themes/ally/layouts/partials/head.html
Normal file
6
themes/ally/layouts/partials/head.html
Normal file
@ -0,0 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>ally</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ "css/main.css" | absURL }}" />
|
||||
</head>
|
||||
4
themes/ally/layouts/partials/header.html
Normal file
4
themes/ally/layouts/partials/header.html
Normal file
@ -0,0 +1,4 @@
|
||||
<body>
|
||||
<header>
|
||||
<h1>ally</h1>
|
||||
</header>
|
||||
9
themes/ally/layouts/serial/list.html
Normal file
9
themes/ally/layouts/serial/list.html
Normal 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}}
|
||||
147
themes/ally/static/css/main.css
Normal file
147
themes/ally/static/css/main.css
Normal 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
21
themes/ally/theme.toml
Normal 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 = ""
|
||||
Reference in New Issue
Block a user