From c892aa04f0b26bfb4c081ec565b829484af1ee91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matth=C3=A4us=20G=2E=20Chajdas?= Date: Sun, 17 Dec 2023 22:03:47 +0100 Subject: [PATCH] Small formatting fixes. --- liara/__init__.py | 1 - liara/feeds.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/liara/__init__.py b/liara/__init__.py index dfdaea6..8b065fd 100755 --- a/liara/__init__.py +++ b/liara/__init__.py @@ -99,7 +99,6 @@ class Liara: __redirections: List[Dict[str, str]] __log = logging.getLogger('liara') __cache: Cache - __document_post_processors: List[Callable] # When running using 'serve', this will be set to the local URL __base_url_override: Optional[str] = None __registered_plugins: Dict[object, object] = dict() diff --git a/liara/feeds.py b/liara/feeds.py index 8c7db05..a58f179 100644 --- a/liara/feeds.py +++ b/liara/feeds.py @@ -132,6 +132,7 @@ def generate(self): url.append(E.lastmod(node.metadata['date'].isoformat())) else: url.append(E.lastmod(now.isoformat())) + if node.kind == NodeKind.Index: # This is machine generated, so reduce priority url.append(E.priority('0'))