|
18 | 18 | <!-- If the feature is in beta -->
|
19 | 19 | {{ partial "beta-flag/banner.html" .context }}
|
20 | 20 |
|
21 |
| -{{ if ne .context.Params.editPage false }} |
22 |
| - {{ partial "editpagebutton.html" .context }} |
23 |
| -{{ end }} |
| 21 | +<div class="flex justify-end mr-4"> |
| 22 | + <!-- Add a Button to open the Markdown version of this page (Upsun only) --> |
| 23 | + {{ 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" |
| 27 | + title="Open this page in a markdown format. This format is easier for AI and other tools to read." |
| 28 | + target="_blank"> |
| 29 | + View in markdown |
| 30 | + </a> |
| 31 | + </div> |
| 32 | + {{ end }} |
| 33 | + |
| 34 | + <!-- Edit page button link --> |
| 35 | + {{ if ne .context.Params.editPage false }} |
| 36 | + {{ partial "editpagebutton.html" .context }} |
| 37 | + {{ end }} |
| 38 | +</div> |
24 | 39 |
|
25 | 40 | <!-- Page title -->
|
26 | 41 | {{ if ne .context.Params.showTitle false }}
|
@@ -102,17 +117,6 @@ <h3 class="pt-4 pb-2 font-light text-base text-slate">On this page</h3>
|
102 | 117 | </div>
|
103 | 118 | {{ end }}
|
104 | 119 |
|
105 |
| - <!-- Add a Button to open the Markdown version of this page (Upsun only) --> |
106 |
| - {{ if ( eq .context.Site.Params.vendor.config.version 2 ) }} |
107 |
| - <div class="justify-start border border-stone border-t-0 px-4 pt-10 pb-4 mb-12 md:mb-0 bottom-0 text-sm [&_a]:text- hover:[&_a]:underline focus:[&_a]:underline [&_ul_ul]:pl-4"> |
108 |
| - <a href="{{ if eq .context.Page.RelPermalink "/" }}/index.md{{ else }}{{ .context.Page.RelPermalink | replaceRE ".html" ".md" }}{{ end }}" |
109 |
| - class="px-6 py-2 bg-[#6046FF] hover:!bg-[#4D38CC] rounded-3xl text-white text-center text-sm font-semibold" |
110 |
| - title="View this page in a Markdown format" |
111 |
| - target="_blank"> |
112 |
| - View Markdown version |
113 |
| - </a> |
114 |
| - </div> |
115 |
| - {{ end }} |
116 | 120 | </div>
|
117 | 121 |
|
118 | 122 | <div class="prose xl:prose-lg max-w-[96vw] md:max-w-full w-full prose-code:!mb-0 prose-h2:text-xl prose-h3:text-xl prose-h4:text-lg">
|
|
0 commit comments