summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Add support for other URL schemesBen Bridle2026-11-10
| | | | | | | | If an external URL has a scheme that isn't either http, https, or mailto, the link label will contain the scheme in order to make it clear to viewers that the link is different to usual. This was added to support 'gemini://' links.
* Preserve URL fragment on HTML redirectBen Bridle2026-11-10
| | | | | | | | | | | The generated HTML redirect pages will now preserve any URL fragment when redirecting to the new page, so that the URL '/page#heading' can now redirect to '/real-page#heading'. Previously, the URL fragment would just be dropped. The URL fragment will additionally be run through a transformation function to match the URL style generated by Toaster. The meta redirect approach still works if JavaScript is not available.
* Fix default HTML templateBen Bridle2026-11-10
| | | | The default HTML template was missing the opening <html> tag.
* Remove path_add_extension attributeBen Bridle2026-11-09
| | | | | The path_add_extension feature stabilised a while ago, so the attribute is no longer required.
* Don't treat period and comma as whitespace characters when quotingBen Bridle2026-09-07
| | | | | | When toaster auto-replaces regular quote characters with directional variants, any quote characters placed after the end of a sentence will now correctly point to the left.
* Update markdown dependencyBen Bridle2026-09-07
| | | | | This was a minor version bump that fixes an issue with using a dollar sign inside a table cell.
* Break list lines on ': ' instead of just ':'Ben Bridle2026-03-04
| | | | | This prevents strings like '7:00am' from breaking a list line, the colon must be followed by a space.
* Omit outer heading link if heading title contains a linkBen Bridle2026-03-02
| | | | | | <a> tags can't be nested in HTML, so we omit the outer link on the heading (that links to itself) if the title itself contains a link. This avoids generating a nested <a> tag.
* Sanitize heading names in table of contentsBen Bridle2026-03-02
| | | | | Heading names in the table of contents are now sanitised and fancified, so that quotes and em-dashes and the likes are shown properly.
* Remove dead codeBen Bridle2026-03-02
|
* Collapse consecutive hyphens in slugsBen Bridle2026-03-02
| | | | | | | Previously, a heading or page called something like 'Name - subtitle' would become the slug 'name---subtitle' because the hyphen is stuck between spaces which also become hyphens. This looks silly. The new function will generate the slug 'name-subtitle' instead.
* Fix variable nameBen Bridle2026-03-02
| | | | | Variable containing the name of the current page was incorrectly called site_name.
* Use website name as name of the root index pageBen Bridle2026-02-24
|
* Update version to 2.0.1v2.0.1Ben Bridle2026-02-24
|
* Fix special yes/no/-- syntax for tablesBen Bridle2026-02-24
| | | | | These values weren't being matched correctly because whitespace wasn't trimmed beforehand.
* Update version to 2.0.0v2.0.0Ben Bridle2026-02-22
|
* Support linking to generated feedsBen Bridle2026-02-22
| | | | | The has_static routine that checks whether links to static files are valid now correctly considers generated feeds as static files.
* Big rewriteBen Bridle2026-02-22
| | | | | | | | | | | A quick list of everything that's changed: - links to a duplicate heading beneath the same level 1 heading now work - rss feed generation using a .feed file - customisation of the html template using the html.template key - option to use symlinks instead of copying static files - fixed incorrect resolution of internal links - simplified different name forms with the Name type - allow linking to a redirect
* Move string utilities to separate moduleBen Bridle2026-02-06
| | | | This makes things tidier.
* Add commentsBen Bridle2026-02-06
| | | | More housekeeping to make the codebase more understandable.
* Update switchboard dependencyBen Bridle2026-02-06
| | | | This has no real effect on the program, it's more for tidiness.
* Update version to 1.13.0v1.13.0Ben Bridle2026-02-05
|
* Auto-insert line breaks for environment-free math fragmentsBen Bridle2026-01-31
| | | | | | | This was an important functionality for a lot of my math notes, so I've brought it back, but only if the math syntax fragment doesn't contain a '\begin', which denotes the sort of advanced environment where automatic line breaks are not welcome.
* Improve smart-quote direction around punctuationBen Bridle2026-01-30
| | | | | An apostrophe or quotation mark should point right (start a quote) if it is preceded either by whitespace or a punctuation character.
* Don't auto-insert line breaks for math syntax fragmentsBen Bridle2026-01-30
| | | | | Some KaTeX contexts (matrix, array) don't work correctly if every line is manually broken, so we now leave this up to the user.
* Support markdown line elements in page titlesBen Bridle2026-01-30
| | | | | | Page titles are now treated as markdown and rendered as HTML. The URL for a page will be the plain-text version of the title, with markdown syntax stripped out.
* Add rust-toolchain.toml fileBen Bridle2026-01-30
| | | | | This makes it easier for other people to compile Toaster, by not having to specify +nightly.
* Update markdown dependencyBen Bridle2026-01-30
| | | | | | This fixes an issue where tables that contain line elements that themselves contain characters that are valid delimiters for another line element were not being recognised as tables.
* Allow using regular images in galleriesBen Bridle2025-12-12
| | | | | | | Galleries previously required images to be placed in /images/large/.. and /images/thumb/.., but this was a chore if there was only a single average-quality version of the image to display. The path /images/.. is now used as a fallback if these more specialised paths do not exist.
* Allow pages to contain duplicate headings under different h1 headingsBen Bridle2025-12-12
| | | | | This kind of works, but the whole system will have to be rewritten from the ground up so that every heading knows its own canonical name.
* Update markdown dependencyBen Bridle2025-12-12
| | | | | This adds ignoring of pipe characters in styled tokens in tables, so that I can use pipe characters inside equations in tables.
* Update highlight dependencyBen Bridle2025-12-12
|
* Wrap each <video> element in a <figure>Ben Bridle2025-10-17
| | | | This is needed to be able to center a video in the page.
* Add an override-title syntax for overriding the page title shownBen Bridle2025-10-17
|
* Add a html.redirect.head key to insert text into HTML redirectsBen Bridle2025-10-17
| | | | | This is needed so that I can include the analytics script in all of my redirect pages.
* Allow folder names to contain a numeric prefix for sorting purposesBen Bridle2025-10-10
| | | | | | Markdown files could use a numeric prefix to force files to sort in a particular order, with that prefix being stripped off and ignored by toaster. This commit allows folders to also use a sorting prefix.
* Change commentsBen Bridle2025-10-10
|
* Remove document parameter from functionsBen Bridle2025-10-10
| | | | | The markdown document is already passed as a field on the page argument, so passing it in as a separate argument was redundant.
* Wrap each heading with an <a> tag that links to that headingBen Bridle2025-09-04
| | | | | | This is so that a heading can be clicked to get a permalink to that heading, which is useful when sending someone a link to a particular section of a document.
* Wrap each h1-delimited block of a generated page in <article> tagsBen Bridle2025-09-04
| | | | | This is to make it possible when printing the document to start each h1 heading element at the top of a new page using CSS.
* Add table of contents sidebar to generated HTMLBen Bridle2025-09-04
| | | | | This is in addition to the existing table of contents at the top of each page.
* Update highlight dependencyBen Bridle2025-08-21
| | | | | This considerably reduces the binary bloat originally introduced by the highlight crate.
* Add embed-html-head and override-html-head fragment typesBen Bridle2025-07-29
| | | | | | These will both add content to the <head> HTML element on that page, with the override variant also preventing the default head declared in the toaster.conf file from being used on that page.
* Qualify page names in log messagesBen Bridle2025-06-09
| | | | | The name of each page is now prefixed with the name of the parent in log messages, to disambiguate between pages that share the same name.
* Update version to 1.12.0v1.12.0Ben Bridle2025-05-21
|
* Implement syntax highlighting for syntax fragmentsBen Bridle2025-05-21
| | | | | | | A new key 'highlighters' has been added to the toaster.conf file. The value should be a line defining the languages to use that syntax for, like [py/python]. The lines following are the template definitions, as per the highlighter library.
* Update vagabond libraryBen Bridle2025-05-21
|
* Update log libraryBen Bridle2025-05-21
|
* Sanitize quotes in file pathsBen Bridle2025-05-21
|
* Refine dash replacement rulesBen Bridle2025-05-21
| | | | | A dash that isn't mid-word will be replaced with an em dash if in the middle of a line, or with an en dash if at the start of a line.