bbaovanc
6251b033d5
Move article.page wrapping to summary.html instead of at list template
...
I am trying to make various templates and partials act more like
self-contained components.
This is in preparation for #113 .
2025-09-01 00:50:54 -05:00
bbaovanc
ef91527ed6
Remove leftover additional-head partial
...
This was removed from use in d50a4dc6bd ,
but the actual file was left in on accident.
2025-08-30 22:00:09 -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
20f22b7926
Improve semantic HTML tag usage on content pages
2025-08-24 03:52:23 -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
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
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
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
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
486fa65ad6
Finish video embed support
2025-07-27 03:33:25 -05:00
bbaovanc
d6cb2c12c8
Fix markdown rendering on caption of featured image
2025-07-27 01:43:59 -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
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
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
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