Commit Graph

64 Commits

Author SHA1 Message Date
dependabot[bot]
0b64d5ad10
chore(deps-dev): bump js-beautify from 1.14.6 to 1.14.11 (#78)
Bumps [js-beautify](https://github.com/beautify-web/js-beautify) from 1.14.6 to 1.14.11.
- [Release notes](https://github.com/beautify-web/js-beautify/releases)
- [Changelog](https://github.com/beautify-web/js-beautify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/beautify-web/js-beautify/compare/v1.14.6...v1.14.11)

---
updated-dependencies:
- dependency-name: js-beautify
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 11:12:21 +00:00
Jan Raasch
2e4a4c2424 Add more permissions to auto-merge workflow 🔓
Still trying to fix

```
GraphQL: Resource not accessible by integration (mergePullRequest)
```

See https://github.com/janraasch/hugo-bearblog/actions/runs/7624250504/job/20766236838

and https://github.com/cli/cli/discussions/7617
2024-01-23 12:08:55 +01:00
Jan Raasch
d255667dfb Move auto-merge to separate workflow 2024-01-23 11:46:13 +01:00
Jan Raasch
993dcdbc45 Add permissions to »Auto-Merge«-job 2024-01-23 11:17:51 +01:00
Jan Raasch
4ce692eb8c Approve & squash merge dependabot prs
See https://dev.to/lkurzyniec/github-auto-merge-dependabot-prs-26dj
2024-01-23 11:07:09 +01:00
dependabot[bot]
fe522cefe3
chore(deps): bump actions/upload-artifact from 3 to 4 (#77)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 10:36:08 +01:00
dependabot[bot]
e42cc214a3
chore(deps): bump actions/download-artifact from 3 to 4 (#76)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 10:33:33 +01:00
Martijn Engler
dec11203de
Use hugo.toml instead of config.toml (#74)
* Use hugo.toml instead of config.toml

Use the file hugo.toml in both the README.md and the exampleSite, since
Hugo will look for this file first.

The current instructions (using config.toml) in a new Hugo site
(that has a hugo.toml-file) means that the site doesn't work, or the
theme is not activated.

Note that this is a breaking change for sites running on older versions.
(But v0.110.0 was released almost a year ago.)

Relevant Hugo commit:

f38a2fbd2e

* Require `hugo v0.110.0`

> Make hugo.toml the new config.toml

see https://github.com/gohugoio/hugo/releases/tag/v0.110.0

---------

Co-authored-by: Jan Raasch <425211+janraasch@users.noreply.github.com>
2024-01-23 10:28:44 +01:00
dependabot[bot]
939a4e9e00
chore(deps): bump actions/checkout from 3 to 4 (#72)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 10:05:23 +01:00
Jan Raasch
5fc1e03a7a
docs: no email support 😅😁 2023-03-15 16:26:38 +01:00
Jan Raasch
6c922477c1 chore(ci): oh the lols :)) aka fix the fix 2023-03-15 13:32:22 +01:00
Jan Raasch
96a3934c6d chore(ci): try try try 2023-03-15 13:25:45 +01:00
Jan Raasch
d986e38325 chore(ci): try ignoring cache 2023-03-15 13:22:40 +01:00
Jan Raasch
5fb7b33256 fix: remove trailing slashes
Guess what, on https://gohugo.io/functions/relurl/ it says

> As a best practice, never include a leading slash when using this function.

Fixes https://github.com/janraasch/hugo-bearblog/issues/65
2023-03-15 13:01:49 +01:00
Jan Raasch
63484fa54a chore(ci): auto-merge patch and minor updates of deps 2023-03-08 19:03:20 +01:00
Jan Raasch
7620f8d1f7 chore(ci): fix deploy condition - for real! :) 2023-03-08 18:45:36 +01:00
Jan Raasch
bbb374cb15 chore(ci): fix deploy condition - hopefully 2023-03-08 18:44:15 +01:00
Jan Raasch
f2cc09bbdd chore(ci): split build into build and deploy jobs 2023-03-08 18:36:16 +01:00
dependabot[bot]
2078d95600
chore(deps): bump peaceiris/actions-gh-pages from 3.9.0 to 3.9.2 (#61)
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3.9.0 to 3.9.2.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3.9.0...v3.9.2)

---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-16 16:14:44 +01:00
Jan Raasch
d524ebeba7
Delete FUNDING.yml 2022-12-27 17:35:49 +01:00
Jan Raasch
e328177798
Remove »Sponsoring« 2022-12-27 17:34:44 +01:00
dependabot[bot]
c50cd1b173
chore(deps): bump peaceiris/actions-hugo from 2.5.0 to 2.6.0 (#58)
Bumps [peaceiris/actions-hugo](https://github.com/peaceiris/actions-hugo) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/peaceiris/actions-hugo/releases)
- [Changelog](https://github.com/peaceiris/actions-hugo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-hugo/compare/v2.5.0...v2.6.0)

---
updated-dependencies:
- dependency-name: peaceiris/actions-hugo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 08:42:05 +02:00
dependabot[bot]
cfc44879d9
chore(deps): bump peaceiris/actions-gh-pages from 3.8.0 to 3.9.0 (#57)
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3.8.0 to 3.9.0.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3.8.0...v3.9.0)

---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 08:41:48 +02:00
Jan Raasch
90982df8c9 Revert "Fix link to »Blog« on demo page"
This reverts commit 9863ab4f50.

Whoops. I should update my local version of `hugo` 😊.

This broke the build, see https://github.com/janraasch/hugo-bearblog/actions/runs/3057300422/jobs/4932310672
2022-09-15 04:04:45 +02:00
Jan Raasch
9863ab4f50 Fix link to »Blog« on demo page
The demo is hosted at https://janraasch.github.io/hugo-bearblog/, but currently the link is »/blog«, so we end up at https://janraasch.github.io/blog with a `404` 🥹.
2022-09-15 04:00:41 +02:00
dependabot[bot]
f8bde64964
chore(deps-dev): bump js-beautify from 1.14.2 to 1.14.6 (#53)
Bumps [js-beautify](https://github.com/beautify-web/js-beautify) from 1.14.2 to 1.14.6.
- [Release notes](https://github.com/beautify-web/js-beautify/releases)
- [Changelog](https://github.com/beautify-web/js-beautify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/beautify-web/js-beautify/compare/v1.14.2...v1.14.6)

---
updated-dependencies:
- dependency-name: js-beautify
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-15 03:28:47 +02:00
Andrew Jorgensen
fc2635f25d
Use overflow-x: auto to avoid spilling long lines (#49) 2022-09-15 03:26:34 +02:00
dependabot[bot]
f70b720c7e
chore(deps-dev): bump js-beautify from 1.14.0 to 1.14.2 (#46)
Bumps [js-beautify](https://github.com/beautify-web/js-beautify) from 1.14.0 to 1.14.2.
- [Release notes](https://github.com/beautify-web/js-beautify/releases)
- [Commits](https://github.com/beautify-web/js-beautify/compare/v1.14.0...v1.14.2)

---
updated-dependencies:
- dependency-name: js-beautify
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-29 19:32:51 +02:00
dependabot[bot]
c9b3461ce6
chore(deps): bump actions/checkout from 2.3.4 to 3 (#43)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.4...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-02 18:40:29 +01:00
Timothy Vieregge
b1ebca14a6
Update config.toml (#41) 2022-01-24 08:08:18 +01:00
Andrew Jorgensen
2fa45b92a2
Fix a remaining issue with b8c8871 (#20) (#25)
It turns out my original proposal for #20 was correct, but not for the
reasons I thought. We need to set both `background-color` and `color` to
`initial` on `div.highlight pre` because that's where Chroma sets those
colors (including the default `color` if configured). Setting to
`initial` there makes it so that if the selected style *doesn't*
configure a default color, we'll use the `initial` color, which is going
to be the right choice because the reason style author left that unset
because they didn't consider dark color schemes messing with their
style. Then we `unset` the colors on `div.highlight code` because
otherwise the `code` colors from the theme will override the colors that
would otherwise be inherited from Chroma's `<pre>` element.

Stricly speaking I can't say that setting `background-color` to
`initial` is required, because I haven't found a Chroma style that
*doesn't* set a `background-color`, but I figure it's possible (at least
for a light theme) and it makes sense to fix it just in case, and causes
no harm otherwise.
2021-08-13 08:42:04 +02:00
Jan Raasch
78c5241a8e Revert "Do not touch div.highlight styles"
This reverts commit d3a86c7c6d.
2021-08-13 08:40:13 +02:00
Jan Raasch
a09bc35d1a chore: add demosite to theme.toml
see https://github.com/gohugoio/hugoThemesSiteBuilder#theme-configuration
2021-08-09 19:28:03 +02:00
Jan Raasch
d3a86c7c6d Do not touch div.highlight styles
Closes #25
2021-08-09 18:56:14 +02:00
dependabot[bot]
623c415b65
chore(deps-dev): bump js-beautify from 1.13.13 to 1.14.0 (#32)
Bumps [js-beautify](https://github.com/beautify-web/js-beautify) from 1.13.13 to 1.14.0.
- [Release notes](https://github.com/beautify-web/js-beautify/releases)
- [Changelog](https://github.com/beautify-web/js-beautify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/beautify-web/js-beautify/compare/v1.13.13...v1.14.0)

---
updated-dependencies:
- dependency-name: js-beautify
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-04 02:36:04 +02:00
dependabot[bot]
6408d03c68
chore(deps): bump peaceiris/actions-hugo from 2.4.13 to 2.5.0 (#30)
Bumps [peaceiris/actions-hugo](https://github.com/peaceiris/actions-hugo) from 2.4.13 to 2.5.0.
- [Release notes](https://github.com/peaceiris/actions-hugo/releases)
- [Changelog](https://github.com/peaceiris/actions-hugo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-hugo/compare/v2.4.13...v2.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-28 17:47:49 +02:00
dependabot[bot]
4304479210
chore(deps): bump peaceiris/actions-hugo from 2 to 2.4.13 (#28)
Bumps [peaceiris/actions-hugo](https://github.com/peaceiris/actions-hugo) from 2 to 2.4.13.
- [Release notes](https://github.com/peaceiris/actions-hugo/releases)
- [Changelog](https://github.com/peaceiris/actions-hugo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-hugo/compare/v2...v2.4.13)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 10:12:46 +02:00
dependabot[bot]
48b8486bca
chore(deps): bump actions/checkout from 2 to 2.3.4 (#29)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 2.3.4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v2.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-13 10:12:30 +02:00
dependabot[bot]
f6dd9d1e7c
chore(deps-dev): bump js-beautify from 1.13.11 to 1.13.13 (#26)
Bumps [js-beautify](https://github.com/beautify-web/js-beautify) from 1.13.11 to 1.13.13.
- [Release notes](https://github.com/beautify-web/js-beautify/releases)
- [Changelog](https://github.com/beautify-web/js-beautify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/beautify-web/js-beautify/compare/v1.13.11...v1.13.13)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 17:11:50 +02:00
dependabot[bot]
11d7e54cb9
chore(deps-dev): bump js-beautify from 1.13.5 to 1.13.11 (#24)
Bumps [js-beautify](https://github.com/beautify-web/js-beautify) from 1.13.5 to 1.13.11.
- [Release notes](https://github.com/beautify-web/js-beautify/releases)
- [Changelog](https://github.com/beautify-web/js-beautify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/beautify-web/js-beautify/compare/v1.13.5...v1.13.11)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-14 09:06:06 +02:00
Andrew Jorgensen
b8c8871191
fix: code highlighting using Chroma (#20)
Chroma sets `color` (usually) and `background-color` directly on a
`<pre>` element under a `<div class="highlight">` but the theme was
interfering with those color settings from both the `code` and `pre
code` selectors. Since Chroma highlighting is under a `highlight` class
we can `unset` the colors that are set by the `code` selector elsewhere,
so that under a `<code>` element that's under a `<div
class="highlight">` it will just inherit from the `<pre>` above it where
Chroma sets all it's colors.

The `color: initial;` instead of `color: unset;` is needed because some
Chroma styles don't set a default text color, and if you use `unset`
instead that lets the browser use a lighter default text color when
using a dark color scheme.

That's a sort of long winded way of saying that I think I've fixed the
color interference problem in a way that won't mess with anything else
in the theme. I've tested this on a wide selection of Chroma styles,
with both light and dark color schemes and it seems to work correctly in
all cases. Which is to say that Chroma appears to have full control of
both `color` and `background-color` for code blocks that it's
highlighting.

Fixes #19
2021-04-13 17:24:30 +02:00
Akira Baruah
be0ba327e3 feat: enable optional custom date format
Adds a .Site.Params.dateFormat setting to let users specify a Hugo-style
date format string for content. Previously, the date format was
hardcoded to "02 Jan, 2006", presumably to match the original BearBlog
style. This format gets used by default if the new "dateFormat" setting
is absent from the site config.
2021-04-12 17:18:41 +02:00
dependabot[bot]
b1fc6d298f
chore(deps): bump peaceiris/actions-gh-pages from v3 to v3.8.0 (#21)
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from v3 to v3.8.0.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...068dc23d9710f1ba62e86896f84735d869951305)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-26 09:55:16 +01:00
dependabot[bot]
49a3c425a1
chore(deps-dev): bump js-beautify from 1.13.4 to 1.13.5 (#12)
Bumps [js-beautify](https://github.com/beautify-web/js-beautify) from 1.13.4 to 1.13.5.
- [Release notes](https://github.com/beautify-web/js-beautify/releases)
- [Changelog](https://github.com/beautify-web/js-beautify/blob/main/CHANGELOG.md)
- [Commits](https://github.com/beautify-web/js-beautify/compare/v1.13.4...v1.13.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-19 03:48:42 +01:00
dependabot[bot]
fcbe531fc6
chore(deps-dev): bump js-beautify from 1.13.0 to 1.13.4 (#11)
Bumps [js-beautify](https://github.com/beautify-web/js-beautify) from 1.13.0 to 1.13.4.
- [Release notes](https://github.com/beautify-web/js-beautify/releases)
- [Changelog](https://github.com/beautify-web/js-beautify/blob/v1.13.4/CHANGELOG.md)
- [Commits](https://github.com/beautify-web/js-beautify/compare/v1.13.0...v1.13.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-22 15:06:01 +01:00
Jan Raasch
695c8d284e
docs: fix typo 2020-12-20 20:45:54 +01:00
Jan Raasch
bfb56d7471 chore: update dark screenshot 2020-10-02 16:19:19 +02:00
Jan Raasch
ed4cda1ac4 fix: improve accessibility on mobile
Fixes #6.

To be honest I did not think about this at all. I simply copied the code from the original »Bear Blog«

https://github.com/HermanMartinus/bearblog/blob/master/templates/base.html#L7

It seems like iOS ignores the declarations of user-scalable, minimum-scale, and maximum-scale, as of iOS 10, see https://sitebulb.com/hints/mobile-friendly/the-viewport-meta-tag-prevents-the-user-from-scaling/ so we might as well remove this.
2020-10-02 15:57:36 +02:00
Jan Raasch
39dbab8f8a chore: remove unused partial 🤷🏼‍♂️ 😇 2020-10-02 15:52:44 +02:00
Jan Raasch
6e2f054d42 fix: styling of ul.blog-posts
see 0c3efa6
2020-10-01 16:12:16 +02:00