Compare commits

...

5 Commits

Author SHA1 Message Date
steven c5aefd9d0b feat(theme): base layout created for 'mineral' 2021-09-15 22:00:37 -04:00
steven d30868895c fix(conf): lowercase about page title and copyright line 2021-09-15 22:00:10 -04:00
steven c34a9d5276 feat(page): about
link to root site and contact email address
2021-09-15 21:52:08 -04:00
steven da9d05673e fix(theme): license
changed email to name
2021-09-15 21:20:12 -04:00
steven a3419c4690 fix(conf): update toml conf for blog 2021-09-15 21:19:47 -04:00
13 changed files with 233 additions and 13 deletions

View File

@ -1,3 +1,23 @@
baseURL = 'http://example.org/'
baseURL = 'https://blog.mineral.town/'
languageCode = 'en-us'
title = 'My New Hugo Site'
title = 'mineral town blog'
copyright = "steven ye"
theme = 'mineral'
paginate = 5
DefaultContentLanguage = "en"
enableInlineShortcodes = true
footnoteReturnLinkContents = "^"
[menu]
[[menu.main]]
identifier = "about"
name = "about"
url = "/about/"
weight = 10
[taxonomies]
category = "categories"
tag = "tags"
[params]
description = "a blog for friends of mineral town"

View File

@ -0,0 +1,9 @@
---
title: "about"
draft: false
---
this is a blog for
[friends of mineral town](https://friends.of.mineral.town),
a record of various objects and projects. any questions and concerns can be
directed to steven@mineral.town.

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2021 steven@mineral.town
Copyright (c) 2021 steven ye
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

View File

@ -0,0 +1,23 @@
{{ partial "header.html" . }}
<main id="main">
<div class="d-flex flex-column justify-content-center bg-skew bg-skew-light overflow-hidden">
<div class="container">
<div class="row justify-content-lg-center text-center">
<div class="col-lg-8">
<h1 class="display-4 mb-5 mt-5">Page not found</h1>
<p class="lead mb-5">The page you are looking for does not exist.</p>
<a href="{{ .Site.BaseURL }}" class="btn btn-primary rounded-pill">Go to home page</a>
</div>
</div>
</div>
</div>
</main>
{{ partial "footer.html" . }}
{{ define "main" }}
<div class="row" style="margin-top: 2em">
<h2>Page not found</h2>
<p>The page you are looking for does not exist.</p>
<a href="{{ .Site.BaseURL }}" class="btn btn-primary rounded-pill">Go back to the home page.</a>
</div>
{{ end }}

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ .Site.LanguageCode }}">
{{- partial "head.html" . -}}
<body>
<div class="container">

View File

