Fork of Scribe - an alternative Medium frontend
Go to file
Edward Loveall 05c18f6451
Extract tile and subtitle from initial paragraphs
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.
2021-08-29 15:19:39 -04:00
.github/workflows Initial app 2021-05-01 17:03:38 -04:00
config Add basic response (except images) 2021-05-01 17:39:05 -04:00
db/migrations Initial app 2021-05-01 17:03:38 -04:00
public Initial app 2021-05-01 17:03:38 -04:00
script Add test script 2021-07-04 16:03:25 -04:00
spec Extract tile and subtitle from initial paragraphs 2021-08-29 15:19:39 -04:00
src Extract tile and subtitle from initial paragraphs 2021-08-29 15:19:39 -04:00
tasks Initial app 2021-05-01 17:03:38 -04:00
.crystal-version Initial app 2021-05-01 17:03:38 -04:00
.editorconfig Initial app 2021-05-01 17:03:38 -04:00
.gitignore Add .nova to gitignore 2021-08-08 14:22:34 -04:00
.tool-versions Initial app 2021-05-01 17:03:38 -04:00
Procfile Initial app 2021-05-01 17:03:38 -04:00
Procfile.dev Initial app 2021-05-01 17:03:38 -04:00
README.md Initial app 2021-05-01 17:03:38 -04:00
bs-config.js Initial app 2021-05-01 17:03:38 -04:00
package.json Initial app 2021-05-01 17:03:38 -04:00
shard.lock Initial app 2021-05-01 17:03:38 -04:00
shard.yml First step rendering a page 2021-07-04 16:28:03 -04:00
tasks.cr Initial app 2021-05-01 17:03:38 -04:00
webpack.mix.js Initial app 2021-05-01 17:03:38 -04:00
yarn.lock Initial app 2021-05-01 17:03:38 -04:00

README.md

scribe

This is a project written using Lucky. Enjoy!

Setting up the project

  1. Install required dependencies
  2. Update database settings in config/database.cr
  3. Run script/setup
  4. Run lucky dev to start the app

Learning Lucky

Lucky uses the Crystal programming language. You can learn about Lucky from the Lucky Guides.