mirror of
https://git.sr.ht/~edwardloveall/scribe
synced 2025-12-18 00:21:23 +00:00
05c18f6451e8015af81082ae3abfa7cb3ebdba1c
Medium guides each post to have a Title and Subtitle. They are rendered as the first two paragraphs: H3 and H4 respectively. If they exist, a new PageConverter class extracts them and sets them on the page. However, they aren't required. If the first two paragraphs aren't H3 and H4, the PageConverter falls back to using the first paragraph as the title, and setting the subtitle to blank. The remaining paragraphs are passed into the ParagraphConverter as normal.
scribe
This is a project written using Lucky. Enjoy!
Setting up the project
- Install required dependencies
- Update database settings in
config/database.cr - Run
script/setup - Run
lucky devto start the app
Learning Lucky
Lucky uses the Crystal programming language. You can learn about Lucky from the Lucky Guides.
Languages
Crystal
83.9%
Nix
8.6%
Shell
4.6%
JavaScript
1.4%
Dockerfile
1%
Other
0.5%