bbaovanc
cc7cec07df
Revert "Set height and width specifically on img tag"
...
This reverts commit be12afb50d .
It causes issues with aspect ratio when the raw width of the image is
wider than the width in CSS pixels allowed by the body max-width.
Not reverting the refactor that removes {{ $img = . }} because I don't
know why that was there and will see if it works fine with it still
removed.
2025-07-03 20:15:17 -05:00
bbaovanc
be12afb50d
Set height and width specifically on img tag
2025-07-03 18:47:55 -05:00
bbaovanc
9d761b2f81
Only index pages; add pagefind metadata based on series/tags/categories
2025-07-02 02:08:01 -05:00
bbaovanc
ba9c106a88
Add data-pagefind-body to main content element
...
In preparation for adding Pagefind search support to bbaovanc.com. Those
templates will just go in the bbaovanc.com tree instead.
2025-07-02 01:21:05 -05:00
bbaovanc
150ee40fd5
Fix website title not showing up in OpenGraph tags
...
I don't know how I never noticed this or how long it's been missing.
Maybe it was never there?
2025-07-02 01:20:11 -05:00
bbaovanc
ca0f8d390c
Add workaround for code icon being chopped off on side
...
Introduced by 16f08dce7f . Since the aspect
ratio of the icon isn't square, it's too wide and collides with the text
next to it. Would be nice to follow #82 and switch to a better
maintained icon pack.
2025-07-01 02:57:55 -05:00
bbaovanc
62f0d42140
Add possibility for adding custom meta items to page
...
Fixes #67
2025-07-01 02:48:37 -05:00
bbaovanc
c06e7eb938
Remove assets/js/share-event.js
...
Moved this completely to bbaovanc.com repo. I think it was here as a
placeholder purely because of some issue with global resources not
working in the past. It seems like it maybe works fine now though.
2025-07-01 00:52:33 -05:00
bbaovanc
5a957bc745
Fix __hugo_ctx in include shortcode
...
See posts 2 and 3:
https://discourse.gohugo.io/t/weird-hugo-ctx-pid-34-inside-rendershortcodes/55176?u=bbaovanc
The 4 spaces causes it to think it's an inline code block.
2025-06-29 16:18:37 -05:00
bbaovanc
67ac36e9e2
Use resources to power the include shortcode
...
https://github.com/gohugoio/hugo/issues/13823#issuecomment-3015270202
Then I can just create unrendered pages for snippets. It fixes all the
markdown rendering related woes.
2025-06-29 03:41:37 -05:00
bbaovanc
6ff0ffb80b
Fix section summary rendering (Hugo 0.146)
...
Didn't notice this was broken because my public website doesn't use
subsections at all.
2025-06-29 02:36:58 -05:00
bbaovanc
ff4998f31b
debug: Show current template filename in bottom right
...
Only displayed when running live server. May remove in the future, just
need it now to make it much easier to reorganize some of the templates.
2025-06-28 03:25:46 -05:00
bbaovanc
1aa2f8ea5c
Move template files based on Hugo v0.146 revamp
...
See https://gohugo.io/templates/new-templatesystem-overview/
Under layouts/
- mv _default/* .
- mv partials _partials
- mv shortcodes _shortcodes
- mv taxonomy/list.html taxonomy.html
- mv taxonomy/term.html term.html
2025-06-28 03:07:02 -05:00
bbaovanc
04c3c007a8
Fix pagination for Hugo 0.146
2025-04-20 04:34:15 -05:00
bbaovanc
c9095e948b
Replace table shortcode with markdown attributes for class
2024-11-15 17:25:46 -06:00
bbaovanc
9b851ce0e4
Add "View raw" button to page to view raw markdown code of page
2024-10-01 13:29:14 -05:00
bbaovanc
91994df910
Create markdown output template
...
Further progress is blocked by Hugo feature requests:
- https://discourse.gohugo.io/t/render-alternative-output-format-outside-of-leaf-bundle-subdirectory/46968
- https://github.com/gohugoio/hugo/issues/8927
2024-09-28 20:10:22 -05:00
bbaovanc
ebf39263a6
Replace use of deprecated .Site.Social
2024-08-29 20:39:34 -05:00
bbaovanc
77afe66aa6
Support custom keywords instead of defaulting to using tags
...
Now can set `keywords:` in the front matter for actual keywords
2024-01-22 20:44:54 -06:00
bbaovanc
54e639ecc3
Don't automatically put copyright in <p>
2023-11-11 20:33:08 -06:00
bbaovanc
c980ced2fb
Remove back to top button
...
It's kind of ugly and weird, and probably not necessary. I might add it
back in the future if it's actually needed again.
2023-11-05 17:41:59 -06:00
bbaovanc
9ca15a198f
Revert "Load bobastyle.css async too"
...
This reverts commits f33492ef8e and 5c87c2b069 .
It turns out this makes performance score even worse because it makes
the CLS really bad
2023-11-05 01:20:20 -05:00
bbaovanc
5c87c2b069
Fix async loading of bobastyle.css
2023-11-05 01:00:22 -05:00
bbaovanc
6c42ae9518
Lazy load images
2023-11-05 00:56:13 -05:00
bbaovanc
f33492ef8e
Load bobastyle.css async too
2023-11-05 00:56:01 -05:00
bbaovanc
ffcae79156
Load syntax CSS async
2023-11-05 00:31:26 -05:00
bbaovanc
0f717e81c0
Patch link issue with delimit due to breaking change in Hugo v0.120
...
References:
- https://github.com/gohugoio/hugo/releases/tag/v0.120.0
- https://github.com/gohugoio/hugo/issues/10876
- https://github.com/gohugoio/hugo/issues/11502
2023-11-03 22:08:23 -05:00
bbaovanc
12c6efc0fe
Add "Skip to main content" tab-focusable button
...
- https://webaim.org/techniques/skipnav/
- https://css-tricks.com/how-to-create-a-skip-to-content-link/
2023-10-21 20:21:26 -05:00
bbaovanc
0e930f7ae1
Clean up dom layout of full-width page lists
...
They shouldn't be a child of the centered, max-width'd body because they
need to be full width. So put them outside of the main container div.
2023-10-21 19:44:02 -05:00
bbaovanc
289f55dc19
Throw error in include shortcode if file not found
2023-10-16 20:35:05 -05:00
bbaovanc
f94307cdbf
Redesign navbar to be full width
2023-10-15 19:33:10 -05:00
bbaovanc
fde24f7438
Fix navbar highlighting on section page itself
2023-10-15 17:49:56 -05:00
bbaovanc
c0426f191a
Revert ":3"
...
This reverts 50a207b8ee
2023-10-15 00:42:45 -05:00
bbaovanc
18731498e8
Minor W3C validation fixes
...
Hopefully more to come soon, there's a lot of errors and warnings
2023-04-06 00:25:08 -05:00
bbaovanc
ad5c40b02b
Use CSS to set footer font size instead of <small>
2023-04-06 00:18:18 -05:00
bbaovanc
17047babc0
Improve date element in page metadata
2023-04-06 00:08:28 -05:00
bbaovanc
7bc8a4cb57
Clean up CSS
...
- Add vim folds to make organized sections
- Rename a lot of classes from post- to page-
- Generalize series CSS classes better
- Clean up navbar div structure
- Remove langpicker and most of multilingual support
- many other minor tweaks
2023-03-24 08:49:02 -05:00
bbaovanc
d34b2a56d7
Remove series position indicator -- racy and buggy
2023-03-18 21:11:07 -05:00
bbaovanc
50a207b8ee
:3
2023-03-18 20:23:49 -05:00
bbaovanc
6f140f096b
Organize summary template files
...
Also a small CSS patch to fix margin around post-title
2023-02-28 18:24:19 -06:00
bbaovanc
316c62ebe8
Remove unnecessary credit.html partial
2023-02-28 17:54:22 -06:00
bbaovanc
f2f9e78559
Use RenderString instead of markdownify in some places
2023-01-27 16:14:23 -06:00
bbaovanc
ebaa1de00b
Add aria labels to share buttons
2023-01-26 16:36:03 -06:00
bbaovanc
1f8a82228e
Add include shortcode
2023-01-23 17:39:20 -06:00
bbaovanc
60ed1c0264
Serve fonts (Open Sans and JetBrains Mono) rather than use system
2023-01-22 20:46:18 -06:00
bbaovanc
3fae019148
Finish support for list page subtitle
...
Fixes #27 (as long as I didn't miss anything)
2023-01-22 16:43:09 -06:00
bbaovanc
629b3758b9
Change print button to an <a> to match the rest of the buttons
...
Also makes it have pointer cursor
2023-01-22 16:28:24 -06:00
bbaovanc
b200623dca
Fix keyboard accessibility of code block copy button
2023-01-22 16:22:51 -06:00
bbaovanc
80f5994d96
Improve code block copy text
...
- Use JS to get it directly from the code block instead of needing a
separate `pre.code-raw` to get it from. That makes it possible to:
- bashsession: Don't copy prompt or command output
2023-01-22 00:09:34 -06:00
bbaovanc
8eb642dbc8
Remove <hr> separator before footer
2023-01-21 23:32:32 -06:00