bbaovanc
4bc8184593
Add arrow in the right side of list page section buttons
...
This makes it more obvious that you can click this to view a different
area.
2025-08-27 11:38:29 -05:00
bbaovanc
22e7ad4b77
Remove nested list-page-container to simplify layout CSS on section page
...
Originally I was using gap on a flexbox to separate the .sections
container from the rest of the page list. But it's simpler if I just use
block layout and a bottom margin, then I don't need an extra layer of
div.
2025-08-27 11:13:48 -05:00
bbaovanc
c2b10a6c99
Use hierarchical naming on top and its elements
...
Any element that can't stand on its own as a self-contained component
should have its naming nested under whatever parent it's supposed to
have.
Fixes #109
2025-08-27 10:50:52 -05:00
bbaovanc
c7c1ee0f0a
Put title on series page in div.page-title like other taxonomy pages
...
This must've gotten out of sync somehow throughout the history. It
slightly changes the margins by disabling the default one on h1, which
is slightly larger than the breadcrumb nav margin-block's.
2025-08-25 13:44:08 -05:00
bbaovanc
d90f64fb86
Only show hr on home if homepageLatestPosts enabled
...
Otherwise there's just a random line separator for no reason.
2025-08-24 04:05:10 -05:00
bbaovanc
20f22b7926
Improve semantic HTML tag usage on content pages
2025-08-24 03:52:23 -05:00
bbaovanc
267652a7e4
Use specific class for website footer instead of generic tag selector
...
Just in case I ever want to use the footer tag anywhere else on the
page. I'm not sure if I'm reading this right, but it sounds like it
would make sense to put all the buttons at the bottom of the content
pages as a footer as well. I will have to reconsider this again in the
future.
2025-08-24 03:49:54 -05:00
bbaovanc
310961215e
Rename list.html to taxonomy.html in authors and series
...
Matches the changes made in Hugo 0.146.0
2025-08-24 02:57:33 -05:00
bbaovanc
741b3bc01b
robots.txt: Stop Bing from complaining about md output not having title
2025-08-20 19:00:42 -05:00
bbaovanc
df2fae9886
Update min_version because of template system refactor
...
I think this version has the newest features that I'm using. Hopefully I
didn't miss/forget about something when skimming through the Hugo
release history just now.
2025-08-16 03:21:27 -05:00
bbaovanc
f38abfe73f
archetype: Update blog to match figure shortcode revamp
2025-08-16 00:27:17 -05:00
bbaovanc
3d55a7dabe
Use individual <a> for each tag/category/etc in post metadata
...
Fixes #85
2025-08-09 22:34:11 -05:00
bbaovanc
67de113bdf
Change <header> to be entire top bar
...
This is more semantically correct.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/banner_role
2025-08-09 21:10:57 -05:00
bbaovanc
349672bbad
Hide comments counter when JavaScript disabled
2025-08-09 20:54:51 -05:00
bbaovanc
ec382b2085
Remove unused .view-section rule
...
It was introduced in 906b6213fd but it
doesn't look like it was actually used for anything.
2025-08-09 20:15:44 -05:00
bbaovanc
21f2a91b54
refactor: Move skip to main content CSS into baseof formatting section
2025-08-09 20:15:43 -05:00
bbaovanc
0237c496ed
refactor: Move components on both list & content pages to different fold
2025-08-09 20:15:38 -05:00
bbaovanc
61d5ca29dd
Set specific height of code block header
...
Otherwise it collapses to be too tiny if the copy button is removed.
2025-08-09 03:27:26 -05:00
bbaovanc
8bb8720545
Hide code block copy button when JavaScript is disabled
2025-08-09 03:27:05 -05:00
bbaovanc
bd8e34a381
Support opengraph structured properties on image and video
2025-08-09 02:53:46 -05:00
bbaovanc
62cdcf5b11
Add warning if twitter username is missing
...
I don't know if the docs are correct, but they seem to say that
twitter:site is required for a card to render at all. Better safe than
sorry.
https://developer.x.com/en/docs/x-for-websites/cards/overview/markup
2025-08-09 02:40:03 -05:00
bbaovanc
c9909762d6
Remove use of style attributes on top level comment section elements
2025-08-09 02:20:33 -05:00
bbaovanc
cc4af0c385
Add comment explaining why comments.css is not in head
2025-08-09 02:13:15 -05:00
bbaovanc
7aeb95a437
Add paragraph around comment section "Enable JavaScript" warning
2025-08-09 01:55:43 -05:00
bbaovanc
14475c13f4
Remove full-width-hr shortcode
...
Not sure what I planned to use this for. It has since become outdated
and out of sync with the new margins I set on body recently in
4e753395ba and
6b729c6acf .
2025-08-08 14:10:20 -05:00
bbaovanc
6b729c6acf
Adjust margins on related-posts to match rest of body
...
Didn't notice this when writing 4e753395ba
2025-08-08 14:01:37 -05:00
bbaovanc
f751c4b104
Remove unused .full-width-page-list rule
2025-08-08 13:51:50 -05:00
bbaovanc
de20387b5a
Fix useless scrollbar on related posts
...
When all related posts fit on the same screen, there was a useless
scrollbar. I never noticed this because Firefox incorrectly hides the
scrollbar automatically. The issue is visible on Chromium.
2025-08-08 13:45:30 -05:00
bbaovanc
84004d3ac0
Change pagefind to only index the content of articles
...
Fixes #97
2025-08-08 01:42:25 -05:00
bbaovanc
52a6440011
Remove heading-link class
...
It was used to make both website title and page titles in summaries not
have link color. Instead, just directly configure those elements.
2025-08-08 01:41:38 -05:00
bbaovanc
322928ed7a
Reorganize CSS to have better sections
...
- Separate baseof.html elements from styling code for general elements
used everywhere
- Rename some of the fold titles
- Include related posts section styling in the content styling section
2025-08-08 01:28:28 -05:00
bbaovanc
4e753395ba
Align top bar with main horizontal margin
...
- Use a variable to make sure that top bar and body margins stay equal
- Lower side margins to 16px so that the gap in navbar-items fits right
2025-08-08 01:02:04 -05:00
bbaovanc
5d335647d0
Remove description-or-summary partial and just use .Summary
...
I think this may have changed in Hugo's history, but now description and
summary are considered different things. The description is what goes in
metadata (and what search engines see), while the summary is the blurb
about the article that should be displayed when rendering a summary
(what I should've been using always here).
2025-08-07 02:17:24 -05:00
bbaovanc
22fff1a9c5
Replace _internal subdirectory in partials
...
I originally put it there to mimic the old pattern before Hugo 0.148,
but it probably just makes things confusing.
Fixes #90
2025-08-07 01:05:06 -05:00
bbaovanc
b79c956c07
Remove make figure images centered and remove border
...
Also use a generic .figure-media class instead of manually specifying
both img and video in the CSS
Fixes #36 and a draft issue
2025-08-05 21:49:28 -05:00
bbaovanc
b15ca73977
Remove a few unnecessary elements when printing
...
- Hide clickable link icon on headings in articles
- Hide "Copy" button on code blocks
- Hide "View raw" button in page metadata
2025-07-30 01:45:11 -05:00
bbaovanc
ccb5170d2b
layouts: Rename list to section and single to page
...
This makes them more specific. For example, section.html can't
accidentally be a fallback for taxonomy.html, and page.html can't for
term.html.
Fixes #88
2025-07-30 01:19:19 -05:00
bbaovanc
433dd125e2
Add comment counter to page metadata
...
Also move the Isso script tag from comments.html to the <head>, since it
essentially needs to load on all pages.
Fixes #94
2025-07-30 00:43:05 -05:00
bbaovanc
d50a4dc6bd
Import remaining template and styling code from bbaovanc.com
...
It's probably better structure-wise to have it all consolidated in
bobatheme. Then bbaovanc.com is only concerned about content, not stuff
that I declared to be specific to my site. This came from when I had
multiple sites running bobatheme in the background, so now it's just an
arbitrary, legacy distinction.
Fixes #86
2025-07-30 00:43:05 -05:00
bbaovanc
bbe76a44bb
Allow backticks in figure inline caption using \bt
...
Workaround for multline strings bounded with backtick not supporting any
way to escape one to type it inside the string.
2025-07-30 00:43:05 -05:00
bbaovanc
8845272d4d
Merge branch 'rewrite-figures'
...
Fixes #87
Fixes #61
2025-07-27 03:55:06 -05:00
bbaovanc
5afaf2ce3e
Fix fallback to resource title for figure caption
2025-07-27 03:33:44 -05:00
bbaovanc
486fa65ad6
Finish video embed support
2025-07-27 03:33:25 -05:00
bbaovanc
f371afe529
Support using src with custom caption parameter in figure shortcode
2025-07-27 02:34:44 -05:00
bbaovanc
8f79d2af3a
Allow using positional parameter for figure caption
2025-07-27 01:44:08 -05:00
bbaovanc
d6cb2c12c8
Fix markdown rendering on caption of featured image
2025-07-27 01:43:59 -05:00
bbaovanc
2fa53d1f2c
Remove render-image override
...
We can just use the resource shortcode in content files
2025-07-27 00:44:45 -05:00
bbaovanc
e0d2c536e4
WIP
2025-07-06 19:45:00 -05:00
bbaovanc
8fafc843ef
WIP
2025-07-06 19:44:46 -05:00
bbaovanc
1f82ad4f0b
Add support for twitter:creator tag
...
Put `twitter` metadata on an author
2025-07-05 02:06:39 -05:00
bbaovanc
7e016547ec
Remove redundant twitter tags since they falls back to opengraph
2025-07-05 01:46:42 -05:00
bbaovanc
b4bff1e36d
Use content view to customize <title> on author's page
2025-07-04 15:50:38 -05:00
bbaovanc
1f9477759d
Revert "debug: Show current template filename in bottom right"
...
This reverts commit ff4998f31b .
Not that useful. In the future, probably need to make an entire like
debug menu with a bunch of info about the current page rendering and a
bunch of variables.
2025-07-04 15:35:58 -05:00
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
16f08dce7f
Tweak icon size and alignment
...
Use em units so it matches the text size automatically. Using sub for
vertical-align seems to look a little nicer? Maybe only so because now
the height of icon matches the font size now.
2025-07-01 02:09:15 -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
6e7160efbb
Remove exampleSite
...
This isn't really kept up to date these days, the example site is
bbaovanc.com.
2025-04-20 04:41:57 -05:00
bbaovanc
04c3c007a8
Fix pagination for Hugo 0.146
2025-04-20 04:34:15 -05:00
bbaovanc
ad7432155f
Update jam icons repo to my own reupload
2025-04-19 01:13:33 -05:00
bbaovanc
0aaf865b75
Rename privacy.twitter.enableDNT to x due to deprecation in Hugo
2025-04-19 00:58:23 -05:00
bbaovanc
c9095e948b
Replace table shortcode with markdown attributes for class
2024-11-15 17:25:46 -06:00
bbaovanc
ddb57e0120
Merge branch 'markdown-output'
2024-10-01 13:30:00 -05: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
f34cffb849
Make markdown output "ugly"
...
This makes it so, for example, `/blog/swapfile-guide` has markdown file
at `/blog/swapfile-guide.md` instead of `/blog/swapfile-guide/index.md`.
2024-10-01 13:28:19 -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
e84f334591
Replace paginate with pagination.pagerSize in hugo.yaml
2024-09-24 21:17:41 -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
788583ea23
Update syntax styles to fix user-select
...
Turns out the last commit didn't work because bobastyle.css has lower
priority than the syntax CSS. But Hugo must've updated the styles
upstream because it's fixed after regenerating.
2023-12-01 20:05:42 -06:00
bbaovanc
4216b9ed6f
Add vendor-prefixed user-select to code block line numbers
2023-12-01 19:57:39 -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
a59a87374b
Rename config.yaml to hugo.yaml
2023-11-04 20:55:02 -05:00
bbaovanc
88adfbdf89
Move site author to under params due to .Site.Author deprecation
...
See Hugo v0.120.0
2023-11-03 23:33:28 -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
ede5958a46
Fix main container padding when printing
2023-11-02 01:01:24 -05:00
bbaovanc
0b3b160e87
Rename config.yaml to hugo.yaml in exampleSite
2023-10-21 21:45:22 -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
0ddf0bdf42
Improve print compatiblity with navbar redesign
2023-10-15 20:54:11 -05:00
bbaovanc
03d826f1c4
Fix wrong highlight color on navbar
2023-10-15 19:40:45 -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