Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kakkun61/kinf-template
A static site generator template powered by Shake, Lucid and Hint.
https://github.com/kakkun61/kinf-template
haskell www
Last synced: 9 days ago
JSON representation
A static site generator template powered by Shake, Lucid and Hint.
- Host: GitHub
- URL: https://github.com/kakkun61/kinf-template
- Owner: kakkun61
- License: bsd-3-clause
- Created: 2020-09-26T15:08:25.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T06:11:38.000Z (over 3 years ago)
- Last Synced: 2024-10-08T10:42:04.793Z (about 1 month ago)
- Topics: haskell, www
- Language: Haskell
- Homepage:
- Size: 21.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# kinf-template
[![GitHub Actions: generate](https://github.com/kakkun61/kinf-template/workflows/generate/badge.svg)](https://github.com/kakkun61/kinf-template/actions?query=workflow%3Agenerate) [![Chat](https://badges.gitter.im/kinf-template/community.svg)](https://gitter.im/kinf-template/community) [![Sponsor](https://img.shields.io/badge/Sponsor-%E2%9D%A4-red?logo=GitHub)](https://github.com/sponsors/kakkun61)
“Kinf” (a static site generator) template powered by [Shake](https://shakebuild.com), [Lucid](https://hackage.haskell.org/package/lucid) and [Hint](https://hackage.haskell.org/package/hint).
“Kinf” is a recursive acronym of “Kinf Is Not a Framework”. Kinf is like an idea or a pattern for a static site generator.
[A blog post is here](https://dev.to/kakkun61/static-site-generator-powered-by-shake-lucid-and-hint-d5b).
## Dependencies
- [Filesystem Access Tracer](https://github.com/jacereda/fsatrace) (fsatrace)
- [PowerShell Core](https://github.com/PowerShell/PowerShell) (pwsh)
- able to be replaced
- [wai-app-static](https://hackage.haskell.org/package/wai-app-static) (warp)
- able to be replaced## Build
```
> make
> make serve
```And access .
## Directory structure
- app
- gen.hs — generator itself
- content
- article — add articles here
- 1-article.hs
- image
- lib
- Layout.hs — layouts wrapping contents
- content.cabal — not necessary, only for an IDE
- credit.hs
- index.hs — list of articles
- lib
- Data.hs — depended by gen.hs, and read by gen
- site.cabal