Commit Graph

127 Commits

Author SHA1 Message Date
dde3fb61ae Move all bergamot partials and shortcodes into theme
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-09-15 20:09:47 -07:00
378a6f2ae1 Load custom JS scripts if page specifies them
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-09-15 20:03:05 -07:00
aae8912c08 Add support for custom input modes
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-09-15 19:48:32 -07:00
84278b2e91 Update theme with missing file 2024-09-15 16:39:00 -07:00
3a281dfa8a Load presets from front matter + allow both bundled and global bergamot files
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-09-15 16:18:48 -07:00
dee7579b29 Move bergamot widget into blog theme
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-09-15 15:28:31 -07:00
acaa00754b Fix sidenotes bleeding into text inline
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-07-16 14:30:26 -07:00
c00867d46b Markdown-ify sidenote labels
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-07-06 17:36:38 -07:00
8c3d93bc2d Add a 'draft link' shortcode
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-07-06 17:25:02 -07:00
f931e6eceb Properly close placeholder div
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-27 22:31:56 -07:00
acf86b8d76 Add a placeholder for "next in series" if the series is ongoing
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-26 19:48:55 -07:00
a5cda19e5e Remove unused whitespace in seriesnav.html
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-26 19:35:23 -07:00
7c085b4d39 Always link to root RSS feed on every page
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-26 19:21:46 -07:00
5b5b971538 Make headings clickable
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:53:17 -07:00
f4e0bed9cd Avoid line breaking inside figures
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:43:13 -07:00
109ff6ce95 Expand sidenotes inline in print
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:42:47 -07:00
99247db83d Disable margin content in print
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:41:36 -07:00
ce4161db0d Switch it to a block comment
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:26:44 -07:00
2c57790c59 Add a comment describing the feather situation
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:26:15 -07:00
1bc7cba988 Add logic to disable showing non-inline CSS
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:23:06 -07:00
ed270bc915 Hide checkboxes and icons when no CSS in head is loaded
This seems to help in Firefox's reader mode.
Also adjust images to not be huge without CSS.

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 19:21:46 -07:00
8b6874ec75 Allow disabling external-links-in-new-tab
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-24 17:51:46 -07:00
6921dbbd08 Disable down link icons since they're buggy
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-23 17:24:28 -07:00
a622d4d77c Add a border around images in figures
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-23 17:24:14 -07:00
1a9d9f33cf Use proper link concatenation
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-23 14:17:15 -07:00
7e8a89ccd2 Make fullwide images actually fullwide
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-23 13:54:08 -07:00
7b3ef86744 Write up and down arrows on internal links to headings
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-23 13:52:43 -07:00
60041d1d37 Restore whitespace to tag list
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-19 22:44:28 -07:00
2a77e0d308 Remove trailing whitespace from icon partial
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-19 22:42:49 -07:00
9abee96bd2 Fix double-used navigation ID and odd centering issue
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-19 22:28:49 -07:00
13eeadf6f0 Avoid using global 'page' variable in partial
This seems to have an undesired effect when called from a shortcode

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-19 22:17:43 -07:00
f677a3731c Add a series nav shortcode to display navigation early
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-19 22:03:33 -07:00
a8549922c3 Trim more whitespace from template
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-19 21:57:25 -07:00
db9433bda1 Extract series navigation into a partial
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-19 21:56:00 -07:00
25e9057dd8 Use ... instead of '. . .' in truncated summaries
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-19 17:31:00 -07:00
e431a4f22b Add an external link marker to external links
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-19 17:30:46 -07:00
a4bff7623d Don't re-print the name of series when listing pages
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-16 19:41:27 -07:00
b282843b40 Add a 'name in series' helper to re-use logic
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-16 19:35:31 -07:00
b1d4dd7a32 Adjust post.html to take a dict
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-16 19:35:07 -07:00
df22cb2b87 Use data from hosts.json to pull in link anchors
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-09 18:50:00 -07:00
4b19da5006 Reduce whitespace in templates and avoid polluting the page scratch
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-09 18:36:54 -07:00
ec7b58c8ec Avoid passing in .Site-variables to geturl.html
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-06-09 18:14:53 -07:00
97e965feec Add a nicer comment color in dark mode
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-05-27 18:57:58 -07:00
5bfbaf397b Allow both 'agda' and 'Agda' in highlight groups
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-05-23 00:56:51 -07:00
5e6b28a9a6 Insert series meta for Agda post-processing
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-05-22 22:41:47 -07:00
d088d79d3f Display base path and file path even if lines aren't set in highlight group
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-05-22 17:06:17 -07:00
1aeb600750 Set 'bestPath' to empty by default instead of nil
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-05-22 16:35:04 -07:00
3ccb5e8c65 Nicely stylize links in code blocks
This is mostly for Agda rendering.

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-05-22 15:25:42 -07:00
e531ebd992 Also include the base path and the file path in highlight groups
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-05-21 21:44:59 -07:00
8a5bbf460b Trim whitespace in more places
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
2024-05-21 21:42:35 -07:00