sphinx: fix logo_url variable in the Haiku theme (#10147)

This commit is contained in:
augiedoggie
2024-02-24 21:55:07 -07:00
committed by GitHub
parent b45974de5d
commit 12f69c1345
2 changed files with 24 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
From 6e8e69f89446b389a4adc1d553d90605e008aa39 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Sat, 24 Feb 2024 21:47:09 -0700
Subject: fix logo->logo_url in the Haiku theme
diff --git a/sphinx/themes/haiku/layout.html b/sphinx/themes/haiku/layout.html
index 4e14826..1af9a12 100644
--- a/sphinx/themes/haiku/layout.html
+++ b/sphinx/themes/haiku/layout.html
@@ -39,7 +39,7 @@
<img class="logo" src="{{ logo_url|e }}" alt="Logo"/>
</a>
{%- else %}
- {%- if logo -%}
+ {%- if logo_url -%}
<img class="rightlogo" src="{{ logo_url|e }}" alt="Logo"/>
{%- endif -%}
<h1 class="heading"><a href="{{ pathto('index') }}">
--
2.42.1

View File

@@ -21,9 +21,10 @@ extensions."
HOMEPAGE="https://www.sphinx-doc.org/"
COPYRIGHT="2023 Georg Brandl"
LICENSE="BSD (2-clause)"
REVISION="2"
REVISION="3"
SOURCE_URI="https://github.com/sphinx-doc/sphinx/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="b41c04543148937b887097f396d7b2b54ae49d0597b68625f06ffdf702d4d917"
PATCHES="sphinx-$portVersion.patchset"
ARCHITECTURES="any"