From 0e70fcd2381f5e061129a559357e75412ab5863a Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Mon, 27 Jun 2022 23:40:17 +1000 Subject: [PATCH] Don't set up for animation when no JavaScript available. --- themes/next.copyleft.org/templates/base.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/themes/next.copyleft.org/templates/base.html b/themes/next.copyleft.org/templates/base.html index 5d41916..a22263b 100644 --- a/themes/next.copyleft.org/templates/base.html +++ b/themes/next.copyleft.org/templates/base.html @@ -73,7 +73,22 @@ header a.active { text-decoration: underline; } + + /* Set up the home page title animation */ + header h1#title { + opacity: 0; + translate: 0 -10px; + } + {% endblock head %} @@ -102,7 +117,7 @@ {% if output_file == 'index.html' %} -

> {{ SITENAME }}

+

> {{ SITENAME }}

{% if SITESUBTITLE %}{{ SITESUBTITLE }}{% endif %}

{% endif %}