aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/pkg.html1
-rw-r--r--layouts/shortcodes/pkg.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/layouts/shortcodes/pkg.html b/layouts/shortcodes/pkg.html
new file mode 100644
index 0000000..0c2eeff
--- /dev/null
+++ b/layouts/shortcodes/pkg.html
@@ -0,0 +1 @@
+<a href="https://git.carbslinux.org/repository/tree/{{ index .Params 0 }}">{{ or (index .Params 1 ) (index .Params 0 | path.Base)}}</a>
diff --git a/layouts/shortcodes/pkg.txt b/layouts/shortcodes/pkg.txt
new file mode 100644
index 0000000..148dca4
--- /dev/null
+++ b/layouts/shortcodes/pkg.txt
@@ -0,0 +1 @@
+{{index .Params 0 | path.Base}}