Skip to content

Commit 994fd98

Browse files
author
Angelo Stavrow
committed
Initial commit
1 parent 40f121e commit 994fd98

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+967
-21
lines changed

LICENSE

-21
This file was deleted.

LICENSE.md

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

archetypes/default.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
+++
2+
+++

layouts/404.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ .Site.LanguageCode }}">
3+
{{ partial "head.html" . }}
4+
<body>
5+
<div id="sitelogo">
6+
<a class="glyph" alt="Home" href="{{ .Site.BaseURL }}"><img src="{{ .Site.BaseURL }}/images/site-logo.svg" alt="Site Logo" height="64px" width="64px"></a>
7+
</div>
8+
<header>
9+
{{ partial "pagenav.html" . }}
10+
<h1 class="post-title">404</h1>
11+
</header>
12+
<section>
13+
<h2>Well, this is unexpected.</h2>
14+
<p>
15+
It appears that we've ended up somewhere where I don't know where we are.
16+
</p>
17+
<p>
18+
I'm sorry about that. Would you like to <a href="{{ .Site.Home }}">go to the home page</a>?
19+
</p>
20+
</section>
21+
{{ partial "footer.html" . }}

layouts/_default/li.html

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<article>
2+
<header>
3+
{{ if .Title }}
4+
<h2 class="list-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
5+
{{ end }}
6+
<p class="list-post-date">
7+
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
8+
{{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
9+
</time>
10+
</p>
11+
</header>
12+
<div>
13+
{{ .Summary | plainify | safeHTML }}
14+
</div>
15+
{{ if .Truncated }}
16+
<p><a class="read-more" href="{{ .Permalink }}">Read more &rarr;</a></p>
17+
{{ end }}
18+
</article>

layouts/_default/list.html

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{ partial "header.html" . }}
2+
<h2>{{ .Title }}</h2>
3+
{{ range $index, $page := (.Paginate (where .Data.Pages "Type" "post")).Pages }}
4+
{{ if ne $index 0 }}
5+
{{ end }}
6+
{{ .Render "li" }}
7+
{{ end }}
8+
{{ partial "footer.html" . }}

layouts/_default/single.html

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{{ partial "header.html" . }}
2+
{{ $baseurl := .Site.BaseURL | sanitizeurl }}
3+
<article class="h-entry">
4+
<header>
5+
<h1 class="post-title p-name">{{ .Title }}</h1>
6+
{{ if .Param "static" }}
7+
{{ else }}
8+
<p class="post-date">Posted on
9+
<time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
10+
{{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
11+
</time> by <a href="{{ .Site.Home }}" class="p-author">{{ .Site.Params.AuthorName }}</a>
12+
</p>
13+
{{ end }}
14+
</header>
15+
<section class="content e-content">
16+
{{ .Content }}
17+
</section>
18+
<footer>
19+
<a class="permalink u-url" href="{{ .Permalink }}"></a>
20+
{{ if .Params.tags }}
21+
<hr class="post-underline">
22+
<p class="post-tag">Tags for this post:
23+
{{ range .Params.tags }}
24+
<a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="post-tag">{{ . }}</a>
25+
{{ end }}
26+
</p>
27+
{{ end }}
28+
</footer>
29+
</article>
30+
{{ partial "footer.html" . }}

layouts/index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Include the head/header -->
2+
{{ partial "header.html" . }}
3+
4+
<!-- Content goes here -->
5+
{{ range $index, $page := (.Paginate (where (where .Data.Pages "Type" "post") ".Params.hidden" "!=" "true" )).Pages }}
6+
{{ if ne $index 0 }}
7+
{{ end }}
8+
{{ .Render "li" }}
9+
{{ end }}
10+
{{ partial "pagination.html" .Paginator }}
11+
12+
<!-- Include the site info and footer -->
13+
{{ partial "footer.html" . }}

layouts/partials/footer.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!-- Close the 'content' div -->
2+
</div>
3+
4+
<!-- Footer content -->
5+
<div id="footer">
6+
{{ partial "social.html" . }}
7+
<p class="copyright">
8+
&copy; {{ dateFormat "2006" now }} {{ .Site.Params.CopyrightOwner }}
9+
</p>
10+
<p class="h-card">
11+
<img class="u-photo" src="{{ .Site.BaseURL }}{{ .Site.Params.Avatar }}" />
12+
<a class="p-name u-url" href="http://angelostavrow.com" rel="me">Angelo Stavrow</a>
13+
<a class="u-email" href="mailto:[email protected]">[email protected]</a>,
14+
<span class="p-locality">Montreal</span>
15+
<span class="p-country-name">Canada</span>
16+
</p>
17+
</div>
18+
19+
<!-- Close the body/html document -->
20+
</body>
21+
</html>

layouts/partials/head.html

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<!-- Site details -->
4+
<title>{{ .Site.Title }}</title>
5+
<meta name="description" content="{{ .Site.Params.Description }}">
6+
<meta name="author" content="{{ .Site.Params.AuthorName }}">
7+
<!-- Favicon details -->
8+
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
9+
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
10+
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
11+
<link rel="manifest" href="/site.webmanifest">
12+
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
13+
<meta name="msapplication-TileColor" content="#00aba9">
14+
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
15+
<meta name="theme-color" content="#ffffff">
16+
<!-- IndieWeb identity -->
17+
{{ with .Site.Params.IndieWeb.EmailAddress }}<link rel="me" href="mailto:{{ . }}">{{ end }}
18+
{{ with .Site.Params.IndieWeb.GitHubUser }}<link rel="me" href="https://github.com/{{ . }}">{{ end }}
19+
{{ with .Site.Params.IndieWeb.TwitterUser }}<link rel="me" href="https://twitter.com/{{ . }}">{{ end }}
20+
{{ with .Site.Params.IndieWeb.MicroBlogUser }}<link rel="me" href="https://micro.blog/{{ . }}">{{ end }}
21+
<!-- IndieAuth endpoint -->
22+
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
23+
<!-- Other stuff to make the site work -->
24+
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/style.css" />
25+
<meta name="viewport" content="width=device-width, initial-scale=1">
26+
</head>

layouts/partials/header.html

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="{{ .Site.LanguageCode }}">
3+
{{ partial "head.html" . }}
4+
<body>
5+
<div id="sitelogo">
6+
<a class="glyph" alt="Home" href="{{ .Site.BaseURL }}"><img src="{{ .Site.BaseURL }}/images/site-logo.svg" alt="Site Logo" height="64px" width="64px"></a>
7+
</div>
8+
<header>
9+
{{ partial "pagenav.html" . }}
10+
{{ if not .IsPage }}
11+
<div id="site-header">
12+
<h1>{{ .Site.Title }}</h1>
13+
{{ with .Site.Params.subtitle }}
14+
<p>
15+
{{ . }}
16+
</p>
17+
{{ end }}
18+
</div>
19+
{{ end }}
20+
</header>
21+
<div id="content">

layouts/partials/pagenav.html

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<nav>
2+
<div id="page-nav">
3+
{{ if .Param "static" }}
4+
<div class="static-page-nav-spacer">&nbsp;</div>
5+
<div class="static-page-nav-item">
6+
<a alt="Home" href="{{ .Site.BaseURL }}">Home</a>
7+
</div>
8+
{{ if eq .Params.Title "About this site" }}
9+
<div class="static-page-nav-item-disabled">
10+
<p>About</p>
11+
</div>
12+
{{ else }}
13+
<div class="static-page-nav-item">
14+
<a alt="About this site" href="{{ .Site.BaseURL }}/about/">About</a>
15+
</div>
16+
{{ end }}
17+
{{ if eq .Params.Title "Now" }}
18+
<div class="static-page-nav-item-disabled">
19+
<p>Now</p>
20+
</div>
21+
{{ else }}
22+
<div class="static-page-nav-item">
23+
<a alt="What I'm doing right now" href="{{ .Site.BaseURL }}/now/">Now</a>
24+
</div>
25+
{{ end }}
26+
<div class="static-page-nav-spacer">&nbsp;</div>
27+
{{ else }}
28+
{{ if .Prev }}
29+
{{ if .Prev.Param "static" }}
30+
<div class="static-page-nav-spacer">&nbsp;</div>
31+
{{ else }}
32+
<div class="static-page-nav-item">
33+
<a alt="Newer article" href="{{ .Prev.Permalink }}">&larr; Newer</a>
34+
</div>
35+
{{ end }}
36+
{{ else }}
37+
<div class="static-page-nav-spacer">&nbsp;</div>
38+
{{ end }}
39+
<div class="static-page-nav-item">
40+
<a alt="Home" href="{{ .Site.BaseURL }}">Home</a>
41+
</div>
42+
<div class="static-page-nav-item">
43+
<a alt="About this site" href="{{ .Site.BaseURL }}/about/">About</a>
44+
</div>
45+
<div class="static-page-nav-item">
46+
<a alt="What I'm doing right now" href="{{ .Site.BaseURL }}/now/">Now</a>
47+
</div>
48+
{{ if .Next }}
49+
{{ if .Next.Param "static" }}
50+
<div class="static-page-nav-spacer">&nbsp;</div>
51+
{{ else }}
52+
<div class="static-page-nav-item">
53+
<a alt="Older article" href="{{ .Next.Permalink }}">Older &rarr;</a>
54+
</div>
55+
{{ end }}
56+
{{ else }}
57+
<div class="static-page-nav-spacer">&nbsp;</div>
58+
{{ end }}
59+
{{ end }}
60+
</div>
61+
</nav>

layouts/partials/pagination.html

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<nav>
2+
<div id="pagination">
3+
<div class="pagination-item-spacer">&nbsp;</div>
4+
{{if .HasPrev}}
5+
<div class="pagination-item">
6+
<a alt="Newer articles" href="{{ .Prev.URL }}">&larr; Newer</a>
7+
</div>
8+
{{ else }}
9+
<div class="pagination-item-spacer">&nbsp;</div>
10+
{{end}}
11+
<div class="pagination-item-spacer">
12+
Page {{ .PageNumber }} of {{ .TotalPages }}
13+
</div>
14+
{{if .HasNext}}
15+
<div class="pagination-item">
16+
<a alt="Older articles" href="{{ .Next.URL }}">Older &rarr;</a>
17+
</div>
18+
{{ else }}
19+
<div class="pagination-item-spacer">&nbsp;</div>
20+
{{end}}
21+
<div class="pagination-item-spacer">&nbsp;</div>
22+
</div>
23+
</nav>

layouts/partials/social.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<aside id="social">
2+
<div id="social-icons">
3+
<div class="icon-24x24">
4+
<a class="glyph" alt="Email me" href="mailto:{{ .Site.Params.EmailAddress }}"><img src="/icons/envelope.svg" width="24px"></a>
5+
</div>
6+
<div class="icon-24x24">
7+
<a class="glyph" alt="Flickr profile" href="https://flickr.com/people/{{ .Site.Params.FlickrUser }}"><img src="/icons/flickr.svg" width="24px"></a>
8+
</div>
9+
<div class="icon-24x24">
10+
<a class="glyph" alt="GitHub profile" href="https://github.com/{{ .Site.Params.GitHubUser }}"><img src="/icons/github.svg" width="24px"></a>
11+
</div>
12+
<div class="icon-24x24">
13+
<a class="glyph" alt="GitLab profile" href="https://gitlab.com/{{ .Site.Params.GitLabUser }}"><img src="/icons/gitlab.svg" width="24px"></a>
14+
</div>
15+
<div class="icon-24x24">
16+
<a class="glyph" alt="Glitch profile" href="https://glitch.com/@{{ .Site.Params.GlitchUser }}"><img src="/icons/glitch.svg" width="24px"></a>
17+
</div>
18+
<div class="icon-24x24">
19+
<a class="glyph" alt="Micro.Blog profile" href="https://micro.blog/{{ .Site.Params.MicroBlogUser }}"><img src="/icons/microblog.svg" width="24px"></a>
20+
</div>
21+
<div class="icon-24x24 last">
22+
<a class="glyph" alt="Twitter profile" href="https://twitter.com/{{ .Site.Params.TwitterUser }}"><img src="/icons/twitter.svg" width="24px"></a>
23+
</div>
24+
</div>
25+
</aside>

0 commit comments

Comments
 (0)