{"id":19464339,"url":"https://github.com/soupi/hablog","last_synced_at":"2025-04-25T09:31:22.972Z","repository":{"id":27692973,"uuid":"31179565","full_name":"soupi/hablog","owner":"soupi","description":"A simple blogging platform with Haskell and Scotty","archived":false,"fork":false,"pushed_at":"2021-12-25T09:36:08.000Z","size":230,"stargazers_count":39,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T19:39:13.969Z","etag":null,"topics":["blog","haskell","markdown","scotty","web"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soupi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-22T20:43:27.000Z","updated_at":"2024-08-21T08:38:44.000Z","dependencies_parsed_at":"2022-09-21T08:12:58.710Z","dependency_job_id":null,"html_url":"https://github.com/soupi/hablog","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soupi%2Fhablog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soupi%2Fhablog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soupi%2Fhablog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soupi%2Fhablog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soupi","download_url":"https://codeload.github.com/soupi/hablog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250790039,"owners_count":21487732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","haskell","markdown","scotty","web"],"created_at":"2024-11-10T18:14:32.446Z","updated_at":"2025-04-25T09:31:22.578Z","avatar_url":"https://github.com/soupi.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hablog\n======\n\n[![Hackage](https://img.shields.io/hackage/v/hablog.svg)](http://hackage.haskell.org/package/hablog)\n\nA simple blog platform with tags. Made with Haskell and Scotty.\n\nHablog will read posts written in Markdown from the `_posts` folder.\n\nLicense\n=======\n\nHablog is licensed under MIT license. This means the Haskell source files in the src directory.\nHighlight.js related content is not a part of Hablog and is not licensed by it.\n\n\nInstallation\n============\n\n```sh\ngit clone https://github.com/soupi/hablog\ncd hablog\nstack build\n```\n\n\nRunning\n=======\n\n```\nhablog --title \u003cTITLE\u003e --theme \u003cTHEME\u003e --domain \u003cDOMAIN\u003e \u003cCOMMAND\u003e [--port \u003cPORT\u003e --tls-cert \u003cTLS_CERT\u003e --tls-port \u003cTLS_PORT\u003e]\n```\n\n- `\u003cTITLE\u003e` is the title you want in the HTML headers;\n- `\u003cTHEME\u003e` is `light` or `dark`, depending on the theme you want, to create your own themes look at the examples in [/static/css](https://github.com/soupi/hablog/tree/master/static/css);\n- `\u003cDOMAIN\u003e` is the domain you're running the blog on;\n- `\u003cCOMMAND\u003e` is `http`, `https`, or `both`;\n- `\u003cPORT\u003e` is the `http` port (not required if `COMMAND` is `https`);\n- `\u003cTLS_CERT\u003e` is the `https` certificate (not required if `COMMAND` is `http`);\n- `\u003cTLS_PORT\u003e` is the `https` port (not required if `COMMAND` is `http`).\n\n\nHow to write a new post?\n========================\n\n1. All posts must go under the `/_posts/` directory\n1. All pages must go under the `/_pages/` directory\n3. The content of the post/page must correspond to a specific structure\n\n## A Post's Structure\n\n```markdown\ntitle: \u003cthe title of the post\u003e\nroute: \u003croute to the post\u003e\nauthors: \u003cthe author of the post, seperated, by, commas\u003e\ndate: yyyy-mm-dd\ntags: \u003ctags for the post, separated, by, commas\u003e\n\n---\n\n\u003cThe rest of the post in Markdown format\u003e\n```\n\n\n## A Page's Structure\n\n```markdown\ntitle: \u003cthe title of the page\u003e\nroute: \u003croute to the page\u003e\n---\n\n\u003cThe rest of the page in Markdown format\u003e\n```\n\n## Preview\n\nIf 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.\n\n- `summary` - For a summary of the post/page\n- `image` - A link to an image\n- `image-alt` - Alternative description for an image\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoupi%2Fhablog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoupi%2Fhablog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoupi%2Fhablog/lists"}