Compare commits

...

10 Commits
v0.3.1 ... main

14 changed files with 47 additions and 43 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.hugo_build.lock
exampleSite/themes
exampleSite/resources

View File

@ -1,23 +1,40 @@
# Changelog
## 0.3.2 - 2021-03-12
Minor fixes to the Gemini side of things and dependencies.
```
earnest ma (5):
format: Fix whitespace
fix: Gemini lastmod and published date
fix: Gemini post post links spacing
chore(deps): Bump DOMPurify to version 2.2.7
chore: Fix changelog
```
## 0.3.1 - 2021-02-11
Just minor fixes to tags and links.
```
earnest ma (3):
chore: Use non-WWW links
fix! Broken link
fix: Leftover </time>
```
## 0.3.0 - 2021-02-10
In this release, basic support for output to Gemini was added, as well as Hugo theme metadata and an exampleSite. Improvements are always welcome.
```
earnest ma (4):
chore: Bump version
feat: Add support for gemini
docs: Add exampleSite and theme metadata
chore: Update readme.md
```
## 0.2.0 - 2021-02-05

View File

@ -4,25 +4,19 @@
Thank you for your interest in contributing to this project!
## Bug Reports
## Bug Reports and Suggestions
Please open a new issue [here](https://git.earne.link/earnestma/dracublog/issues).
Please open a new issue [here](https://git.earne.link/earnestma/dracublog/issues) or discuss on [earne.link Discussion](https://discuss.earne.link/t/earnest).
## Style Guide
See the [editor configuration file](.editorconfig) file for hints.
## Suggesting Changes
For pull requests:
For patches, simply [format your patch](https://git-send-email.io/) and [email it](https://www.earnestma.xyz/contact) to me (same email as `git log | grep "Author: earnest ma" -m 1`).
If you prefer creating a pull request:
## Making Changes
- [Fork the repo](https://git.earne.link/earnestma/dracublog), clone and create a branch
- Add, commit your changes, push to branch
- [Create a PR](https://git.earne.link/earnestma/dracublog/pulls) targeting `develop` branch (in most cases)
- [Create a PR](https://git.earne.link/earnestma/dracublog/pulls)
## Changelog

View File

@ -1 +0,0 @@
{"Target":"main.min.2700adb3e3573b5490a0c66bf3eca5392a7adccce620f5752baf8f8a11e1188d.css","MediaType":"text/css","Data":{"Integrity":"sha256-JwCts+NXO1SQoMZr8+ylOSp63MzmIPV1K6+PihHhGI0="}}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
{"Target":"main.min.2700adb3e3573b5490a0c66bf3eca5392a7adccce620f5752baf8f8a11e1188d.css","MediaType":"text/css","Data":{"Integrity":"sha256-JwCts+NXO1SQoMZr8+ylOSp63MzmIPV1K6+PihHhGI0="}}

View File

@ -1,11 +1,10 @@
# {{ $.Title | safeHTML }}
{{ if .Lastmod }}{{ if not (eq .Lastmod .Date )}}
Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod.Local }}.
{{ end }}
{{ else }}
{{ if ne .Lastmod .Date -}}
Published on {{ .Date.Format "Jan 02, 2006" }}, updated {{ dateFormat "2006-01-02" .Lastmod }}.
{{- else -}}
Published on {{ .Date.Format "Jan 02, 2006" }}.
{{ end }}
{{- end }}
{{ trim (readFile (replace $.File.Path ".md" ".gmi")) "\n" | safeHTML }}
@ -22,9 +21,9 @@ Published on {{ .Date.Format "Jan 02, 2006" }}.
```
=> / Return to the homepage
{{ with .OutputFormats.Get "html" }}
{{- with .OutputFormats.Get "html" }}
=> {{ .Permalink }} See “{{ $.Title | safeHTML }}” on the WWW
{{ end }}
{{- end }}
{{ with .Params.comments }}=> https://{{ .host }}/@{{ .user }}/{{ .id }} You may comment here{{ end }}
{{ .Site.Copyright }}

View File

@ -2,13 +2,12 @@
## Blog Posts
{{ with .OutputFormats.Get "html" }}
{{ with .OutputFormats.Get "html" -}}
=> {{ .Permalink }} More posts on WWW
{{ end }}
{{- end -}}
{{ range (where .Site.RegularPages "Section" "blog") }}
{{- if .OutputFormats.Get "gemtext" }}
=> {{ replace .Permalink "/gemini" "" 1 }} {{ .Date.Format "Jan 02, 2006" }}: {{ .Title | safeHTML }}{{ end }}{{ end }}
{{ .Site.Copyright }}

View File

@ -17,7 +17,7 @@
</p>
</noscript>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.2.6/purify.min.js "></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dompurify/2.2.7/purify.min.js "></script>
<script type="text/javascript">
function escapeHtml(unsafe) {
return unsafe

View File

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2021 earnest ma
Copyright (c) 2021-2022 earnest ma
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

@ -1,7 +1,6 @@
# [Dracublog](https://earnestma.xyz/dracublog)
# Dracublog
[![git repo](https://img.shields.io/badge/repo-git-informational.svg?logo=gitea)](https://git.earne.link/earnestma/dracublog)
[![GitHub mirror](https://img.shields.io/badge/mirror-GitHub-black.svg?logo=github)](https://github.com/earnestma/dracublog)
A simple, fully-featured Hugo blogging theme with Dracula colors.
@ -14,22 +13,19 @@ Features:
- Optional openring styling (generates a list of recent posts from blogs you follow)
- `noindex` param to prevent certain pages from being indexed
**Demo**: -
[My personal site](https://earnestma.xyz) uses this theme.
## Install
- Git submodule
**Tarball**
- Version: `https://git.earne.link/earnestma/dracublog/archive/$VERSION.tar.gz`
- Main branch: `https://git.earne.link/earnestma/dracublog/archive/main.tar.gz`
You can add `themes/dracublog` to `.gitignore`, and extract it there.
**Through a git submodule**
`git submodule add https://git.earne.link/earnestma/dracublog.git themes/dracublog`
The `main` branch will always point to the latest stable tag. To track the develop branch, you may instead use `git submodule add https://git.earne.link/earnestma/dracublog.git themes/dracublog -b develop`
- Release
Regular and minified release tarbells are available: **[here](https://git.earne.link/earnestma/dracublog/releases)** and [on GitHub releases](https://github.com/earnestma/dracublog/releases). Simply uncompress to the themes directory.
## Configuration
## Gemini Output

View File

@ -5,11 +5,11 @@ name = "Dracublog"
license = "MIT"
licenselink = "https://git.earne.link/earnestma/dracublog/src/branch/main/license"
description = "A simple, fully-featured blogging theme with Dracula colors"
homepage = "http://www.earnestma.xyz/dracublog"
homepage = "https://git.earne.link/earnestma/dracublog"
tags = ["blog", "customizable", "dark", "fast", "modern", "responsive"]
features = ["blog", "customizable", "dark", "fast", "modern", "responsive"]
min_version = "0.67.1"
min_version = "0.88.1"
[author]
name = "earnest ma"
homepage = "https://www.earnestma.xyz"
homepage = "https://earnestma.com"

View File

@ -1 +1 @@
0.3.1
0.3.2