Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jmablog/hugo-clinic-notes.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/docs/single.html')
-rw-r--r--layouts/docs/single.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/layouts/docs/single.html b/layouts/docs/single.html
new file mode 100644
index 0000000..db4089b
--- /dev/null
+++ b/layouts/docs/single.html
@@ -0,0 +1,45 @@
+{{ define "main" }}
+{{ $patient := .Params.patient | urlize}}
+{{ $.Scratch.Set "patientFull" (.Params.patient) }}
+
+<div class="w-11/12 md:w-3/5 mx-auto print:w-10/12">
+
+<div class="mb-4 sticky bg-white pt-5 pb-5 top-0 border-b-2 print:hidden z-50">
+<div class="flex justify-between">
+ <div class="inline-block">
+ {{ emojify ":file_folder:" }}
+<a href="{{ .Site.BaseURL }}" class="link">Notes</a>
+ <span class=""> / </span>
+ <a href="/docs" class="link">Documents</a>
+ <span class=""> / </span>
+ <span>{{ .Title }}</span>
+</div>
+<div class="inline-block">
+ {{ partial "prev-next-patient-head.html" . }}
+</div>
+</div>
+
+{{ if (.Params.toc ) }}
+ <div id="toc" class="mt-4">
+ <span class="inline-block font-semibold mr-2">Jump to: </span>
+ {{ .TableOfContents }}
+ </div>
+ {{ end }}
+
+</div>
+
+<section id="main" class="">
+
+ <div class="hugo-content md:w-10/12 mx-auto print:w-full">
+
+ <article itemprop="articleBody" id="content" class="mb-10">
+ {{ .Content }}
+ </article>
+ </div>
+
+</section>
+
+ {{ partial "footer.html" . }}
+
+</div>
+ {{ end }}