commit 2c17bd39ea246ac2e1d8ad4b5bf6fbda550dc30e
Author: Mark Wilkerson <mark@markwilkerson.me>
Date: Sat, 8 Jun 2019 18:55:07 -0700
initial packaging
Diffstat:
14 files changed, 277 insertions(+), 0 deletions(-)
diff --git a/LICENSE b/LICENSE
@@ -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.
diff --git a/archetypes/default.md b/archetypes/default.md
@@ -0,0 +1,2 @@
++++
++++
diff --git a/archetypes/page.md b/archetypes/page.md
@@ -0,0 +1,4 @@
+---
+type: "page"
+draft: true
+---
diff --git a/archetypes/post.md b/archetypes/post.md
@@ -0,0 +1,7 @@
+---
+title: "{{ replace .Name "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+tags: []
+---
+
diff --git a/assets/sass/main.sass b/assets/sass/main.sass
@@ -0,0 +1,104 @@
+@import url("https://fonts.googleapis.com/css?family=Inconsolata|Open+Sans");
+
+$fontCodeFace: 'Inconsolata', monospace
+$fontTextFace: 'Open Sans', sans-serif
+
+// colors
+$menuLink: black
+$menuHover: blue
+
+
+body
+ font: 100% $fontTextFace
+
+pre
+ font: 100% $fontCodeFace
+ padding: 1em
+ overflow: scroll
+
+.main
+ max-width: 80%
+ margin: 0 auto
+
+header.main
+ display: flex
+ justify-content: space-between
+ border-bottom: 2px solid #000
+
+footer.main
+ margin-bottom: 1em
+ font-size: 1em
+ hr
+ border: 1px solid black
+img.rss
+ margin: 0
+ width: 1em
+ padding: 0px
+ vertical-align: middle
+
+nav.menu
+ margin: auto 0 5px 0
+ padding: 0px
+ vertical-align: bottom
+ ul
+ padding: 0px
+ margin: 0px
+ li
+ ::after
+ content: " | "
+ &:last-child
+ ::after
+ content: ""
+ ul,li
+ display: inline-block
+ list-style: none
+ a
+ text-decoration: none
+ color: $menuLink
+ &:hover
+ color: $menuHover
+
+.logo
+ margin: 1em 0 5px 0
+ padding: 0
+
+.tags
+ ul
+ padding: 0px
+ li
+ ::after
+ content: ", "
+ &:last-child
+ ::after
+ content: ""
+ ul,li
+ display: inline
+ list-style: none
+
+.h-feed
+ ul,li
+ list-style: none
+ li
+ article
+ margin-top: 1em
+
+.p-name
+ margin: 1em 0 0 0
+ a
+ color: black
+ text-decoration: none
+
+.taglist
+ ul, li
+ list-style: none
+
+figure.hero
+ max-width: 100%
+ margin: 1em 0 0 0
+ padding: 0
+ img
+ max-width: 100%
+ @media (min-width: 1024px)
+ max-width: 640px
+ figcaption
+ font-size: 0.5em
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
@@ -0,0 +1,5 @@
+{{ partial "header.html" .}}
+{{ block "content" .}}
+ This is the baseof template.
+{{ end }}
+{{ partial "footer.html" .}}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
@@ -0,0 +1,20 @@
+{{ define "content" }}
+<main class="main">
+ <ul class="h-feed">
+ {{ range where .Pages.ByDate.Reverse "Section" "post" }}
+ <li class="h-entry">
+ <h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
+ <time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
+
+ <article class="p-summary">
+ {{ .Summary }}
+ {{ if .Truncated }}
+ <p><a href="{{ .RelPermalink }}">Read Moreā¦</a></p>
+ {{ end }}
+ </article>
+ </li>
+ {{ end }}
+ </ul>
+</main>
+{{ end }}
+
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
@@ -0,0 +1,20 @@
+{{ partial "header.html" . }}
+
+<main class="main">
+ <h1>Tags</h1>
+ <ul class="taglist">
+ {{ $data := .Data }}
+ {{ range $key,$value := .Data.Terms.ByCount }}
+ <li>
+ <a href="{{ (print $data.Plural "/" ($value.Name | urlize) "/") | relURL }}">
+ {{ $value.Name }}
+ </a>
+ <strong>
+ {{ $value.Count }}
+ </strong>
+ </li>
+ {{ end }}
+ </ul>
+</main>
+
+{{ partial "footer.html" . }}
diff --git a/layouts/page/single.html b/layouts/page/single.html
@@ -0,0 +1,14 @@
+{{ define "content" }}
+ <main class="main">
+ <article class="h-entry">
+ <header>
+ <h1 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h1>
+ </header>
+
+ <div class="e-content">
+ {{ .Content }}
+ </div>
+ </article>
+ </main>
+{{ end }}
+
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
@@ -0,0 +1,9 @@
+ <footer class="main">
+ <hr>
+ <small>
+ © {{ now.Format "2006" }} {{ .Site.Params.copyright }} | <a href="/sitemap.xml">Sitemap</a>
+ </small>
+ </footer>
+ </body>
+</html>
+
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en-US">
+ <head>
+ <meta charset="utf-8">
+ <title>{{.Title}}</title>
+ {{ $options := (dict "targetPath" "style.css" "outputStyle" "compressed") }}
+ {{ $style := resources.Get "sass/main.sass" | resources.ToCSS $options }}
+ <link rel="stylesheet" type="text/css" href="{{ $style.Permalink }}">
+ <link rel="stylesheet" type="text/css" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css">
+ <link rel="icon" href="/favicon.ico">
+ {{ range .AlternativeOutputFormats -}}
+ {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
+ {{ end -}}
+
+ </head>
+ <body>
+ <header class="main">
+ <h1 class="logo"><a href="/"><img src="{{ .Site.Params.logo }}" alt="{{ .Site.Title }}"/></a></h1>
+ <nav class="menu">
+ <ul>
+ <li><a href="/about">About</a></li>
+ <li><a href="/">Blog</a></li>
+ <li><a href="/tags">Tags</a></li>
+ <li><a href="/index.xml"><img src="/images/rss.svg" alt="rss" class="rss" /></a></li>
+ </ul>
+ </nav>
+ </header>
+
diff --git a/layouts/post/single.html b/layouts/post/single.html
@@ -0,0 +1,28 @@
+{{ define "content" }}
+ <main class="main">
+ <article class="h-entry">
+ <header>
+ <h1 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h1>
+ <p>
+ Published by <a class="p-author" href="/about">{{ $.Param "author" }}</a>
+ on <time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
+ </p>
+ {{ with .Params.tags }}
+ <nav class="tags">
+ Tags:
+ <ul>
+ {{ range . }}
+ <li><a href="{{ `tags/` | absURL }}{{ . | urlize }}" rel="tag">{{ . }}</a></li>
+ {{ end }}
+ </ul>
+ </nav>
+ {{ end }}
+ </header>
+
+ <div class="e-content">
+ {{ .Content }}
+ </div>
+ </article>
+ </main>
+{{ end }}
+
diff --git a/static/images/rss.svg b/static/images/rss.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-12.832 20c-1.197 0-2.168-.969-2.168-2.165s.971-2.165 2.168-2.165 2.167.969 2.167 2.165-.97 2.165-2.167 2.165zm5.18 0c-.041-4.029-3.314-7.298-7.348-7.339v-3.207c5.814.041 10.518 4.739 10.561 10.546h-3.213zm5.441 0c-.021-7.063-5.736-12.761-12.789-12.792v-3.208c8.83.031 15.98 7.179 16 16h-3.211z"/></svg>+
\ No newline at end of file
diff --git a/theme.toml b/theme.toml
@@ -0,0 +1,14 @@
+name = "Semantic"
+license = "MIT"
+licenselink = "https://git.markhuge.com/hugo-semantic-theme/LICENSE.md"
+description = "A minimal semantically rich theme"
+homepage = "https://git.markhuge.com/hugo-semantic-theme"
+tags = [ "POSH", "basic", "blog", "clean","microformats","monochrome","minimal", "semantic" ]
+features = [ "minimal", "responsive", "monochrome" ]
+min_version = "0.41"
+
+[author]
+ name = "Mark Wilkerson"
+ homepage = "https://markhuge.com"
+
+