From 1f6a9795ed529247bb3370c5efeb009a81d30c8b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 3 Sep 2024 09:47:36 +0200 Subject: Merging upstream version 0.46. Signed-off-by: Daniel Baumann --- docs/theme/Source.jinja | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/theme/Source.jinja (limited to 'docs/theme/Source.jinja') diff --git a/docs/theme/Source.jinja b/docs/theme/Source.jinja new file mode 100644 index 0000000..c742f56 --- /dev/null +++ b/docs/theme/Source.jinja @@ -0,0 +1,24 @@ +{# def url: str, label: str = "" #} +{% do attrs.set(href=url, target="_blank") %} +{% set icon = url.replace("http://", "").replace("https://", "").split(".")[0] %} + + +
+ {% if icon == "github" -%} + + {% elif icon == "gitlab" -%} + + {%- else -%} + + {%- endif %} +
+
+ {{ label or url.split("/", 3)[-1] }} +
    + + + + +
+
+
\ No newline at end of file -- cgit v1.2.3