This commit is contained in:
Kendell R 2024-05-07 14:45:02 +02:00 committed by GitHub
commit 01807e4eb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ class SEODirective(Directive):
if not image.startswith("/"):
local_img = f"/images/{image}"
image = "/_images/" + image
p = Path(__file__).parent / local_img[1:]
p = Path(__file__).parent.parent / local_img[1:]
if not p.is_file():
raise ValueError(f"File {p} for seo tag does not exist {self.state.document}")

View File

@ -25,7 +25,7 @@ import os
import sys
sys.path.append(os.path.abspath("."))
sys.path.append(os.path.abspath("_extensions"))
# -- General configuration ------------------------------------------------