Tom Alexander
ca1c456571
Pass the nav links in the PageHeader render context.
format Build format has succeeded
clippy Build clippy has succeeded
rust-test Build rust-test has succeeded
2025-02-22 22:49:59 -05:00
Tom Alexander
8d85d5ef79
Fix clippy.
format Build format has succeeded
clippy Build clippy has succeeded
rust-test Build rust-test has succeeded
2025-02-22 19:42:24 -05:00
Tom Alexander
7d73a3c948
Clean up.
2025-02-22 19:24:05 -05:00
Tom Alexander
c501f7cedc
Add syntax highlighting for bash.
format Build format has succeeded
clippy Build clippy has failed
rust-test Build rust-test has succeeded
2025-02-22 19:07:56 -05:00
Tom Alexander
04952895cf
Add support for highlighting python based on the nix highlighter.
2025-02-22 17:56:56 -05:00
Tom Alexander
749f6d7a55
Dynamically register which CSS files are needed.
2025-02-22 17:28:24 -05:00
Tom Alexander
c4cf814f8d
Also add highlighting for paths.
2025-02-22 16:55:53 -05:00
Tom Alexander
c601c8697a
Start a language-specific css file for highlight colors.
2025-02-22 16:25:36 -05:00
Tom Alexander
4ea1a46705
Update dust templates to support the new source code block format.
2025-02-22 16:13:23 -05:00
Tom Alexander
4cc04bda46
Update the render context to use the new src block format.
2025-02-22 16:04:47 -05:00
Tom Alexander
7e934cd360
Removed the enum and made plain src blocks just highlighted src blocks with only plain text in them.
2025-02-22 15:55:16 -05:00
Tom Alexander
c067ca9cc8
Introduce an enum for a separate highlighted src block type.
2025-02-22 15:22:35 -05:00
Tom Alexander
ae6f18d19c
Center images when they are the only contents in a paragraph.
format Build format has succeeded
clippy Build clippy has failed
rust-test Build rust-test has succeeded
build Build build has succeeded
2025-02-22 13:15:58 -05:00
Tom Alexander
c371b999d5
Use the raw timestamp source for rendering timestamps.
format Build format has succeeded
clippy Build clippy has failed
rust-test Build rust-test has succeeded
build Build build has succeeded
2025-02-22 12:23:35 -05:00
Tom Alexander
4a0cbf3ba5
Do not copy a file if it already exists.
format Build format has started
rust-test Build rust-test has started
clippy Build clippy has failed
2025-02-08 21:28:41 -05:00
Tom Alexander
59ee13345e
Copy the images into the output.
2025-02-08 19:55:50 -05:00
Tom Alexander
bf7f37260c
Mark the image files for copying.
2025-02-08 19:23:19 -05:00
Tom Alexander
ff478253c3
Generate render link based on path to file.
2025-02-08 19:14:08 -05:00
Tom Alexander
3e952ef0f4
Implement a macro for pushing the directory.
2025-02-08 18:37:32 -05:00
Tom Alexander
4e0f66401d
Update the dependency manager file stack when rendering blog post pages.
2025-02-08 18:01:59 -05:00
Tom Alexander
3867f965d2
Add a dependency manager for render-time actions.
...
This will be used for supporting things like copying static files or rendering code blocks like gnuplot or graphviz.
2025-02-08 17:29:09 -05:00
Tom Alexander
8fd37cbf22
Remove a previously completed TODO.
2025-02-01 23:28:09 -05:00
Tom Alexander
4fb67c18ae
Add support for rendering the images.
2025-02-01 23:14:20 -05:00
Tom Alexander
59a91331cc
Add support for target links.
format Build format has succeeded
build-natter Build build-natter has succeeded
rust-clippy Build rust-clippy has succeeded
rust-test Build rust-test has succeeded
2023-12-23 22:54:48 -05:00
Tom Alexander
35cf675c87
Fix clippy.
format Build format has succeeded
rust-clippy Build rust-clippy has succeeded
rust-test Build rust-test has succeeded
2023-12-23 21:36:24 -05:00
Tom Alexander
24218f2979
Generate post links, so far only top-level.
2023-12-23 21:22:43 -05:00
Tom Alexander
86d4e25aa0
Add support for a target variable in regular links.
...
This will initially be used for supporting "post://" links.
2023-12-23 20:35:27 -05:00
Tom Alexander
cb5d131097
Add support for plain links.
format Build format has succeeded
rust-test Build rust-test has succeeded
rust-clippy Build rust-clippy has succeeded
build-natter Build build-natter has succeeded
2023-12-23 19:23:39 -05:00
Tom Alexander
8905c9356b
Add a build for regular non-blog-post pages from org source.
2023-12-23 16:55:49 -05:00
Tom Alexander
397d4ea0bc
Fix clippy issues.
rust-test Build rust-test has succeeded
rust-clippy Build rust-clippy has succeeded
build-natter Build build-natter has succeeded
format Build format has succeeded
2023-12-23 07:08:06 -05:00
Tom Alexander
95d4ee7080
Render the table groups.
2023-12-22 18:06:55 -05:00
Tom Alexander
27ff13e675
Also special-case plain list items containing only paragraphs and sublists.
...
This seems to be the behavior of the upstream org html exporter.
2023-12-21 17:27:19 -05:00
Tom Alexander
2914e42ba1
For plain list items with a single child that is a paragraph, do not wrap in paragraph html tags.
...
This is mimicking the behavior from org-mode's HTML exporter.
2023-12-21 17:18:51 -05:00
Tom Alexander
72952adb6b
Add post_blank to the rust types.
2023-12-21 15:09:13 -05:00
Tom Alexander
5654c40d03
Get the real language for src blocks from the org source.
2023-12-21 12:07:36 -05:00
Tom Alexander
da81f93e4a
Re-enable the CSS reset sheet.
2023-12-19 18:06:52 -05:00
Tom Alexander
1581e5c401
Rename the output root directory in the render context.
2023-12-19 18:03:59 -05:00
Tom Alexander
2e1c979127
Add a prefix to footnote IDs.
...
This avoids a conflict with multiple blog posts rendering in the same stream.
2023-12-19 18:01:54 -05:00
Tom Alexander
d4b290ebe6
Remove unnecessary let statements from render macro.
2023-12-19 17:31:50 -05:00
Tom Alexander
261fe8a1a2
Fix the links to the blog posts.
2023-12-19 16:49:46 -05:00
Tom Alexander
add267d616
Switch over to using the render context in render calls.
2023-12-19 16:20:12 -05:00
Tom Alexander
cb3278aba5
Create a struct that will combine all the context for converting intermediate objects into the dust render context.
2023-12-19 14:54:12 -05:00
Tom Alexander
94d9a95967
Add a basic template for the blog stream page.
2023-12-19 14:13:29 -05:00
Tom Alexander
6511115b95
Implement a flawed version of RenderBlogStreamEntry::new.
...
There are some shortcomings in this implementation listed in the comments, but this is the general structure.
2023-12-19 10:59:34 -05:00
Tom Alexander
53cd55932b
Implement RenderBlogStream::new.
...
I still need to implement RenderBlogStreamEntry::new.
2023-12-19 10:47:03 -05:00
Tom Alexander
cbe2010407
Invoke dust to render the stream pages.
...
At this point the render_blog_stream function is done, but RenderBlogStream::new needs to be implemented to actually generate the render context. The body of this function should be similar to convert_blog_post_page_to_render_context.
2023-12-17 17:26:15 -05:00
Tom Alexander
2ba4a5e3d7
Generate newer and older links.
2023-12-17 17:16:26 -05:00
Tom Alexander
e8ed4a4f4a
Initial structure for rendering a blog post stream.
2023-12-17 15:32:07 -05:00
Tom Alexander
c98489cacb
Add the page header to the render context.
2023-12-17 14:45:42 -05:00
Tom Alexander
35dbab0ceb
Create a page header struct.
2023-12-17 14:45:42 -05:00