summaryrefslogtreecommitdiff
path: root/src/main.rs
Commit message (Collapse)AuthorAge
* Set last-modified time of generated files same as source fileBen Bridle2025-02-01
| | | | | | | | | | | | | When generating a file from a source file, the last-modified time of the generated file will be set to be the same as the last-modified time of the source file. This is so that when copying the generated website to a server with rsync, only modified files will be copied over, saving considerable time. This commit also updates vagabond to the latest version which includes a change where files are only copied if they have been modified or if they haven't yet been copied. This saves considerable time when generating the website, if the website contains large static files.
* Improve error message when source directory cannot be foundBen Bridle2025-01-22
|
* Allow redirects to point to external websitesBen Bridle2025-01-18
| | | | | | If the path in a .redirect file contains any scheme (detected as ://), the path is used as-is instead of trying to resolve to the name of an internal page.
* Implement redirectsBen Bridle2025-01-15
| | | | | Source files with extension .redirect will be converted into redirect pages linking to the internal-style URL in each file.
* Rewrite link handling and add navigation features to generated HTMLBen Bridle2025-01-09
|
* More robust file traversal logicBen Bridle2025-01-08
| | | | | | | | | | | | | | File traversal can now cope with symbolic links. The original path to each file is preserved where before they were unintentionally canonicalized, so the source folder prefix can now be correctly stripped from the path of each source file. This commit also adds the !folder syntax from the original toaster. Directories with a !-prefix are copied without modification to the site root. A --delete option has been added to the program. When this option is set, the destination directory is first deleted if it already exists.
* Load default CSS and JavaScript files from site rootBen Bridle2025-01-07
| | | | | | | | | | | | | Instead of linking to a static path for the CSS and JavaScript files in the head of each generated HTML document, dynamically generate a relative path that backtracks to the site root before descending into the chosen directory. This ensures that all pages will link to the same set of CSS/JS files, no matter how deeply nested. This could have been accomplished through the use of absolute paths, but I want the websites generated by this program to be able to be freely mixed and matched with existing websites, which requires the use of relative paths only.
* A collection of fixesBen Bridle2025-01-07
| | | | | | Fixed a lot of issues around internal relative links and link validity checks. Added a math fragment syntax and the $$..$$ math form. Added heading link validity checks.
* Initial versionv1.0.0Ben Bridle2025-01-06