Use base16 theme with initial modifications

- set footer definitively at bottom and max width
- removed nav. bar
- changed title to name
- cleared homepage
- set Hack font
This commit is contained in:
2019-01-31 03:43:41 -05:00
commit abe4976779
17 changed files with 748 additions and 0 deletions

16
layouts/404.html Normal file
View File

@@ -0,0 +1,16 @@
{{ partial "header.html" . }}
<main role="main" class="page-not-found">
<h1>
<span class="base05">[</span><span class="base08">4</span><span class="base09">0</span><span class="base0a">4</span><span class="base05">]</span>
<span class="base05"># _</span>
</h1>
<h2>
not found
</h2>
</main>
{{ partial "footer.html" . }}

View File

@@ -0,0 +1,8 @@
{{ partial "header.html" . }}
<main role="main" class="article-list">
<h1 class="list-title">{{ .Title }}</h1>
{{ range .Data.Pages }}
{{ partial "article-list-item.html" . }}
{{ end }}
</main>
{{ partial "footer.html" . }}

View File

@@ -0,0 +1,7 @@
{{ partial "header.html" . }}
<main role="main" class="article">
{{ partial "article.html" . }}
</main>
{{ partial "footer.html" . }}

5
layouts/index.html Normal file
View File

@@ -0,0 +1,5 @@
{{ partial "header.html" . }}
{{ partial "homepage.html" . }}
{{ partial "footer.html" . }}

View File

@@ -0,0 +1 @@
<h1 class="headline">About</h1>

View File

@@ -0,0 +1,12 @@
<article class="list-item" itemscope itemtype="http://schema.org/Blog">
<h2 class="headline" itemprop="headline"><a href="{{ .RelPermalink }}">{{ .Title }}{{ if .Draft }} (Draft){{ end }}</a></h2>
<div class="meta">
{{ if not .Date.IsZero }}
<span class="key">published on</span>
<span class="val"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
{{ end }}
</div>
<section class="summary">
{{ .Summary }} {{ if .Truncated }} <a href="{{ .RelPermalink }}">Read More...</a>{{ end }}
</section>
</article>

View File

@@ -0,0 +1,30 @@
{{ $page := .Page }}
<article class="single" itemscope itemtype="http://schema.org/BlogPosting">
<div class="meta">
{{ if not .Page.Date.IsZero }}
<span class="key">published on</span>
<span class="val"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
{{ end }}
{{ with .Params.categories }}
<span class="key">{{ if $page.Date.IsZero }}published {{ end }}in</span>
<span class="val">
{{ range . }}
<a href="{{ . | printf "categories/%s" | relURL }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
{{ with .Params.tags }}
<br>
<span class="key">tags:</span>
<span class="val">
{{ range . }}
<a href="{{ . | printf "tags/%s" | relURL }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
</div>
<h1 class="headline" itemprop="headline">{{ .Title }}</h1>
<section class="body" itemprop="articleBody">
{{ .Content }}
</section>
</article>

View File

@@ -0,0 +1,17 @@
</div>
<footer>
<div class="container">
<!-- <span class="copyright">&copy; {{ .Site.LastChange.Year }} {{ .Site.Title }} - <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a></span> -->
<span class="copyright">
&copy; {{ now.Year }} {{ .Site.Title }} · <a rel="license"
href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a> ·
<a href="/credits">Credits</a>
</span>
</div>
</footer>
</body>
</html>

View File

@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
<head>
<meta charset="utf-8">
<meta name="description" content="{{ if eq .Description "" }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}">
{{- with $.Param "keywords" }}
<meta name="keywords" content="{{ delimit . "," }}">
{{- end }}
{{- with $.Param "author" }}
<meta name="author" content="{{ . }}">
{{- end }}
{{ .Hugo.Generator }}
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700" type="text/css"> -->
<link rel='stylesheet' href='//cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/hack-subset.css'>
<!-- <link rel="stylesheet" href="https://meyerweb.com/eric/tools/css/reset/reset.css" type="text/css" media="all" /> -->
<link rel="stylesheet" href="{{ "css/style.css" | relURL }}" type="text/css">
<link rel="alternate" href="{{ "index.xml" | relURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title>
</head>
<body>
<!-- <header>
<div class="container clearfix">
<a class="path" href="{{ .Site.BaseURL }}">[{{ .Site.Title }}]</a>
<span class="caret"># _</span>
<div class="right">
{{ range $i, $page := (where .Site.Pages "Section" "pages") }}
{{ if not (eq $i 0) }}|{{ end }}
<a class="path" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a>
{{ end }}
</div>
</div>
</header> -->
<div class="container">

View File

@@ -0,0 +1,23 @@
{{ $baseurl := .Site.BaseURL }}
<h1 class="site-title">
<!-- <span class="base05">[</span><span class="base08">K</span><span
class="base09">e</span><span class="base0a">v</span><span
class="base0b">i</span><span class="base0c">n</span><span
class="base05">]</span> <span class="base05"># _</span> -->
<span class="base05">[</span><span class="base08">K</span><span
class="base0f">e</span><span class="base09">v</span><span
class="base0a">i</span><span class="base0b">n </span><span
class="base0c">M</span><span class="base0d">o</span><span
class="base0e">k</span><span
class="base05">]</span> <span class="base05"># _</span>
<!-- <span class="base0d">6</span> -->
</h1>
<div class="hero-logo">
<img src="{{ "img/base16-eighties.svg" | relURL }}">
</div>
<div style="text-align: center;">
<!-- Add your own "<code>layouts/partials/hero.html</code>" to replace this text. -->
Live, love and Linux.
</div>

View File

@@ -0,0 +1,46 @@
{{ $baseurl := .Site.BaseURL }}
<main role="main" class="homepage">
{{ partial "hero.html" . }}
<!-- {{ partial "about.html" . }} -->
<!-- <h1 class="headline">Recent Posts</h1>
<div class="article-list">
{{ range first 3 (where .Data.Pages "Section" "post") }}
{{ partial "article-list-item.html" . }}
{{ end }}
</div> -->
{{ with .Site.Taxonomies.categories }}
<h1 class="headline">Categories</h1>
<section class="categories">
{{ range $name, $value := . }}
<h2 class="category">
<a href="{{ $baseurl }}categories/{{ $name | urlize }}">{{ title $name }}</a>
<small>({{ .Count }})</small>
</h2>
{{ end }}
</section>
{{ end }}
{{ with .Site.Taxonomies.tags }}
<h1 class="headline">Tags</h1>
<section class="tags">
{{ range $name, $value := . }}
<span class="tag">
<a href="{{ $baseurl }}tags/{{ $name | urlize }}">{{ $name }}</a>
<small>({{ .Count }})</small>
</span>
{{ end }}
</section>
{{ end }}
</main>