Compare commits
5 Commits
06698c7799
...
c5aefd9d0b
| Author | SHA1 | Date |
|---|---|---|
|
|
c5aefd9d0b | |
|
|
d30868895c | |
|
|
c34a9d5276 | |
|
|
da9d05673e | |
|
|
a3419c4690 |
|
|
@ -1,71 +1,23 @@
|
|||
baseURL = 'https://blog.mineral.town/'
|
||||
languageCode = 'en-us'
|
||||
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]
|
||||
# dir name of your main content (default is `content/posts`).
|
||||
# the list of set content will show up on your index page (baseurl).
|
||||
contentTypeName = "posts"
|
||||
|
||||
# ["orange", "blue", "red", "green", "pink"]
|
||||
themeColor = "orange"
|
||||
|
||||
# if you set this to 0, only submenu trigger will be visible
|
||||
showMenuItems = 2
|
||||
|
||||
# show selector to switch language
|
||||
showLanguageSelector = false
|
||||
|
||||
# set theme to full screen width
|
||||
fullWidthTheme = false
|
||||
|
||||
# center theme with default width
|
||||
centerTheme = false
|
||||
|
||||
# set a custom favicon (default is a `themeColor` square)
|
||||
# favicon = "favicon.ico"
|
||||
|
||||
# set post to show the last updated
|
||||
# If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated
|
||||
showLastUpdated = false
|
||||
# Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author
|
||||
# updatedDatePrefix = "Updated"
|
||||
|
||||
# set all headings to their default size (depending on browser settings)
|
||||
# it's set to `true` by default
|
||||
# oneHeadingSize = false
|
||||
|
||||
[params.twitter]
|
||||
# set Twitter handles for Twitter cards
|
||||
# see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution
|
||||
# do not include @
|
||||
creator = ""
|
||||
site = ""
|
||||
|
||||
[languages]
|
||||
[languages.en]
|
||||
languageName = "English"
|
||||
title = "mineral town blog"
|
||||
subtitle = "a blog for friends of mineral town"
|
||||
owner = "steven"
|
||||
keywords = ""
|
||||
copyright = "steven"
|
||||
menuMore = "Show more"
|
||||
readMore = "Read more"
|
||||
readOtherPosts = "Read other posts"
|
||||
newerPosts = "Newer posts"
|
||||
olderPosts = "Older posts"
|
||||
missingContentMessage = "Page not found..."
|
||||
missingBackButtonLabel = "Back to home page"
|
||||
|
||||
[languages.en.params.logo]
|
||||
logoText = "mineral town blog"
|
||||
logoHomeLink = "/"
|
||||
|
||||
[languages.en.menu]
|
||||
[[languages.en.menu.main]]
|
||||
identifier = "about"
|
||||
name = "About"
|
||||
url = "/about"
|
||||
description = "a blog for friends of mineral town"
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
{{- partial "head.html" . -}}
|
||||
<body>
|
||||
<div class="container">
|
||||
|
|
|
|||
|
|
@ -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 }}
|
||||
|
|
@ -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 }}">← {{ .Title }}</a>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
<div class="one-half column next">
|
||||
{{ with .NextInSection }}
|
||||
<a href="{{ .Permalink }}">{{ .Title }} →</a>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
@ -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 }}
|
||||
|
|
@ -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 }}
|
||||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
Loading…
Reference in New Issue