Move to submodule

This commit is contained in:
Madison Scott-Clary
2022-02-04 22:03:26 -08:00
parent 7b0849f40a
commit 0cc020016c
64 changed files with 64 additions and 389 deletions

View File

@ -1,20 +0,0 @@
The MIT License (MIT)
Copyright (c) 2021 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

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

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -1,12 +0,0 @@
{{ define "main" }}
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
{{ $content := .Content }}
{{ range $paginator.Pages.ByWeight }}
<main id="main"{{ if (isset .Params "fit" )}} class="fit"{{ end }}>
asdf
{{ $content }}
{{ .Content }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{end}}

View File

@ -1,6 +0,0 @@
{{ define "main" }}
<main id="main">
<h1>{{ .Title }}</h1>
{{ .Content }}
</main>
{{ end }}

View File

@ -1,5 +0,0 @@
{{ define "main" }}
<main id="main" class="title">
{{ .Content }}
</main>
{{ end }}

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -1,11 +0,0 @@
{{ define "main" }}
<main id="main">
<h2>Limerent Object</h2>
{{ $paginator := .Paginate (.Pages) 1 }}
{{ partial "pagination.html" . }}
{{ range $paginator.Pages }}
{{ .Content }}
{{end}}
{{ partial "pagination.html" . }}
</main>
{{end}}

View File

@ -1,6 +0,0 @@
{{ define "main" }}
<main id="main">
<h2>{{ .Title }}</h2>
{{ .Content }}
</main>
{{ end }}

View File

@ -1,3 +0,0 @@
<footer>
<p>&copy; <a href="{{ .Site.Params.home }}">{{ .Site.Params.author }}</a> {{ .Site.Params.copyright }}</p>
</footer>

View File

@ -1,31 +0,0 @@
<head>
<title>{{ if .Title }}{{ .Title }} | {{ end }}A Wildness of the Heart by Madison Scott-Clary</title>
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<meta name="viewport" content="width=device-width" />
<!-- OpenGraph metadata -->
<meta property="og:title" content="{{ if .Params.title }}{{.Params.title | plainify }} | {{end}}A Wildness of the Heart" />
<meta property="og:site_name" content="A Wildness of the Heart | Madison Scott-Clary" />
<meta property="og:type" content="website" />
<meta property="og:image" content="{{ "/square.jpg" | absURL }}" />
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:description" content="A Wildness of the Heart: Limerent Object and Other Stories by Madison Scott-Clary" />
<!-- Twitter Card metadata -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@makyo_writes" />
<meta name="twitter:title" content="{{ if .Params.title }}{{.Params.title | plainify }} | {{end}}A Wildness of the Heart" />
<meta name="twitter:description" content="A Wildness of the Heart: Limerent Object and Other Stories by Madison Scott-Clary" />
<meta name="twitter:image" content="{{ "/square.jpg" | absURL }}" />
<!-- JSON-LD metadata -->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"name": "The Writing of Madison Scott-Clary",
"headline": "{{ if .Params.title }}{{.Params.title | plainify }} | {{end}}A Wildness of the Heart",
"description": "A Wildness of the Heart: Limerent Object and Other Stories by Madison Scott-Clary",
"url": "{{ .Permalink }}"
}
</script>
</head>

View File

@ -1,3 +0,0 @@
<header>
<h1><a href="/">{{ .Site.Title }}<small>Limerent Object and other stories</small></a></h1>
</header>

View File

