Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move featured chapter quotes from Jinja2 template to JSON file #1103

Closed
wants to merge 23 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix two consts
tunetheweb committed Jul 31, 2020
commit 2bebcccfbe2f89ef13dd09ef4544c5b6b0a92514
4 changes: 2 additions & 2 deletions src/templates/base/2019/index.html
Original file line number Diff line number Diff line change
@@ -67,8 +67,8 @@ <h2>{{ self.intro_sub_title() }}</h2>
if ((performance.getEntriesByType("navigation")[0] && performance.getEntriesByType("navigation")[0].type === "reload")
||
(performance.navigation && performance.navigation.type === performance.navigation.TYPE_RELOAD)) {
const keys = Object.keys(featured_chapters)
const randIndex = Math.floor(Math.random() * keys.length)
var keys = Object.keys(featured_chapters)
var randIndex = Math.floor(Math.random() * keys.length)
randomChapter = keys[randIndex];
}
</script>