Commit Graph

83 Commits

Author SHA1 Message Date
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
Jan Raasch
f6a67927cd docs: move "demo" 👆🏻 2020-10-01 16:02:12 +02:00
Jan Raasch
454d19d0a4 docs: link to "raw" screenshots 2020-10-01 16:01:26 +02:00
Jan Raasch
8e1715de8c style: some clean up 2020-10-01 15:58:10 +02:00
Jan Raasch
66e7de3522 docs: add dark screenshot 2020-10-01 15:53:45 +02:00
Jan Raasch
0b121f5eb6 docs: announce dark mode 2020-10-01 15:42:00 +02:00
Jan Raasch
0c3efa646d feat: add dark color scheme for dark mode
see https://github.com/HermanMartinus/bearblog/pull/51
2020-10-01 15:33:23 +02:00
Jan Raasch
fa9713088b chore: add dependabot.yml
see https://docs.github.com/en/github/administering-a-repository/keeping-your-dependencies-updated-automatically
2020-09-24 17:00:58 +02:00
Nick Badal
dcff8a4f85
feat: hide blog link if page not created (#4)
Allows this theme to be used for sites that do not have a blog.
2020-09-17 07:35:58 +02:00
Jan Raasch
3d510363c7 docs: improve wording on badges 2020-09-11 19:35:53 +02:00
Jan Raasch
053378a2d3 docs: more prominently display sponsorship possibilities 2020-09-09 19:02:14 +02:00
Jan Raasch
74877f3528 chore: enable »Stale«-bot 🖲
https://probot.github.io/apps/stale/
2020-09-04 09:25:01 +02:00
Jan Raasch
7e6d458745 docs(README): add ʕ•ᴥ•ʔ 🤩 😄 👋🏻 2020-09-04 09:04:50 +02:00
Jan Raasch
e13df26c71 refactor: move (non-post) pages to "content"-root 2020-09-04 09:02:09 +02:00
Jan Raasch
5880538157 chore: initial commit 2020-09-03 20:22:23 +02:00