Skip to content

Commit ab95af3

Browse files
committed
hide markdown button on home page
1 parent 9fe33ce commit ab95af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/psh-docs/layouts/partials/page-content.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<div class="flex justify-end mr-4">
2222
<!-- Add a Button to open the Markdown version of this page (Upsun only) -->
23-
{{ if ( eq .context.Site.Params.vendor.config.version 2 ) }}
23+
{{ if and ( eq .context.Site.Params.vendor.config.version 2 ) ( ne .context.Page.RelPermalink "/" ) }}
2424
<div class="hidden md:block mb-6 mr-2 text-right">
2525
<a href="{{ if eq .context.Page.RelPermalink "/" }}/index.md{{ else }}{{ .context.Page.RelPermalink | replaceRE ".html" ".md" }}{{ end }}"
2626
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

Comments
 (0)