Mass rename/move to get rid of Haskell stuff

This commit is contained in:
Chris Hodapp
2020-04-11 22:25:33 -04:00
parent 9bd5a8ff13
commit 0aabd0267d
412 changed files with 36 additions and 10590 deletions

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{ partial "head.html" . }}
<body>
<div id="sitelogo">
<a class="glyph" alt="Home" href="{{ .Site.BaseURL }}"><img src={{ "images/site-logo.svg" | absURL }} alt="Site Logo" height="64px" width="64px"></a>
</div>
<header>
{{ partial "pagenav.html" . }}
<h1 class="post-title">404</h1>
</header>
<div id="content">
<section>
<h2>Whoops.</h2>
<p>
The page you were looking for doesn't exist. Would you like to <a href="{{ .Site.BaseURL }}">go to the home page</a>?
</p>
</section>
</div>
{{ partial "footer.html" . }}

View File

@@ -0,0 +1,18 @@
<article>
<header>
{{ if .Title }}
<h2 class="list-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
{{ end }}
<p class="list-post-date">
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
{{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
</time>
</p>
</header>
<div>
{{ .Summary | plainify | safeHTML }}
</div>
{{ if .Truncated }}
<p><a class="read-more" href="{{ .Permalink }}">Read more &rarr;</a></p>
{{ end }}
</article>

View File

@@ -0,0 +1,10 @@
{{ partial "header.html" . }}
<h2>{{ .Title }}</h2>
<div id="content">
{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections)).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
{{ end }}
</div>
{{ partial "footer.html" . }}

View File

@@ -0,0 +1,43 @@
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseURL | sanitizeurl }}
{{ $author := .Site.Params.Author }}
{{ if .Params.Author }}
{{ $author = .Params.Author }}
{{ end }}
<div id="content">
<article class="h-entry">
<header>
<h1 class="post-title p-name">{{ .Title }}</h1>
{{ if not .Params.Menu }}
<p class="post-date">Posted on
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
{{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
</time> {{ if $author }} by <a href="{{ .Site.BaseURL }}" class="p-author h-card" rel="author">{{ $author }}</a>{{ end }}
</p>
{{ end }}
{{ if .Params.categories }}
<p class="post-tag">Category:
{{ range .Params.categories }}
<a href="{{ $baseurl }}/categories/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a>
{{ end }}
</p>
<hr class="post-underline">
{{ end }}
</header>
<section class="content e-content">
{{ .Content }}
</section>
<footer>
<a class="permalink u-url" href="{{ .Permalink }}">{{ .Site.Params.PermalinkText }}</a>
{{ if .Params.tags }}
<hr class="post-underline">
<p class="post-tag">Tags for this post:
{{ range .Params.tags }}
<a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="post-tag p-category">{{ . }}</a>
{{ end }}
</p>
{{ end }}
</footer>
</article>
</div>
{{ partial "footer.html" . }}

View File

@@ -0,0 +1,12 @@
{{ partial "header.html" . }}
<h2>
<span class="list-heading-type">{{ .Section }}:</span>
<span class="list-heading-tag">{{ .Title }}</span>
</h2>
<div id="content">
{{ range.Pages }}
{{ .Render "li" }}
{{ end }}
</div>
{{ partial "footer.html" . }}

View File

@@ -0,0 +1,15 @@
<!-- Include the head/header -->
{{ partial "header.html" . }}
<!-- Content goes here -->
<div id="content">
{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
{{ end }}
{{ partial "pagination.html" .Paginator }}
</div>
<!-- Include the site info and footer -->
{{ partial "footer.html" . }}

View File

@@ -0,0 +1,26 @@
<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 .Site.RegularPages }}
<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>

View File

@@ -0,0 +1,49 @@
<!-- Footer content -->
{{ if .Site.Params.ShowBio }}
<div class="h-card">
<img class="u-photo" src="{{ .Site.Params.Avatar | absURL }}" />
<div class="card-content">
<h2 class="card-name"><a class="p-name u-url" href="{{ .Site.BaseURL }}" rel="me">{{ .Site.Params.Author }}</a></h2>
<p class="card-subhead">
<span class="p-locality">{{ .Site.Params.IndieWeb.City }}</span>,
<span class="p-country-name">{{ .Site.Params.IndieWeb.Country }}</span><br />
<a class="u-email" href="mailto:{{ .Site.Params.IndieWeb.EmailAddress }}">Email me</a>
</p>
</div>
<p class="p-note">{{ .Site.Params.Biography }}</p>
</div>
{{ end }}
<div id="footer">
{{ if or (.NextPage) (.PrevPage) }}
<nav id="article-skip">
<div class="next">
{{ if and (.NextPage) (not .Params.Menu) }}
<a alt="Newer article" href="{{ .NextPage.Permalink }}">&larr; Newer</a>
{{ else }}
<p>&nbsp;</p>
{{ end }}
</div>
<div class="top">
<a alt="Top of page" href="#">Top</a>
</div>
<div class="prev">
{{ if and (.PrevPage) (not .Params.Menu) }}
<a alt="Older article" href="{{ .PrevPage.Permalink }}">Older &rarr;</a>
{{ else }}
<p>&nbsp;</p>
{{ end }}
</div>
</nav>
{{ end }}
{{ partial "social.html" . }}
{{ with .Site.Copyright }}
<p class="copyright">
{{ . }}
</p>
{{ end }}
</div>
{{ partial "mathjax_support.html" . }}
<!-- Close the body/html document -->
</body>
</html>

View File

@@ -0,0 +1,36 @@
<head>
<meta charset="utf-8">
<!-- Site details -->
<title>{{ .Title }} | {{ .Site.Title }}</title>
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<meta name="author" content="{{ .Site.Params.AuthorName }}">
<!-- Favicon details -->
<link rel="apple-touch-icon" sizes="180x180" href={{ "apple-touch-icon.png" | absURL }}>
<link rel="icon" type="image/png" sizes="32x32" href={{ "favicon-32x32.png" | absURL }}>
<link rel="icon" type="image/png" sizes="16x16" href={{ "favicon-16x16.png" | absURL }}>
<link rel="manifest" href={{ "site.webmanifest" | absURL }}>
<link rel="mask-icon" href={{ "safari-pinned-tab.svg" | absURL }} color="#00416a">
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="theme-color" content="#ffffff">
<!-- IndieWeb identity -->
{{ with .Site.Params.IndieWeb.EmailAddress }}<link rel="me" href="mailto:{{ . }}">{{ end }}
{{ with .Site.Params.IndieWeb.GitHubUser }}<link rel="me" href="https://github.com/{{ . }}">{{ end }}
{{ with .Site.Params.IndieWeb.TwitterUser }}<link rel="me" href="https://twitter.com/{{ . }}">{{ end }}
{{ with .Site.Params.IndieWeb.MicroBlogUser }}<link rel="me" href="https://micro.blog/{{ . }}">{{ end }}
<!-- IndieWeb endpoints -->
<link rel="authorization_endpoint" href={{ .Site.Params.endpoints.Auth | default "https://indieauth.com/auth" }} />
<link rel="token_endpoint" href={{ .Site.Params.endpoints.Token | default "https://tokens.indieauth.com/token" }} />
{{ with .Site.Params.endpoints.Micropub }}
<link rel="micropub" href="{{ . }}" />{{ end }}
{{ with .Site.Params.endpoints.Microsub }}
<link rel="microsub" href="{{ . }}" />{{ end }}
{{ with .Site.Params.endpoints.Webmention}}
<link rel="webmention" href="{{ . }}" />{{ end }}
<!-- Other stuff to make the site work -->
<link rel="stylesheet" href={{ "css/fonts.css" | absURL }} />
<link rel="stylesheet" href={{ "css/style.css" | absURL }} />
{{ if (fileExists "static/css/custom.css") -}}
<link rel="stylesheet" href={{ "css/custom.css" | absURL }} />
{{- end }}
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{ partial "head.html" . }}
<body>
<div id="sitelogo">
<a class="glyph" alt="Home" href="{{ .Site.BaseURL }}"><img src={{ "images/site-logo.svg" | absURL }} alt="Site Logo" height="64px" width="64px"></a>
</div>
<header>
{{ partial "pagenav.html" . }}
{{ if not .IsPage }}
<div id="site-header">
<h1>{{ .Site.Title }}</h1>
{{ with .Site.Params.subtitle }}
<p>
{{ . }}
</p>
{{ end }}
</div>
{{ end }}
</header>

