new theme for the no-JS club
parent
8190aff704
commit
a81ca7ccb7
@ -1,23 +1,91 @@
|
|||||||
<pre>
|
# Hugo ʕ•ᴥ•ʔ Bear Blog ![Test](https://github.com/janraasch/hugo-bearblog/workflows/CI/badge.svg?branch=master&event=push) [![Pay me][paypal-svg]][paypal-dot-me] [![Sponsor me][github-sponsors-svg]][github-sponsors]
|
||||||
_____ .__
|
|
||||||
_/ ____\ | |__ Frank Homburg
|
🧸 A [Hugo](https://gohugo.io/)-theme based on [Bear Blog](https://bearblog.dev).
|
||||||
\ __\ | | \
|
|
||||||
| | | Y \ https://hmbrg.org
|
> Free, no-nonsense, super-fast blogging.
|
||||||
|__| |___| / https://git.sr.ht/~hmbrg
|
|
||||||
\/
|
## Demo
|
||||||
|
|
||||||
Script name: -
|
For a current & working demo of this theme, please check out https://janraasch.github.io/hugo-bearblog/ 🎯.
|
||||||
Description: no-JS.club website off-site backup
|
|
||||||
Dependencies: -
|
## Screenshots
|
||||||
SourceHut: <a href="https://git.sr.ht/~hmbrg/no-js.club">website repo</a>
|
|
||||||
License: -
|
⬜️ [Light][light-screenshot]
|
||||||
Contributors: Frank Homburg
|
|
||||||
Comments: This is a "just in case" copy of the no-JS.club project website.
|
⬛️ [Dark][dark-screenshot]
|
||||||
</pre>
|
|
||||||
|
When the user's browser is running »dark mode«, the dark color scheme will be used automatically. The default is the light/white color scheme. Check out the [`style.html`](https://github.com/janraasch/hugo-bearblog/blob/master/layouts/partials/style.html)-file for the implementation.
|
||||||
|
|
||||||
# [The no-JS.club](https://no-js.club) off-site backup
|
## Sponsor 💟
|
||||||
Within this repo you'll find:
|
|
||||||
* uncompiled (Markdown) as well as
|
Support my work on this theme via [GitHub Sponsors][github-sponsors] (recurring) or [PayPal][paypal-dot-me] (one-time).
|
||||||
* compiled (HTML) content files
|
|
||||||
* moreover the whole set of assets
|
[![GitHub Stats](https://github-readme-stats.vercel.app/api/?username=janraasch)][github-sponsors]
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
If you already have a Hugo site on your machine, you can simply add this theme via
|
||||||
|
|
||||||
|
```
|
||||||
|
git submodule add https://github.com/janraasch/hugo-bearblog.git themes/hugo-bearblog
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, adjust the `config.toml` as detailed below.
|
||||||
|
|
||||||
|
For more information, read the official [setup guide][hugo-setup-guide] of Hugo.
|
||||||
|
|
||||||
|
## Adjust configuration / config.toml
|
||||||
|
|
||||||
|
Please check out the [config.toml](https://github.com/janraasch/hugo-bearblog/blob/master/exampleSite/config.toml) included in the [exampleSite](https://github.com/janraasch/hugo-bearblog/tree/master/exampleSite) of this theme.
|
||||||
|
|
||||||
|
## Content & structure
|
||||||
|
|
||||||
|
### Starting fresh
|
||||||
|
|
||||||
|
If you are starting fresh, simply copy over the contents of the `exampleSite`-directory included in this theme to your source directory. That should give you a good idea about how things work, and then you can go on from there to make the site your own.
|
||||||
|
|
||||||
|
### Adding / editing content
|
||||||
|
|
||||||
|
#### Index-Page
|
||||||
|
|
||||||
|
The contents of the `index`-page may be changed by editing your `content/_index.md`-file.
|
||||||
|
|
||||||
|
#### Page
|
||||||
|
|
||||||
|
You can add **a new page** via running
|
||||||
|
|
||||||
|
```
|
||||||
|
hugo new my-new-page.md
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Blog-Post
|
||||||
|
|
||||||
|
You can add **a new blog-post** via running
|
||||||
|
|
||||||
|
```
|
||||||
|
hugo new blog/my-new-post.md
|
||||||
|
```
|
||||||
|
|
||||||
|
### Adding your branding / colors / css
|
||||||
|
|
||||||
|
Add a `custom_head.html`-file to your `layouts/partials`-directory. In there you may add a `<style>`-tag, *or* you may add a `<link>`-tag referencing your own `custom.css` (in case you prefer to have a separate `.css`-file). Check out the [`style.html`](https://github.com/janraasch/hugo-bearblog/blob/master/layouts/partials/style.html)-file to find out which CSS-styles are applied by default.
|
||||||
|
|
||||||
|
## Issues / Feedback / Contributing
|
||||||
|
Please use [GitHub issues](https://github.com/janraasch/hugo-bearblog/issues) and [Pull Requests](https://github.com/janraasch/hugo-bearblog/pulls).
|
||||||
|
|
||||||
|
If you do not have a GitHub-account, please hit me up via e-mail (see [janraasch.com](https://www.janraasch.com)).
|
||||||
|
|
||||||
|
## Special Thanks 🎁
|
||||||
|
|
||||||
|
A special thank you goes out to [Herman](https://herman.bearblog.dev), for creating the original [ʕ•ᴥ•ʔ Bear Blog](https://bearblog.dev/).
|
||||||
|
|
||||||
|
## License
|
||||||
|
[MIT License](http://en.wikipedia.org/wiki/MIT_License) © [Jan Raasch](https://www.janraasch.com)
|
||||||
|
|
||||||
|
[paypal-dot-me]: https://www.paypal.me/janraasch/7,00
|
||||||
|
[github-sponsors]: https://github.com/sponsors/janraasch
|
||||||
|
[paypal-svg]: https://img.shields.io/badge/onetime-donation-11dde2.svg?logo=paypal
|
||||||
|
[github-sponsors-svg]: https://img.shields.io/badge/recurring-sponsorship-ee4aaa.svg?logo=github
|
||||||
|
[hugo-setup-guide]: https://gohugo.io/getting-started/installing
|
||||||
|
[light-screenshot]: https://raw.githubusercontent.com/janraasch/hugo-bearblog/master/images/screenshot.png
|
||||||
|
[dark-screenshot]: https://raw.githubusercontent.com/janraasch/hugo-bearblog/master/images/screenshot-dark.png
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
+++
|
||||||
|
title = "{{ replace .Name "-" " " | title }}"
|
||||||
|
date = "{{ .Date }}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# description is optional
|
||||||
|
#
|
||||||
|
# description = "An optional description for SEO. If not provided, an automatically created summary will be used."
|
||||||
|
|
||||||
|
tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}]
|
||||||
|
+++
|
||||||
|
|
||||||
|
This is a page about »{{ replace .Name "-" " " | title }}«.
|
@ -1,2 +1,22 @@
|
|||||||
+++
|
+++
|
||||||
|
title = "{{ replace .Name "-" " " | title }}"
|
||||||
|
date = "{{ .Date }}"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Set menu to "main" to add this page to
|
||||||
|
# the main menu on top of the page
|
||||||
|
#
|
||||||
|
menu = "main"
|
||||||
|
|
||||||
|
#
|
||||||
|
# description is optional
|
||||||
|
#
|
||||||
|
# description = "An optional description for SEO. If not provided, an automatically created summary will be used."
|
||||||
|
|
||||||
|
#
|
||||||
|
# tags are optional
|
||||||
|
#
|
||||||
|
# tags = [{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}"{{ printf "%s" $term }}",{{ end }}{{ end }}]
|
||||||
+++
|
+++
|
||||||
|
|
||||||
|
This is a page about »{{ replace .Name "-" " " | title }}«.
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
@ -0,0 +1,6 @@
|
|||||||
|
{{ define "title" }}404{{ end }}
|
||||||
|
|
||||||
|
{{ define "main" }}
|
||||||
|
<h1>404</h1>
|
||||||
|
<h2>ʕノ•ᴥ•ʔノ ︵ ┻━┻</h2>
|
||||||
|
{{ end }}
|
@ -1,32 +1,43 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{- site.Language.Lang -}}">
|
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
{{- partial "head.html" . -}}
|
<meta http-equiv="X-Clacks-Overhead" content="GNU Terry Pratchett" />
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
{{- partial "favicon.html" . -}}
|
||||||
|
<title>{{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }}</title>
|
||||||
|
|
||||||
|
{{- partial "seo_tags.html" . -}}
|
||||||
|
<meta name="referrer" content="no-referrer-when-downgrade" />
|
||||||
|
|
||||||
|
{{ with .OutputFormats.Get "rss" -}}
|
||||||
|
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
|
{{- partial "style.html" . -}}
|
||||||
|
|
||||||
|
<!-- A partial to be overwritten by the user.
|
||||||
|
Simply place a custom_head.html into
|
||||||
|
your local /layouts/partials-directory -->
|
||||||
|
{{- partial "custom_head.html" . -}}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="page">
|
<header>
|
||||||
|
|
||||||
<header class="page__header">
|
|
||||||
{{- partial "header.html" . -}}
|
{{- partial "header.html" . -}}
|
||||||
</header>
|
</header>
|
||||||
|
<main>
|
||||||
<section class="page__body">
|
|
||||||
{{- block "main" . }}{{- end }}
|
{{- block "main" . }}{{- end }}
|
||||||
</section>
|
</main>
|
||||||
|
<footer>
|
||||||
<section class="page__aside">
|
|
||||||
<div class="aside__about">
|
|
||||||
{{- partial "about.html" . -}}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="footer">
|
|
||||||
{{- partial "footer.html" . -}}
|
{{- partial "footer.html" . -}}
|
||||||
</section>
|
</footer>
|
||||||
|
|
||||||
</div>
|
<!-- A partial to be overwritten by the user.
|
||||||
|
Simply place a custom_body.html into
|
||||||
|
your local /layouts/partials-directory -->
|
||||||
|
{{- partial "custom_body.html" . -}}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,12 +1,38 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h1 id="{{ .Title | urlize }}">{{ .Title | markdownify }}</h1>
|
<content>
|
||||||
|
{{ if .Data.Singular }}
|
||||||
{{ .Content }}
|
<h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
|
||||||
|
<small>
|
||||||
<ul>
|
<a href="{{ "/blog" | relURL }}">Remove filter</a>
|
||||||
|
</small>
|
||||||
|
{{ end }}
|
||||||
|
<ul class="blog-posts">
|
||||||
{{ range .Pages }}
|
{{ range .Pages }}
|
||||||
{{ .Render "li" }}
|
<li>
|
||||||
|
<span>
|
||||||
|
<i>
|
||||||
|
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
|
||||||
|
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
|
||||||
|
</time>
|
||||||
|
</i>
|
||||||
|
</span>
|
||||||
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
</li>
|
||||||
|
{{ else }}
|
||||||
|
<li>
|
||||||
|
No posts yet
|
||||||
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ if .Data.Singular }}
|
||||||
|
{{else}}
|
||||||
|
<small>
|
||||||
|
<div>
|
||||||
|
{{ range .Site.Taxonomies.tags }}
|
||||||
|
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</small>
|
||||||
|
{{ end }}
|
||||||
|
</content>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1,19 +1,20 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<header class="content__header">
|
{{ if eq .Type "blog" }}{{ if not .Params.menu }}
|
||||||
<h1>{{ .Title | markdownify }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
</header>
|
|
||||||
<div class="content__body">
|
|
||||||
{{ .Content }}
|
|
||||||
</div>
|
|
||||||
<footer class="content__footer"></footer>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{define "aside" }}
|
|
||||||
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
|
|
||||||
{{ if or (.Params.author) (.Params.date) }}
|
|
||||||
<p>
|
<p>
|
||||||
{{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }}
|
<i>
|
||||||
{{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
|
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
|
||||||
|
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
|
||||||
|
</time>
|
||||||
|
</i>
|
||||||
</p>
|
</p>
|
||||||
|
{{ end }}{{ end }}
|
||||||
|
<content>
|
||||||
|
{{ .Content }}
|
||||||
|
</content>
|
||||||
|
<p>
|
||||||
|
{{ range (.GetTerms "tags") }}
|
||||||
|
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
<!-- A partial to be overwritten by the user.
|
||||||
|
Simply place a custom_body.html into
|
||||||
|
your local /layouts/partials-directory -->
|
@ -0,0 +1,3 @@
|
|||||||
|
<!-- A partial to be overwritten by the user.
|
||||||
|
Simply place a custom_head.html into
|
||||||
|
your local /layouts/partials-directory -->
|
@ -0,0 +1,2 @@
|
|||||||
|
{{ with .Site.Params.favicon }}
|
||||||
|
<link rel="shortcut icon" href="{{ . | absURL }}" />{{ end }}
|
@ -1,10 +1,4 @@
|
|||||||
<h1 class="page__logo"><a href="{{ .Site.BaseURL }}" class="page__logo-inner">{{ .Site.Title }}</a></h1>
|
<a href="{{ "/" | relURL }}" class="title">
|
||||||
<nav class="page__nav main-nav">
|
<h2>{{ .Site.Title }}</h2>
|
||||||
<ul>
|
</a>
|
||||||
{{ $currentPage := . }}
|
<nav>{{- partial "nav.html" . -}}</nav>
|
||||||
{{ range .Site.Menus.main }}
|
|
||||||
<li class="main-nav__item"><a class="nav-main-item{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL }}" title="{{ .Title }}">{{ .Name }}</a></li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
<a href="{{ "/" | relURL }}">Home</a>
|
||||||
|
{{ range .Site.Menus.main }}
|
||||||
|
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Site.GetPage "/blog" }}
|
||||||
|
<a href="{{ "/blog" | relURL }}">Blog</a>
|
||||||
|
{{ end }}
|
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Primary Meta Tags -->
|
||||||
|
<meta name="title" content="{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}" />
|
||||||
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
|
||||||
|
<meta name="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}" />
|
||||||
|
|
||||||
|
<!-- Open Graph / Facebook -->
|
||||||
|
{{ template "_internal/opengraph.html" . }}
|
||||||
|
|
||||||
|
<!-- Twitter -->
|
||||||
|
{{ template "_internal/twitter_cards.html" . }}
|
||||||
|
|
||||||
|
<!-- Microdata -->
|
||||||
|
{{ template "_internal/schema.html" . }}
|
@ -0,0 +1,213 @@
|
|||||||
|
<style>
|
||||||
|
body {
|
||||||
|
font-family: Verdana, sans-serif;
|
||||||
|
margin: auto;
|
||||||
|
padding: 20px;
|
||||||
|
max-width: 720px;
|
||||||
|
text-align: left;
|
||||||
|
background-color: #fff;
|
||||||
|
word-wrap: break-word;
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6,
|
||||||
|
strong,
|
||||||
|
b {
|
||||||
|
color: #222;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #3273dc;
|
||||||
|
/*color: #ff5e6c;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
text-decoration: none;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title span {
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
content {
|
||||||
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
padding: 2px 5px;
|
||||||
|
background-color: #f2f2f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre code {
|
||||||
|
color: #222;
|
||||||
|
display: block;
|
||||||
|
padding: 20px;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.highlight pre {
|
||||||
|
background-color: initial;
|
||||||
|
color: initial;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.highlight code {
|
||||||
|
background-color: unset;
|
||||||
|
color: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
border-left: 1px solid #999;
|
||||||
|
color: #222;
|
||||||
|
padding-left: 20px;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
padding: 0px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.helptext {
|
||||||
|
color: #777;
|
||||||
|
font-size: small;
|
||||||
|
}
|
||||||
|
|
||||||
|
.errorlist {
|
||||||
|
color: #eba613;
|
||||||
|
font-size: small;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* blog posts */
|
||||||
|
ul.blog-posts {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.blog-posts li {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.blog-posts li span {
|
||||||
|
flex: 0 0 130px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul.blog-posts li a:visited {
|
||||||
|
color: #8b6fcb;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
body {
|
||||||
|
background-color: #333;
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6,
|
||||||
|
strong,
|
||||||
|
b {
|
||||||
|
color: #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #8cc2dd;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background-color: #777;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre code {
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
color: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea,
|
||||||
|
input {
|
||||||
|
background-color: #252525;
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.helptext {
|
||||||
|
color: #aaa;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Override this file to customise the theme's CSS for your site */
|
||||||
|
/* Format the accordion */
|
||||||
|
details {
|
||||||
|
padding: .6rem 1rem;
|
||||||
|
background: var(--accent);
|
||||||
|
border: 1px solid;
|
||||||
|
border-radius: 5px;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
details.red-notice {
|
||||||
|
background: var(--notice-red-bg);
|
||||||
|
border-color: var(--notice-red-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.red-notice h2 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
summary {
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] {
|
||||||
|
padding-bottom: .75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open] summary {
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
details[open]>*:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,2 @@
|
|||||||
|
User-Agent: *
|
||||||
|
Sitemap: {{ "sitemap.xml" | absURL }}
|
@ -0,0 +1,197 @@
|
|||||||
|
{
|
||||||
|
"name": "hugo-bearblog",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"requires": true,
|
||||||
|
"dependencies": {
|
||||||
|
"abbrev": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"balanced-match": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"brace-expansion": {
|
||||||
|
"version": "1.1.11",
|
||||||
|
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
|
||||||
|
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"balanced-match": "^1.0.0",
|
||||||
|
"concat-map": "0.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"commander": {
|
||||||
|
"version": "2.20.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
|
||||||
|
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"concat-map": {
|
||||||
|
"version": "0.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
|
||||||
|
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"config-chain": {
|
||||||
|
"version": "1.1.13",
|
||||||
|
"resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.13.tgz",
|
||||||
|
"integrity": "sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"ini": "^1.3.4",
|
||||||
|
"proto-list": "~1.2.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"editorconfig": {
|
||||||
|
"version": "0.15.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz",
|
||||||
|
"integrity": "sha512-M9wIMFx96vq0R4F+gRpY3o2exzb8hEj/n9S8unZtHSvYjibBp/iMufSzvmOcV/laG0ZtuTVGtiJggPOSW2r93g==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"commander": "^2.19.0",
|
||||||
|
"lru-cache": "^4.1.5",
|
||||||
|
"semver": "^5.6.0",
|
||||||
|
"sigmund": "^1.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fs.realpath": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
|
||||||
|
"integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"glob": {
|
||||||
|
"version": "7.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
|
||||||
|
"integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"fs.realpath": "^1.0.0",
|
||||||
|
"inflight": "^1.0.4",
|
||||||
|
"inherits": "2",
|
||||||
|
"minimatch": "^3.0.4",
|
||||||
|
"once": "^1.3.0",
|
||||||
|
"path-is-absolute": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"inflight": {
|
||||||
|
"version": "1.0.6",
|
||||||
|
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
||||||
|
"integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"once": "^1.3.0",
|
||||||
|
"wrappy": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"inherits": {
|
||||||
|
"version": "2.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||||
|
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"ini": {
|
||||||
|
"version": "1.3.8",
|
||||||
|
"resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
|
||||||
|
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"js-beautify": {
|
||||||
|
"version": "1.14.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.14.2.tgz",
|
||||||
|
"integrity": "sha512-H85kX95a53os+q1OCqtYe8AXAmgy3BvtysA/V83S3fdhznm6WlUpGi14DqSPbKFsL3dXZFXYl7YQwW9U1+76ng==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"config-chain": "^1.1.12",
|
||||||
|
"editorconfig": "^0.15.3",
|
||||||
|
"glob": "^7.1.3",
|
||||||
|
"nopt": "^5.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lru-cache": {
|
||||||
|
"version": "4.1.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
|
||||||
|
"integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"pseudomap": "^1.0.2",
|
||||||
|
"yallist": "^2.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"minimatch": {
|
||||||
|
"version": "3.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
||||||
|
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"brace-expansion": "^1.1.7"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nopt": {
|
||||||
|
"version": "5.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",
|
||||||
|
"integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"abbrev": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"once": {
|
||||||
|
"version": "1.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
|
||||||
|
"integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
|
||||||
|
"dev": true,
|
||||||
|
"requires": {
|
||||||
|
"wrappy": "1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"path-is-absolute": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
|
||||||
|
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"proto-list": {
|
||||||
|
"version": "1.2.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz",
|
||||||
|
"integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"pseudomap": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
|
||||||
|
"integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"semver": {
|
||||||
|
"version": "5.7.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
|
||||||
|
"integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"sigmund": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz",
|
||||||
|
"integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"wrappy": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
|
||||||
|
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
|
"yallist": {
|
||||||
|
"version": "2.1.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
|
||||||
|
"integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=",
|
||||||
|
"dev": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "hugo-bearblog",
|
||||||
|
"private": true,
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "🧸 A [Hugo](https://gohugo.io/)-theme based on [Bear Blog](https://bearblog.dev).",
|
||||||
|
"main": "index.js",
|
||||||
|
"devDependencies": {
|
||||||
|
"js-beautify": "^1.14.2"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "npm run beautify",
|
||||||
|
"beautify": "js-beautify layouts/**/*.html -r"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/janraasch/hugo-bearblog.git"
|
||||||
|
},
|
||||||
|
"author": {
|
||||||
|
"name": "Jan Raasch",
|
||||||
|
"email": "jan@janraasch.com",
|
||||||
|
"url": "https://www.janraasch.com"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/janraasch/hugo-bearblog/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/janraasch/hugo-bearblog#readme"
|
||||||
|
}
|
Loading…
Reference in New Issue