From c6fc3cdff12a0e8c73c658230e32ff737a35c89b Mon Sep 17 00:00:00 2001
From: Jake <j.vondoemming@stud.uni-goettingen.de>
Date: Thu, 1 Sep 2022 16:34:50 +0200
Subject: [PATCH] let categories have no page associated

---
 fgs/datatypes.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/fgs/datatypes.py b/fgs/datatypes.py
index a527c68..9949774 100644
--- a/fgs/datatypes.py
+++ b/fgs/datatypes.py
@@ -454,10 +454,11 @@ class Link:
         if self.type == "slug":
             return self.page.category
         elif self.type == "tag":
-            if self.tag.is_category:
-                return self.tag
-            else:
-                raise Exception("category can only be called on category tags")
+            return self.tag
+            #if self.tag.is_category:
+            #    return self.tag
+            #else:
+            #    raise Exception("category can only be called on category tags")
         else:
             raise Exception("category is not allowed to be called here")
     category = property(get_category, None, None)
-- 
GitLab