From 96da9b7a9a47d3cda5245f2e2fb959a86231e890 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 4 Sep 2024 20:15:25 -0400 Subject: [PATCH] [docsy] Create assets/scss/_csp.scss to hold inline styles --- assets/scss/_csp.scss | 23 +++++++++++++++++++++++ assets/scss/_styles_project.scss | 1 + content/en/_index.md | 3 ++- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 assets/scss/_csp.scss diff --git a/assets/scss/_csp.scss b/assets/scss/_csp.scss new file mode 100644 index 0000000..0db3d8f --- /dev/null +++ b/assets/scss/_csp.scss @@ -0,0 +1,23 @@ +// Due to the site's Content-Security-Policy, we must move inline styles +// into this file. For some context, see: +// https://github.com/theupdateframework/theupdateframework.io/issues/73 + +// The following styles appear in the HTML generated for the ... + +// Navbar + +.navbar-logo > svg .st0 { + fill: white; +} + +// Homepage: it will need to be updated when the hero image is changed. + +#td-cover-block-0 { + background-image: url(/featured-background_hu18408291696259244493.jpg) +} + +@media only screen and (min-width:1200px) { + #td-cover-block-0 { + background-image: url(/featured-background_hu16056391159218873026.jpg) + } +} diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index 40d7b93..d215c59 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -1,4 +1,5 @@ @import 'td/code-dark'; +@import 'csp'; .td-navbar { .navbar-brand { diff --git a/content/en/_index.md b/content/en/_index.md index e880d38..63a5e10 100644 --- a/content/en/_index.md +++ b/content/en/_index.md @@ -4,9 +4,10 @@ description: A framework for securing software update systems outputs: - HTML - REDIRECTS # Include this `content/en` ONLY -developer_note: +developer_note: | The blocks/cover shortcode (used below) will use as a background image any image file containing "background" in its name. + Current image source: https://www.pexels.com/photo/close-up-photo-of-programming-of-codes-546819 --- {{% blocks/cover title="The Update Framework" image_anchor="top" color="primary" height="max" %}}