|
8 months ago | |
---|---|---|
blog | 8 months ago | |
content | 8 months ago | |
public | 8 months ago | |
src | 8 months ago | |
.gitignore | 11 months ago | |
Cargo.toml | 1 year ago | |
Dockerfile | 1 year ago | |
LICENSE | 1 year ago | |
Pipfile | 8 months ago | |
Pipfile.lock | 8 months ago | |
README.md | 1 year ago | |
deploy.sh | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year ago | |
webpack.config.js | 1 year ago |
Idk why but I wrote my own static cms.
Posts go in content/posts
and are formatted in Markdown.
The basic structure is as follows:
// The first line of the document(which must contain a header 1) is used as
// the blog title
# Title
// The first occurrence of a * is used for the date which must be formatted
// like so
*Month(March) day_num(1), Year(2018)*
// The first paragraph is used for the description/summary
Insert some content here. This will be shown on the home page as a description.
Here is another paragraph containing more markdown formatted content.
Note: This assumes you already have all the python deps installed
(pipenv install
) as well having the css, js and rust code compiled
(see Compiling stuffs).
$ python3 -m blog
The public
directory should now contain a static version of the blog
$ FLASK_DEBUG=True FLASK_APP=blog flask run
This project is a mishmash of code.
Scss
/Js
)$ npm run build
Note: This project depends on rust nightly.
Note: Matruin is a python application thus is installed as a dev dependency by pipenv.
$ maturin develop
blog/static/
is where to throw static stuffs like imagesblog/src/
src/
is for rust source code