Commit Graph

9 Commits (a50504f747ba6ad4b3be63e68ca5c24901d6bfde)
 

Author SHA1 Message Date
Luther Wen Xu a50504f747
feat: Add static path and per-template style.css
The handler now searches in the static path first and fallback to
the content directory otherwise. If that fails, the 404 template is
rendered as expected.

The style.css path is now reserved for templates' style.css file and
does not follow the regular search path. This means that /style.css will
serve a 404 page even if static/style.css or content/style.css.md
exists.
2020-12-01 22:16:56 +07:00
Luther Wen Xu ccc23cead0
feat: Implement basic handler functionality
The `default` handler is currently all empty and should be setup in the
future. It's currently present as the default theme is in fact, default.

The debug template can be used to debug the content being passed into
the template as it just prints them out.
2020-12-01 15:12:30 +07:00
Luther Wen Xu 2225bc34e4
feat: Implement config parsing and start a server based on config 2020-12-01 15:12:24 +07:00
ALI Hamza 7e55bad275
feat: ExtractFrontMatter ignores blank line within FrontMatter context 2020-11-28 11:42:11 +07:00
ALI Hamza 5af19cc7d4
feat: ExtractFrontMatter returns the rest of the content. 2020-11-28 11:42:11 +07:00
ALI Hamza fccb62accd
fix: frontmatter delimiter regex swapped start-ending character 2020-11-28 11:41:42 +07:00
ALI Hamza 400eae9000
feat: add frontmatter.go and tests with docs 2020-11-27 21:56:31 +07:00
ALI Hamza 2e8d1ed06e
feat: Add Initial main.go and go module 2020-11-27 21:56:16 +07:00
ALI Hamza e05802303c Initial commit 2020-11-27 01:21:10 +07:00