File tree 3 files changed +17
-0
lines changed
themes/psh-docs/layouts/partials
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 26
26
{{ partial "head/opengraph" . }}
27
27
{{ partial "head/css" . }}
28
28
{{ partial "scripts/global" . }}
29
+ {{ partial "head/llms" . }}
29
30
30
31
{{ if .Param "math" }}
31
32
{{ partialCached "head/math.html" . }}
Original file line number Diff line number Diff line change
1
+ {{ if ( eq .Site.Params.vendor.config.version 2 ) }}
2
+ <!-- LLMS.txt -->
3
+ < meta name ="llms.txt " content ="{{ .Site.Params.vendor.urls.docs }}/llms.txt ">
4
+ < meta name ="llms-full.txt " content ="{{ .Site.Params.vendor.urls.docs }}/llms-full.txt ">
5
+ {{ end }}
Original file line number Diff line number Diff line change @@ -102,6 +102,17 @@ <h3 class="pt-4 pb-2 font-light text-base text-slate">On this page</h3>
102
102
</ div >
103
103
{{ end }}
104
104
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 }}
105
116
</ div >
106
117
107
118
< 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 ">
You can’t perform that action at this time.
0 commit comments