Compare commits

...

2 Commits

Author SHA1 Message Date
b6fb086817 add bbb theme (split to separate repo later 2022-07-31 09:34:20 -04:00
8f6b1b72d5 update blog 2022-07-31 09:34:06 -04:00
15 changed files with 156 additions and 17 deletions

View File

@ -1,23 +1,35 @@
baseURL = "https://beckmeyer.us/" baseURL = "https://beckmeyer.us/"
languageCode = 'en-us' languageCode = 'en-us'
title = "Joel Beckmeyer's Homepage" title = "Joel Beckmeyer's Homepage"
theme = "no-js-hugo-theme" theme = "bbb"
[author] [author]
name = "Joel Beckmeyer" name = "Joel Beckmeyer"
email = "joel@beckmeyer.us" email = "joel@beckmeyer.us"
[menu] [menu]
[[menu.main]] [[menu.main]]
name = "Git" name = "Home"
identifier = "Gitea" url = "/"
url = "https://git.beckmeyer.us/TnSb" weight = 1
weight = 400 [[menu.main]]
[[menu.main]] name = "Posts"
name = "GitHub" url = "/posts/"
identifier = "GitHub" weight = 2
url = "https://github.com/TinfoilSubmarine" [[menu.main]]
weight = 500 name = "Tags"
url = "/tags/"
weight = 3
[[menu.main]]
name = "Git"
identifier = "Gitea"
url = "https://git.beckmeyer.us/TnSb"
weight = 4
[[menu.main]]
name = "GitHub"
identifier = "GitHub"
url = "https://github.com/TinfoilSubmarine"
weight = 5
[markup] [markup]
[markup.highlight] [markup.highlight]

View File

@ -1,6 +0,0 @@
---
title: Blog
menu:
main:
weight: 300
---

20
themes/bbb/LICENSE Normal file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2022 Joel Beckmeyer
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.

View File

@ -0,0 +1,2 @@
+++
+++

View File

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html class="no-js" lang="{{ .Site.LanguageCode }}" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
{{- partial "head.html" . -}}
<body>
{{- partial "header.html" . -}}
<div id="content">
{{- block "main" . }}{{- end }}
</div>
{{- partial "footer.html" . -}}
</body>
</html>

View File

@ -0,0 +1,10 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ range .Pages.ByPublishDate.Reverse }}
<p>
<h3><a class="title" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
{{ partial "metadata.html" . }}
<a class="summary" href="{{ .RelPermalink }}"/a>
</p>
{{ end }}
{{ end }}

View File

@ -0,0 +1,6 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ partial "metadata.html" . }}
<br><br>
{{ .Content }}
{{ end }}

View File

@ -0,0 +1,5 @@
{{ define "main" }}
<div>
<h1 class="title">{{ .Site.Title }}</h1>
</div>
{{ end }}

View File

@ -0,0 +1 @@
<p class="footer">{{ .Site.Params.FooterText | markdownify }}</p>

View File

@ -0,0 +1,15 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base href="{{ .Site.BaseURL }}">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<link id="theme_css" rel="stylesheet" href="/css/style.css">
{{ range .AlternativeOutputFormats -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ $title := print .Site.Title " | " .Title }}
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
<title>{{ $title }}</title>
</head>

View File

@ -0,0 +1,14 @@
<div id="nav-border" class="container">
<nav id="menu" class="nav">
{{ range .Site.Menus.main }}
<a class="nav-link" href="{{ .URL }}">
{{ if .Pre }}
{{ $icon := printf "<i data-feather=\"%s\"></i> " .Pre | safeHTML }}
{{ $icon }}
{{ end }}
{{ $text := print .Name | safeHTML }}
{{ $text }}
</a>
{{ end }}
</nav>
</div>

View File

@ -0,0 +1,11 @@
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
<i data-feather="calendar"></i>
<time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
{{ with .Params.tags }}
<i data-feather="tag"></i>
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
{{ end }}
{{ end }}

View File

@ -0,0 +1,26 @@
* {
max-width: 650px;
margin: auto;
}
.nav {
margin-top: 1rem;
margin-bottom: 1rem;
text-align: center;
}
.nav-link {
padding: .25rem;
}
.title {
max-width: 650px;
margin-top: 1rem;
margin-bottom: 1rem;
text-align: center;
}
.footer {
position: relative;
text-align: center;
}

12
themes/bbb/theme.toml Normal file
View File

@ -0,0 +1,12 @@
name = "bbb"
license = "MIT"
licenselink = "https://git.beckmeyer.us/TnSb/bbb-hugo-theme/blob/master/LICENSE"
description = "Basic, Boring, Barebones Hugo Theme"
homepage = "https://git.beckmeyer.us/TnSb/bbb"
tags = []
features = []
min_version = "0.41.0"
[author]
name = "Joel Beckmeyer"
homepage = "https://beckmeyer.us/"