diff --git a/src/_includes/layouts/book.html b/src/_includes/layouts/book.html index eb7d5bd..f48f9d9 100644 --- a/src/_includes/layouts/book.html +++ b/src/_includes/layouts/book.html @@ -10,6 +10,13 @@ layout: "layouts/base"

{{ title }}

{% if pullquote %}

{{ pullquote }}

{% endif %} +{% if hasSpoilers %} +
+ {% include "svgs/triangle-exclamation.svg" %} + Warning! + The following may contain spoilers! +
+{% endif %} {% if content %}
{{ content | safe }} diff --git a/src/_includes/layouts/game.html b/src/_includes/layouts/game.html index 0e9fc19..7cac181 100644 --- a/src/_includes/layouts/game.html +++ b/src/_includes/layouts/game.html @@ -8,8 +8,15 @@ layout: "layouts/base"
{{ format(page.date) }}

{{ title }}

-

{{ pullquote }}

+ {% if pullquote %}

{{ pullquote }}

{% endif %}
+{% if hasSpoilers %} +
+ {% include "svgs/triangle-exclamation.svg" %} + Warning! + The following may contain spoilers! +
+{% endif %} {% if content %}
{{ content | safe }} diff --git a/src/_includes/layouts/movie.html b/src/_includes/layouts/movie.html index edc7de0..7dcf3d2 100644 --- a/src/_includes/layouts/movie.html +++ b/src/_includes/layouts/movie.html @@ -10,13 +10,20 @@ layout: "layouts/base"

{{ title }}

{{ pullquote }}

+{% if hasSpoilers %} +
+ {% include "svgs/triangle-exclamation.svg" %} + Warning! + The following may contain spoilers! +
+{% endif %} {% if watchHistory.length > 1 %}

{% include "svgs/circle-info.svg" %} I've seen this movie {{ watchHistory.length }} {{ "time" | pluralize(watchHistory) }}!

{% endif %} -{% if favourite %} +{% if favourite or isFavourite %}

{% include "svgs/star.svg" %} This is one of my favourite movies! diff --git a/src/_includes/layouts/show.html b/src/_includes/layouts/show.html index 6d1ac1d..e4410c9 100644 --- a/src/_includes/layouts/show.html +++ b/src/_includes/layouts/show.html @@ -10,6 +10,13 @@ layout: "layouts/base"

{{ title }}

{{ pullquote }}

+{% if hasSpoilers %} +
+ {% include "svgs/triangle-exclamation.svg" %} + Warning! + The following may contain spoilers! +
+{% endif %} {% if content %}
{{ content | safe }} diff --git a/src/_includes/svgs/triangle-exclamation.svg b/src/_includes/svgs/triangle-exclamation.svg new file mode 100644 index 0000000..0401a00 --- /dev/null +++ b/src/_includes/svgs/triangle-exclamation.svg @@ -0,0 +1,3 @@ + + +