|
1 vecka sedan | |
---|---|---|
_pages | 3 år sedan | |
_posts | 5 år sedan | |
app | 6 månader sedan | |
src/Web | 1 vecka sedan | |
static | 3 månader sedan | |
.gitignore | 6 månader sedan | |
LICENSE | 1 vecka sedan | |
Makefile | 6 månader sedan | |
README.md | 1 vecka sedan | |
Setup.hs | 4 år sedan | |
hablog.cabal | 1 vecka sedan | |
package.zsh | 6 månader sedan | |
stack.yaml | 1 vecka sedan | |
stack.yaml.lock | 6 månader sedan |
A simple blog platform with tags. Made with Haskell and Scotty.
Hablog will read posts written in Markdown from the _posts
folder.
Hablog is licensed under MIT license. This means the Haskell source files in the src directory. Highlight.js related content is not a part of Hablog and is not licensed by it.
git clone https://github.com/soupi/hablog
cd hablog
stack build
hablog --title <TITLE> --theme <THEME> --domain <DOMAIN> <COMMAND> [--port <PORT> --tls-cert <TLS_CERT> --tls-port <TLS_PORT>]
<TITLE>
is the title you want in the HTML headers;<THEME>
is light
or dark
, depending on the theme you want, to create your own themes look at the examples in /static/css;<DOMAIN>
is the domain you're running the blog on;<COMMAND>
is http
, https
, or both
;<PORT>
is the http
port (not required if COMMAND
is https
);<TLS_CERT>
is the https
certificate (not required if COMMAND
is http
);<TLS_PORT>
is the https
port (not required if COMMAND
is http
)./_posts/
directory/_pages/
directorytitle: <the title of the post>
route: <route to the post>
authors: <the author of the post, seperated, by, commas>
date: yyyy-mm-dd
tags: <tags for the post, separated, by, commas>
---
<The rest of the post in Markdown format>
title: <the title of the page>
route: <route to the page>
---
<The rest of the page in Markdown format>
If you want twitter/other previews to work as well, add the following definition at the header of a post or page. Not that image
without image-alt
won't work.
summary
- For a summary of the post/pageimage
- A link to an imageimage-alt
- Alternative description for an image