forked from jaspervdj/hakyll
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose settings for the preview server
This enables customization of the settings used by the preview server, for example to implement URL rewriting. My particular use case is to mimic the `tryFiles` setting in nginx to add an extension when looking for a matching file. Then the URL can be `/projects/web` and it will match a file called `projects/web.html` -- a nice clean URL that doesn't require lots of subdirectories and every file being called `index.html`. (This change doesn't implement that feature directly as part of Hakyll, it just exposes the settings to enable building features like it in your `site.hs`.) Co-authored-by: Christopher League <league@contrapunctus.net> Co-authored-by: Brian McKenna <brian@brianmckenna.org>
- Loading branch information
1 parent
92e4399
commit a7e7e52
Showing
3 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters