From 4389480a0429acc8c64d5affae49698da0fe57d9 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sat, 16 Apr 2022 03:51:33 +0200 Subject: [PATCH] Build website with a current version of staticsite --- .github/workflows/pages.yml | 2 +- .staticsite.py | 2 ++ doc/.theme/page.html | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index d59e09077..9e12e25c3 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -23,7 +23,7 @@ jobs: - name: Build run: | - pip install git+https://github.com/spanezz/staticsite.git@v1.2 + pip install git+https://github.com/spanezz/staticsite.git@dcf41e4a2b2d3610f2561b08bee16088fbbd1b04 'jinja2<3.1' ssite build --output public - name: Deploy diff --git a/.staticsite.py b/.staticsite.py index baa34824b..99433b8c8 100644 --- a/.staticsite.py +++ b/.staticsite.py @@ -1,6 +1,7 @@ # SPDX-License-Identifier: MIT SITE_NAME = "dosage" SITE_SUB = "a comic downloader and archiver" +SITE_URL = 'https://dosage.rocks/' SITE_AUTHOR = "Tobias Gruetzmacher" SITE_LINKS = ( {'name': 'Downloads', 'icon': 'download', @@ -14,4 +15,5 @@ SITE_ICONS = ( 'url': 'https://github.com/webcomics/dosage'}, ) +THEME_PATHS = ['.'] THEME = "doc/.theme" diff --git a/doc/.theme/page.html b/doc/.theme/page.html index a874ad149..7f8ec0498 100644 --- a/doc/.theme/page.html +++ b/doc/.theme/page.html @@ -74,8 +74,8 @@
- {% block content %} - {{page.content|safe}} + {% block page_content %} + {{ page.html_body() | safe }} {% endblock %}