-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
There was a request to re-add fortune cookie messages, at least to the front page. There are two issues with the way things are currently set up:
- The FortuneCookies are in a wiki, so we'd need a GitHub action triggered by wiki (
gollum) events that captures edits to that page and extracts the fortunes out. - The main page is rendered from
index.md, and the rendering system strips out unsafe HTML like<script>and<link>tags, which makes it difficult to add javascript code to display the fortune.
I propose the following:
- Move the content of the FortuneCookies wiki to a
.jsfile, e.g.:var fortunes = [ 'Recursive, adj: See "recursive"', ... ];
- Change
index.mdtoindex.htmlto avoid rendering with Gollum - Add code to
index.htmlthat loads thefortunes.js(or whatever it's called) and displays a random one
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request