We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fe33ce commit ab95af3Copy full SHA for ab95af3
themes/psh-docs/layouts/partials/page-content.html
@@ -20,7 +20,7 @@
20
21
<div class="flex justify-end mr-4">
22
<!-- Add a Button to open the Markdown version of this page (Upsun only) -->
23
- {{ if ( eq .context.Site.Params.vendor.config.version 2 ) }}
+ {{ if and ( eq .context.Site.Params.vendor.config.version 2 ) ( ne .context.Page.RelPermalink "/" ) }}
24
<div class="hidden md:block mb-6 mr-2 text-right">
25
<a href="{{ if eq .context.Page.RelPermalink "/" }}/index.md{{ else }}{{ .context.Page.RelPermalink | replaceRE ".html" ".md" }}{{ end }}"
26
class="print:hidden font-semibold bg-skye text-white hover:bg-skye-dark focus:bg-skye-dark px-4 py-2 font-['Space_Grotesk'] text-xs rounded-full inline-flex items-center gap-2"
0 commit comments