Commit Graph
100 Commits
Author SHA1 Message Date
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
bbaovanc c0426f191a Revert ":3"
This reverts 50a207b8ee
2023-10-15 00:42:45 -05:00
bbaovanc e8a34ae4a4 Add gap before page-list when there's no text description 2023-04-10 15:08:33 -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 e6b5997dff Move @media specializations section instead of previous commit
Reverts 960d1d24be
2023-04-06 00:12:43 -05:00
bbaovanc 960d1d24be Fix table of contents on print 2023-04-06 00:11:12 -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 1caa7acdc9 Prevent page breaking in some elements when printing 2023-01-27 16:39:04 -06:00
bbaovanc f2f9e78559 Use RenderString instead of markdownify in some places 2023-01-27 16:14:23 -06:00
bbaovanc dd65d55389 Make sure link-1 has enough contrast 2023-01-26 16:54:17 -06:00
bbaovanc c7acf8ce38 Add link-1 color to light theme too 2023-01-26 16:47:39 -06:00
bbaovanc d7647a0b6f Fix table borders between th and td in same line 2023-01-26 16:43:46 -06:00
bbaovanc ebaa1de00b Add aria labels to share buttons 2023-01-26 16:36:03 -06:00
bbaovanc 0744af717d Fix code block text sizing on mobile safari 2023-01-24 01:54:27 -06:00
bbaovanc 23f86d5982 Use relative URL for fonts
Makes it work when the website isn't on root (such as demo)
2023-01-24 01:34:23 -06:00
bbaovanc b854ae48e6 Specify table.markdown instead of just .markdown for table styling 2023-01-23 18:11:00 -06:00
bbaovanc 36a19a48b7 Add more borders in table for clarity 2023-01-23 18:10:11 -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 8ef1e3840a Change color when hovering over share buttons 2023-01-22 16:31:08 -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 9412906b4f Make the left bar of blockquote lined up with rest of text 2023-01-22 16:26:43 -06:00
bbaovanc f8cfad647f Fix contrast of code block Copy button 2023-01-22 16:23:03 -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 342710a755 Reduce gap between elements in subsections list 2023-01-21 23:34:34 -06:00
bbaovanc 8eb642dbc8 Remove <hr> separator before footer 2023-01-21 23:32:32 -06:00
bbaovanc a4be8b395b Remove video and add remote-figure shortcodes 2023-01-21 21:32:02 -06:00
bbaovanc 47d6d02186 Add copy to clipboard to code blocks 2023-01-20 17:14:18 -06:00
bbaovanc a26ea62b60 Refresh the code block design 2023-01-20 16:25:28 -06:00
bbaovanc 7cff045cb3 Website header title should not be h1 2023-01-07 20:50:01 -06:00
bbaovanc 9f080377e7 Allow adding descriptions to taxonomies 2023-01-07 20:40:46 -06:00
bbaovanc fb40c8a4c3 Small spacing tweaks with page titles 2022-07-20 21:48:55 -05:00
bbaovanc 0c248a4ca5 Prevent prompt symbol in console code blocks from being highlighted 2022-07-19 00:09:16 -05:00
bbaovanc 56d8a07893 Fix syntax highlighting background 2022-07-02 19:01:01 -05:00
bbaovanc 8aab2ca693 Fix chroma CSS overrides 2022-07-02 18:58:48 -05:00
bbaovanc e46288dc45 Update chroma (syntax highlighting) styles 2022-06-18 16:18:08 -05:00
bbaovanc 637ffc12f5 Rename seo-tags/description.html partial to seo-description.html 2022-06-12 19:01:05 -05:00
bbaovanc 2a40664bb6 Rename index.html to home.html in layouts 2022-06-12 18:51:30 -05:00
bbaovanc e34d2109ec Small semantic HTML tweaks 2022-05-23 01:33:24 -05:00
bbaovanc 54f89dad51 Make .post-content an <article> instead of <div> 2022-05-22 19:51:16 -05:00
bbaovanc 04b5017279 Add full-width-hr shortcode 2022-05-22 18:19:16 -05:00
bbaovanc a65a435b1d Replace <li> in page lists with semantic HTML <article> 2022-05-21 23:20:22 -05:00
bbaovanc 73dc916d5a Add animation to :target 2022-05-21 20:56:26 -05:00
bbaovanc e8be3ae45b Use tag name in keywords meta tag 2022-05-18 15:01:06 -05:00
bbaovanc 73ef9cc7a6 Update README.md 2022-05-18 12:45:32 -05:00
bbaovanc 4adb754ae3 Fix inline code links 2022-05-15 18:26:17 -05:00
bbaovanc 81709bb47e Set default cursor when hovering over current pagination page 2022-05-14 23:22:41 -05:00
bbaovanc 9c3a076e96 Overhaul color scheme 2022-05-14 23:19:52 -05:00
bbaovanc 833edacc1f Update aside shortcode with types and new accent colors 2022-05-14 00:13:01 -05:00
bbaovanc 121a67a1fc Remove unreachable errorf in aside shortcode 2022-05-13 14:34:43 -05:00
bbaovanc 8e3fb4038a Small shortcode cleanuo & use .IsNamedParams 2022-05-13 14:34:42 -05:00
bbaovanc e9266cdead Use h1 for website header 2022-05-09 20:03:13 -05:00
bbaovanc 3a4cb538f7 Add markdownify to see-also shortcode 2022-05-09 19:53:00 -05:00
bbaovanc de84bc5ddf Update tags and categories to both use the same layouts 2022-05-09 19:25:11 -05:00
bbaovanc 466c91a980 Improve categories list page layout 2022-05-09 18:56:40 -05:00
bbaovanc 8d81f5e37c Replace "View source" with "Edit history" 2022-05-08 16:13:46 -05:00
bbaovanc 7dd01894da Add print button 2022-05-08 15:21:41 -05:00
bbaovanc 9665133ba4 Make hr color solid 2022-05-08 15:15:20 -05:00