@ -0,0 +1,36 @@
{{ define "main" }}
<div class="row" style="margin-top: 25%">
{{ $paginator := .Paginate ( where site.RegularPages "Type" "in" site.Params.mainSections ) }}
<div class="columns"></div>
{{ range $paginator.Pages }}
<div class="five columns">
{{ range .Params.categories }}
<a href="{{ $.Site.BaseURL }}categories/{{ . | urlize }}/">{{ . }}</a>
{{ end }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p class="date">{{.Date.Format "January 2, 2006"}}</p>
<p class="summary">{{ .Summary | plainify | htmlUnescape }}</p>
<p>
{{ range .Params.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}/">#{{ . }}</a>
{{ end }}
</p>
</div>
{{ end }}
</div>
{{ if gt $paginator.TotalPages 1 }}
<div class="row" style="margin-top: 2em">
<nav aria-label="Page navigation">
<ul class="pagination">
{{ range $paginator.Pagers }}
<li class="page-item {{ if eq $paginator.PageNumber .PageNumber }}active{{ end }}">
<a class="page-link" href="{{ .URL }}">{{.PageNumber}}</a>
</li>
{{ end }}
</ul>
</nav>
</div>
{{ end }}
{{ end }}

View File

@ -0,0 +1,40 @@
{{ define "main" }}
<div class="row">
{{ range .Params.categories }}
<a href="{{ $.Site.BaseURL }}categories/{{ . | urlize }}/">{{ . }}</a>
{{ end }}
</div>
<article class="row content" style="margin-top: 20%">
{{ .Content }}
</article>
{{ if .Params.tags }}
<div class="row tags">
<p>
<span>Tagged: </span>
{{ range .Params.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}/" class="tag">#{{ . }}</a>
{{ end }}
</p>
</div>
{{ end }}
<div class="row navigation" style="margin-top: 2em">
<nav aria-label="Post navigation">
<div class="one-half column previous">
{{ with .PrevInSection }}
<a href="{{ .Permalink }}">&larr; {{ .Title }}</a>
{{ end }}
&nbsp;
</div>
<div class="one-half column next">
{{ with .NextInSection }}
<a href="{{ .Permalink }}">{{ .Title }} &rarr;</a>
{{ end }}
&nbsp;
</div>
</nav>
</div>
{{ end }}

View File

@ -0,0 +1,37 @@
{{ define "main" }}
<div class="row" style="margin-top: 25%">
{{ $paginator := .Paginate ( where site.RegularPages "Type" "in" site.Params.mainSections ) }}
{{ $paginator = .Data }}
<div class="columns"></div>
{{ range $paginator.Pages }}
<div class="five columns">
{{ range .Params.categories }}
<a href="{{ $.Site.BaseURL }}categories/{{ . | urlize }}/">{{ . }}</a>
{{ end }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p class="date">{{.Date.Format "January 2, 2006"}}</p>
<p class="summary">{{ .Summary | plainify | htmlUnescape }}</p>
<p>
{{ range .Params.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}/">#{{ . }}</a>
{{ end }}
</p>
</div>
{{ end }}
</div>
{{ if gt $paginator.TotalPages 1 }}
<div class="row" style="margin-top: 2em">
<nav aria-label="Page navigation">
<ul class="pagination">
{{ range $paginator.Pagers }}
<li class="page-item {{ if eq $paginator.PageNumber .PageNumber }}active{{ end }}">
<a class="page-link" href="{{ .URL }}">{{.PageNumber}}</a>
</li>
{{ end }}
</ul>
</nav>
</div>
{{ end }}
{{ end }}

View File

@ -0,0 +1,36 @@
{{ define "main" }}
<div class="row" style="margin-top: 25%">
{{ $paginator := .Paginate ( where site.RegularPages "Type" "in" site.Params.mainSections ) }}
{{ $paginator = .Data }}
<div class="columns"></div>
{{ range $paginator.Pages }}
<div class="five columns">
{{ range .Params.categories }}
<a href="{{ $.Site.BaseURL }}categories/{{ . | urlize }}/">{{ . }}</a>
{{ end }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p class="summary">{{ .Summary | plainify | htmlUnescape }}</p>
<p>
{{ range .Params.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}/">#{{ . }}</a>
{{ end }}
</p>
</div>
{{ end }}
</div>
{{ if gt $paginator.TotalPages 1 }}
<div class="row" style="margin-top: 2em">
<nav aria-label="Page navigation">
<ul class="pagination">
{{ range $paginator.Pagers }}
<li class="page-item {{ if eq $paginator.PageNumber .PageNumber }}active{{ end }}">
<a class="page-link" href="{{ .URL }}">{{.PageNumber}}</a>
</li>
{{ end }}
</ul>
</nav>
</div>
{{ end }}
{{ end }}

View File

@ -1,5 +1,14 @@
<hr/>
<div class="row">
<div class="one-half column" style="margin-top: 25%">
<p>copyright (c) 2021 steven ye</p>
<ul class="nav">
<li class="mb-1"><a href="{{ .Site.BaseURL }}" class="text-secondary">home</a></li>
{{ range .Site.Menus.main }}
<li class="mb-1"><a href="{{ .URL }}" class="text-secondary">{{ .Name }}</a></li>
{{ end }}
</ul>
</div>
<div class="row">
<div class="one-half column" style="margin-top: 2em">
<p>{{ .Site.Title }} copyright 2021 {{ .Site.Copyright }}</p>
</div>
</div>

View File

@ -1,6 +1,6 @@
<head>
<meta charset="utf-8">
<title>MT_TITLE</title>
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
<meta name="description" content="MT_DESC">
<meta name="author" content="MT_AUTHOR">
@ -10,9 +10,9 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="{{ $.Site.BaseURL }}css/normalize.css">
<link rel="stylesheet" href="{{ $.Site.BaseURL }}css/skeleton.css">
<link rel="icon" type="image/png" href="images/favicon.png">
<link rel="icon" type="image/png" href="{{ $.Site.BaseURL }}images/favicon.png">
</head>

View File

@ -1,6 +1,16 @@
<div class="row">
<div class="one-half column" style="margin-top: 25%">
<h4>MT_SITE_TITLE</h4>
<p>MT_SITE_SUBTITLE</p>
<div class="twelve columns" style="margin-top: 25%">
<h1>
{{ if not .IsHome }}
{{ if eq .Kind "taxonomy" }}
{{ .Title | lower }}
{{ else }}
{{ .Title }}
{{ end }}
-
{{ end }}
{{ .Site.Title }}
</h1>
{{ if .IsHome }}<p>{{ .Site.Params.Description }}</p>{{ end }}
</div>
</div>