sc0ttj / mdsh

A simple static site generator, using Markdown and Bash
https://sc0ttj.github.io/mdsh/
10 stars 0 forks source link

AMP, FBIA and Apple, CLI pages #58

Open sc0ttj opened 5 years ago

sc0ttj commented 5 years ago

Aside from generating regular HTML pages, rebuild should be able to generate Amp, FB Instant Article and Apple News (JSON) output too.

Why?

It gets the content out there more, and Google gives preference to sites with AMP pages when choosing who gets a carousel, larger image, etc in the search results.

The AMP, FBIA (etc) pages should be generated using commands like:

rebuild amp

or

rebuild applenews

or

rebuild fbia

This would require templates in

assets/templates/html/{template-files}
assets/templates/amp/{tempate-files}
assets/templates/fbia/{tempate-files}
assets/templates/applenews/{tempate-files}
assets/templates/ansi/{tempate-files}

... where {template-files} is a template file such as site-header.sh or post-navigation.sh (etc), which output either HTML, AMP, JSON (apple) or whatever - depending which folder you're using..

Output:

The rebuild command should create the files, which should live alongside each other (in the same dir):

More info:

ANSI output would produce page suitable for viewing directly in a terminal, no browser needed, only curl, wget, etc. See stuff like wttr.in and /rate.sx