View File

@@ -0,0 +1,29 @@
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
displayMath: [['$$','$$'], ['\[','\]']],
processEscapes: true,
processEnvironments: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
TeX: { equationNumbers: { autoNumber: "AMS" },
extensions: ["AMSmath.js", "AMSsymbols.js"] }
}
});
</script>
<!-- script type="text/x-mathjax-config">
MathJax.Hub.Queue(function() {
// Fix <code> tags after MathJax finishes running. This is a
// hack to overcome a shortcoming of Markdown. Discussion at
// https://github.com/mojombo/jekyll/issues/199
var all = MathJax.Hub.getAllJax(), i;
for(i = 0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script -->

View File

@@ -0,0 +1,16 @@
<nav>
{{ $currentPage := . }}
<div id="page-nav">
<div class="page-nav-item">
<a href="{{ .Site.BaseURL }}">Home</a>
</div>
{{ range .Site.Menus.main }}
<div class="page-nav-item">
<a href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</div>
{{ end }}
</div>
</nav>

View File

@@ -0,0 +1,23 @@
<nav>
<div id="pagination">
<div class="pagination-item-spacer">&nbsp;</div>
{{if .HasPrev}}
<div class="pagination-item">
<a alt="Newer articles" href="{{ .Prev.URL }}">&larr; Newer</a>
</div>
{{ else }}
<div class="pagination-item-spacer">&nbsp;</div>
{{end}}
<div class="pagination-item-spacer">
Page {{ .PageNumber }} of {{ .TotalPages }}
</div>
{{if .HasNext}}
<div class="pagination-item">
<a alt="Older articles" href="{{ .Next.URL }}">Older &rarr;</a>
</div>
{{ else }}
<div class="pagination-item-spacer">&nbsp;</div>
{{end}}
<div class="pagination-item-spacer">&nbsp;</div>
</div>
</nav>

View File

@@ -0,0 +1,74 @@
<aside id="social">
<div id="social-icons">
{{ if isset .Site.Params "emailaddress" }}
<div class="icon-24x24">
<a class="glyph" alt="Email me" href="mailto:{{ .Site.Params.EmailAddress }}"><img src={{ "icons/envelope.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "facebookuser" }}
<div class="icon-24x24">
<a class="glyph" alt="Facebook profile" href="{{ .Site.Params.FacebookUser }}"><img src={{ "icons/facebook.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "flickruser" }}
<div class="icon-24x24">
<a class="glyph" alt="Flickr profile" href="https://flickr.com/people/{{ .Site.Params.FlickrUser }}"><img src={{ "icons/flickr.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "githubuser" }}
<div class="icon-24x24">
<a class="glyph" alt="GitHub profile" href="https://github.com/{{ .Site.Params.GitHubUser }}"><img src={{ "icons/github.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "gitlabuser" }}
<div class="icon-24x24">
<a class="glyph" alt="GitLab profile" href="https://gitlab.com/{{ .Site.Params.GitLabUser }}"><img src={{ "icons/gitlab.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "glitchuser" }}
<div class="icon-24x24">
<a class="glyph" alt="Glitch profile" href="https://glitch.com/@{{ .Site.Params.GlitchUser }}"><img src={{ "icons/glitch.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "keybaseuser" }}
<div class="icon-24x24">
<a class="glyph" alt="Keybase profile" href="https://keybase.io/{{ .Site.Params.KeybaseUser }}"><img src={{ "icons/keybase.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "linkedinuser" }}
<div class="icon-24x24">
<a class="glyph" alt="LinkedIn profile" href="https://www.linkedin.com/in/{{ .Site.Params.LinkedInUser }}"><img src={{ "icons/linkedin.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "mediumuser" }}
<div class="icon-24x24">
<a class="glyph" alt="Medium profile" href="https://medium.com/{{ .Site.Params.MediumUser }}"><img src={{ "icons/medium.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "microbloguser" }}
<div class="icon-24x24">
<a class="glyph" alt="Micro.Blog profile" href="https://micro.blog/{{ .Site.Params.MicroBlogUser }}"><img src={{ "icons/microblog.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "reddituser" }}
<div class="icon-24x24">
<a class="glyph" alt="Reddit profile" href="https://www.reddit.com/user/{{ .Site.Params.RedditUser }}"><img src={{ "icons/reddit-alien.svg" | absURL }} height="24px" width="24px" /></a>
</div>
{{ end }}
{{ if isset .Site.Params "stackoverflowuser" }}
<div class="icon-24x24">
<a class="glyph" alt="Stack Overflow profile" href="https://stackoverflow.com/users/{{ .Site.Params.StackOverflowUser }}"><img src={{ "icons/stack-overflow.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "tumblruser" }}
<div class="icon-24x24">
<a class="glyph" alt="Tumblr profile" href="https://{{ .Site.Params.TumblrUser }}.tumblr.com/"><img src={{ "icons/tumblr.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
{{ if isset .Site.Params "twitteruser" }}
<div class="icon-24x24">
<a class="glyph" alt="Twitter profile" href="https://twitter.com/{{ .Site.Params.TwitterUser }}"><img src={{ "icons/twitter.svg" | absURL }} height="24px" width="24px"></a>
</div>
{{ end }}
</div>
</aside>