index : paprika

A blogging platform written in Rust for Cloudflare Workers, integrated with Standard Notes

path: root/README.md
diff options
context:
space:
mode:
authorPeter Cai <[email protected]>2020-04-13 16:50:36 +0800
committerPeter Cai <[email protected]>2020-04-13 16:50:36 +0800
commite727bce18885a924f069e6f0845f4987560d6410 (patch)
tree24a574314cdf18aac75ea274da5fca2d030c1256 /README.md
parent0c61b2085c08654951cfd80d886d7c46d0c16c1c (diff)
downloadpaprika-e727bce18885a924f069e6f0845f4987560d6410.tar.gz
add support for hard-coded redirects in config.json
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index c5f4ba9..804b0be 100644
--- a/README.md
+++ b/README.md
@@ -66,6 +66,10 @@ This is the main configuration file. The file will be compiled statically into t
"description": "<description>",
"plugin_identifier": "com.example.change.this.to.whatever.you.like",
"posts_per_page": 5,
+ "redirects": {
+ "/foo": "/bar",
+ ...
+ },
"hljs": [
"rust",
"javascript",
@@ -81,6 +85,8 @@ This is the main configuration file. The file will be compiled statically into t
`plugin_identifier`: Used in Standard Notes to distinguish plugins.
+`redirects`: OPTIONAL. A map of URLs where the key will be mapped to the value by Paprika using 301 redirects. This is mainly useful for migration from another blogging platform.
+
`hljs`: An array of language support from `highlight.js` to be included in the final binary. The full `highlight.js` is notoriously huge and there's really no reason to include a bazillion languages you will never actually use in your blog posts. This will be read by `build.rs` to generate a JS shim that will load all languages in the array to the final binary via `webpack` support for `require`.
Configuration: theme_config.json