summaryrefslogtreecommitdiffstats
path: root/templates/html/htmlobjlink.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/html/htmlobjlink.tpl')
-rw-r--r--templates/html/htmlobjlink.tpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/html/htmlobjlink.tpl b/templates/html/htmlobjlink.tpl
new file mode 100644
index 0000000..51a281f
--- /dev/null
+++ b/templates/html/htmlobjlink.tpl
@@ -0,0 +1,6 @@
+{# inputs: obj (with .isLinkable .anchor .fileName), text, config, page.relPath #}
+{% if obj.isLinkable %}
+<a class="el" href="{{ page.relPath }}{{ obj.fileName }}{{ config.HTML_FILE_EXTENSION }}{% if obj.anchor %}#{{ obj.anchor }}{% endif %}">{{ text }}</a>
+{% else %}
+<b>{{ text }}</b>
+{% endif %}