aboutsummaryrefslogtreecommitdiff
path: root/layouts
Commit message (Collapse)AuthorAgeFiles
...
* Automatically fetch extra stylesC. Lente2023-02-131
|
* Use relURLsC. Lente2023-02-133
|
* Separate sintax from styleC. Lente2023-02-101
|
* Better RSSC. Lente2023-02-101
|
* Translate no-postC. Lente2023-02-101
|
* Generalize translation menusC. Lente2023-02-101
|
* Move to double quotesC. Lente2023-02-092
|
* Use site.Home.Permalink instead of paramC. Lente2023-02-091
|
* Fetch menus from YAMLC. Lente2023-02-091
|
* Less menus on configC. Lente2023-02-091
|
* Remove style=C. Lente2023-02-092
|
* Reproduce lente.dev setupC. Lente2023-02-097
|
* Bring files from personal blogC. Lente2023-02-0111
|
* Revert "Fix link to »Blog« on demo page"Jan Raasch2022-09-151
| | | | | | | | 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
* Fix link to »Blog« on demo pageJan Raasch2022-09-151
| | | | 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` 🥹.
* Use `overflow-x: auto` to avoid spilling long lines (#49)Andrew Jorgensen2022-09-151
|
* Fix a remaining issue with b8c8871 (#20) (#25)Andrew Jorgensen2021-08-131
| | | | | | | | | | | | | | | | | | | 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.
* Revert "Do not touch div.highlight styles"Jan Raasch2021-08-131
| | | | This reverts commit d3a86c7c6d23cfe6f82d7d8405e3ab522e693a22.
* Do not touch div.highlight stylesJan Raasch2021-08-091
| | | | Closes #25
* fix: code highlighting using Chroma (#20)Andrew Jorgensen2021-04-131
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* feat: enable optional custom date formatAkira Baruah2021-04-122
| | | | | | | | 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.
* fix: improve accessibility on mobileJan Raasch2020-10-021
| | | | | | | | | | 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.
* chore: remove unused partial 🤷🏼‍♂️ 😇Jan Raasch2020-10-021
|
* fix: styling of ul.blog-postsJan Raasch2020-10-011
| | | | see 0c3efa6
* feat: add dark color scheme for dark modeJan Raasch2020-10-011
| | | | see https://github.com/HermanMartinus/bearblog/pull/51
* feat: hide blog link if page not created (#4)Nick Badal2020-09-171
| | | Allows this theme to be used for sites that do not have a blog.
* chore: initial commitJan Raasch2020-09-0315