47 Commits

Author SHA1 Message Date
Caio Lente
729a354f4c
Add author meta tag (by @ttybitnik) 2024-04-08 15:28:46 -03:00
Caio Lente
c8673f43ba
Fix #13 2024-03-05 15:24:13 -03:00
Caio Lente
116e87f7d0
Heuristic for reducing font size on social cards with long titles 2024-02-06 13:55:31 -03:00
Caio Lente
f0643ea038
Merge branch 'main' into style/herman 2024-01-04 19:37:50 -03:00
Caio Lente
bd5d81f18c
Update author param 2024-01-04 17:32:06 -03:00
Caio Lente
bda54f97d8
Update social card logic 2024-01-04 17:21:51 -03:00
Caio Lente
7bee3815bd
Merge remote-tracking branch 'origin/main' into style/herman 2023-10-19 00:31:02 -03:00
Caio Lente
4edcba8dd1
Make images work with baseURLs containing a subdir 2023-10-18 23:36:03 -03:00
Caio Lente
26fa3804af
Merge remote-tracking branch 'origin/main' into style/herman 2023-10-17 15:50:58 -03:00
Caio Lente
bf804a0814
Improved RSS template 2023-10-17 15:41:36 -03:00
Caio Lente
77893ccf46
Move 'reply by email' button to the bottom of every post 2023-10-17 01:10:22 -03:00
Caio Lente
d796205bf8
Merge origin/main into style/herman 2023-10-17 00:06:07 -03:00
Caio Lente
591f62e523
Bring updates from main 2023-10-16 22:44:59 -03:00
Caio Lente
dc1d2cf057
Fix #2 2023-09-29 20:56:09 -03:00
Caio Lente
6f981964e0
Add i18n to skiplink 2023-09-29 19:57:55 -03:00
Caio Lente
d14c9c0dec
Merge branch 'main' into language-params-fix 2023-09-29 19:52:52 -03:00
Caio Lente
6f2e7d0c6f
Merge pull request #5 from 2kool4idkwhat/main
a11y: add a "skip to main content" link
2023-09-29 19:49:56 -03:00
Said Neder
363099d129 Update deprecated parameters use 2023-08-20 23:50:00 -07:00
2kool4idkwhat
afebeba99d
a11y: add skipnav link 2023-07-12 14:48:00 +02:00
huantian
300cf058e1
fix: change use of .Site.Language.Params.params -> .Site.Params
.Site.Language.Params was deprecated in Hugo 0.112.0, see https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120
2023-06-13 12:44:21 -07:00
C. Lente
2419e25e73
Update social cards 2023-04-27 12:25:09 -03:00
C. Lente
f26d122b2a
Make website title H1 2023-04-25 16:07:22 -03:00
C. Lente
488da01892
Better social card logic 2023-03-04 16:36:06 -03:00
C. Lente
f9ba6222e4
Dynamically generated social cards 2023-03-04 15:08:11 -03:00
C. Lente
a98c11f5f7
Add social links to config 2023-03-04 14:39:39 -03:00
C. Lente
f65d96962b
Fix lighthouse uncrawlable links 2023-02-27 16:32:22 -03:00
C. Lente
15a1e63122
Use relURLs 2023-02-13 16:50:21 -03:00
C. Lente
6e341272f5
Better RSS 2023-02-10 17:16:49 -03:00
C. Lente
17caeb985f
Generalize translation menus 2023-02-10 16:31:47 -03:00
C. Lente
cba0246af9
Move to double quotes 2023-02-09 17:51:22 -03:00
C. Lente
6d88b28c14
Use site.Home.Permalink instead of param 2023-02-09 17:31:27 -03:00
C. Lente
045c2e3495
Fetch menus from YAML 2023-02-09 17:28:32 -03:00
C. Lente
7a4c8fd24b
Less menus on config 2023-02-09 17:17:51 -03:00
C. Lente
1c249d7b3f
Remove style= 2023-02-09 17:02:15 -03:00
C. Lente
2ba59f18db
Reproduce lente.dev setup 2023-02-09 16:56:09 -03:00
C. Lente
3ec9550325
Bring files from personal blog 2023-02-01 15:06:05 -03:00
Jan Raasch
90982df8c9 Revert "Fix link to »Blog« on demo page"
This reverts commit 9863ab4f50b81073367145c3edc5a991bada5e53.

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
Andrew Jorgensen
fc2635f25d
Use overflow-x: auto to avoid spilling long lines (#49) 2022-09-15 03:26:34 +02: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 d3a86c7c6d23cfe6f82d7d8405e3ab522e693a22.
2021-08-13 08:40:13 +02:00
Jan Raasch
d3a86c7c6d Do not touch div.highlight styles
Closes #25
2021-08-09 18:56:14 +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
Jan Raasch
39dbab8f8a chore: remove unused partial 🤷🏼‍♂️ 😇 2020-10-02 15:52:44 +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
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
5880538157 chore: initial commit 2020-09-03 20:22:23 +02:00