@ -1,26 +0,0 @@
{{ $paginator := $.Paginator }}
{{ if gt $paginator.TotalPages 1 }}
<nav class="paginator" aria-label="page">
<ul class="pagination pagination-sm">
{{ if $paginator.HasPrev }}
<li class="page-item{{ if not $paginator.HasPrev }} disabled{{ end }}">
<a class="page-link"{{ if $paginator.HasPrev }} href="{{ $paginator.Prev.URL }}"{{ end }}><svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 20 0 l -10 8 l 10 8" /><circle cx="19" cy="8" r="2" stroke="none" fill="currentColor" /></svg></a>
</li>
{{ end}}
{{ if lt $paginator.TotalPages 10 }}
{{ range $paginator.Pagers }}
<li class="page-item{{ if eq . $paginator}} active{{ end }}">
<a class="page-link" href="{{ .URL }}">{{ .PageNumber }}{{ if eq . $paginator}}<span class="sr-only"></span>{{ end }}</a>
</li>
{{ end }}
{{ else }}
<li class="page-item too-many">Entry {{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</li>
{{ end }}
{{ if $paginator.HasNext }}
<li class="page-item{{ if not $paginator.HasNext }} disabled{{ end }}">
<a class="page-link"{{ if $paginator.HasNext }} href="{{ $paginator.Next.URL }}"{{ end }}><svg width="20" height="16"><path fill="none" stroke="currentColor" stroke-width="3" d="M 0 0 l 10 8 l -10 8" /><circle cx="1" cy="8" r="2" stroke="none" fill="currentColor" /></svg></a>
</li>
{{ end }}
</ul>
</nav>
{{ end }}

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -1,12 +0,0 @@
{{ define "main" }}
{{ $paginator := .Paginate (where .Pages.ByPublishDate.Reverse ".Params.date" "!=" nil) 1 }}
{{ $content := .Content }}
{{ range $paginator.Pages.ByWeight }}
<main id="main"{{ if (isset .Params "fit" )}} class="fit"{{ end }}>
asdf
{{ $content }}
{{ .Content }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{end}}

View File

@ -1,6 +0,0 @@
{{ define "main" }}
<main id="main">
<h2>{{ .Title }}</h2>
{{ .Content }}
</main>
{{ end }}

View File

@ -1,171 +0,0 @@
@import url("https://fonts.googleapis.com/css?family=Gentium+Book+Basic");
@font-face {
font-family: "Tom's New Roman";
font-weight: 400;
font-style: normal;
src: url("/tomnr.woff") format("woff");
}
header, footer {
margin: 0 auto;
max-width: 640px;
font-family: "Tom's New Roman", serif;
font-size: 18pt;
text-align: center;
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-bottom:1px solid rgba(0, 0, 0, 0.1);
}
header {
border-top: none;
}
footer {
border-bottom: none;
}
header a, header a:visited, header a:active, header a:hover {
color: #222;
text-decoration: none;
}
h1 small {
display: block;
font-size: 50%;
}
.title ul {
list-style-type: none;
text-align: center;
margin: 0;
padding: 0;
}
.title ul li {
margin: 1rem 0;
padding: 0;
}
.title ul li p:first-of-type {
font-family: "Tom's New Roman", serif;
font-size: 20pt;
text-align: center;
}
.title ul li p, {
text-indent: 0;
text-align: justify;
}
.title blockquote:first-of-type {
font-style: italic;
}
.order {
width: 100%;
text-align: center;
margin: 0 auto;
}
.order p {
text-indent: 0;
}
.order a {
display: inline-block;
margin: 0.5rem;
}
ul.pagination {
margin: 1rem 0;
padding: 0;
list-style-type: none;
font-family: "Tom's New Roman", serif;
text-align: center;
}
li.page-item {
display: inline-block;
margin: 0;
padding: 0;
}
li.page-item a {
padding: 0 0.5rem;
margin: 0;
}
hr {
border: none;
width: 3em;
margin: 1em auto;
}
hr::before {
content: '§';
display: block;
text-align: center;
}
main {
margin: 0 auto;
max-width: 640px;
font-family: "Gentium Book Basic", serif;
font-size: 18pt;
text-align: justify;
color: #222;
line-height: 1.5;
}
main p {
margin: 0;
text-indent: 2em;
hyphens: auto;
-webkit-hyphens: auto;
}
main p:first-of-type {
text-indent: 0;
}
main blockquote {
margin: 1rem 0;
padding: 0 0 0 2rem;
border-left: 3px solid #ddd;
}
main blockquote p {
text-indent: 0;
}
main blockquote p + p {
margin-top: 1rem;
}
main blockquote + p {
text-indent: 0;
}
.footnotes {
font-size: 80%;
}
.footnotes ol {
padding-left: 1.5rem;
}
.footnotes hr::before {
content: '';
}
.footnotes hr {
margin-left: 0;
width: 25%;
border-top: 1px solid #222;
}
.footnotes p {
text-indent: 0;
}
a {
color: #262;
}
a:visited {
color: #266;
}
.title img {
max-width: 100%;
margin: 0 auto;
display: block;
}
img {
max-width: 100%;
}
h1, h2 {
font-family: "Tom's New Roman", sans-serif;
text-align: center;
}
@media only screen and (max-width: 640px) {
body {
padding: 0;
margin: 0;
}
main, header, footer {
width: 100%;
padding: 0 2rem;
}
.footnotes hr {
width: 50%;
}
}

Binary file not shown.

View File

@ -1,21 +0,0 @@
# theme.toml template for a Hugo theme
# See https://github.com/gohugoio/hugoThemes#themetoml for an example
name = "Maddybook"
license = "MIT"
licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
description = "A theme for posting entire books"
homepage = "http://example.com/"
tags = []
features = []
min_version = "0.41.0"
[author]
name = "Madison Scott-Clary"
homepage = "https://makyo.ink"
# If porting an existing theme
[original]
name = ""
homepage = ""
repo = ""