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:
authorJames <james@jmablog.com>2020-09-05 18:36:17 +0300
committerJames <james@jmablog.com>2020-09-05 18:36:17 +0300
commitd6e710ca7cc2996ff842a0d96fdf8289acffe191 (patch)
tree5a334a47272d2eab72f740c0484a25217a406368
parent989557b2f84c760aa460282d81670140217714e7 (diff)
Add time field to appointments
-rw-r--r--exampleSite/config.toml11
-rw-r--r--exampleSite/content/_index.md3
-rw-r--r--exampleSite/content/all/jane-doe/2020-01-08-jane-doe-assessment.md1
-rw-r--r--exampleSite/content/all/jane-doe/2020-02-01-jane-doe-follow-up.md1
-rw-r--r--exampleSite/content/all/jane-doe/2020-03-02-jane-doe-xray_from_doctor/index.md1
-rw-r--r--exampleSite/content/all/john-smith/2020-01-01-john-smith-assessment.md1
-rw-r--r--exampleSite/content/all/john-smith/2020-02-01-john-smith-follow-up.md1
-rw-r--r--exampleSite/content/all/john-smith/2020-03-01-john-smith-xray_from_doctor/index.md1
-rw-r--r--exampleSite/content/docs/informed-consent.md14
-rw-r--r--layouts/_default/section.html4
-rw-r--r--layouts/docs/section.html28
-rw-r--r--layouts/docs/single.html45
-rw-r--r--layouts/partials/head-includes.html2
-rw-r--r--static/styles.css6
14 files changed, 108 insertions, 11 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 7a12821..c68e205 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,9 +1,8 @@
# It is advised to set baseURL to just "/"
baseURL = "https://example.com"
-# Change this to the name of your own clinic / project if you prefer
-title = "Clinic Notes"
-
languageCode = "en-gb"
+# Change this to the name of your own clinic / project if you prefer
+title = "Hugo Clinic Notes"
enableEmoji = true
# Pagination is used in the calendar view. Set this to a higher number
# if you'd like to see more notes per page
@@ -21,6 +20,10 @@ theme = "hugo-clinic-notes"
name = "Patients"
url = "patient/"
+[[params.menu]]
+ name = "Docs"
+ url = "docs/"
+
# If you want the table of contents at the top of individual notes to index
# further levels of header (default H2) set this to a higher number
[markup]
@@ -28,4 +31,4 @@ theme = "hugo-clinic-notes"
endLevel = 2
[frontmatter]
- lastmod = ["lastmod", ":fileModTime", ":default"]
+ lastmod = ["lastmod", ":fileModTime", ":default"] \ No newline at end of file
diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md
new file mode 100644
index 0000000..6da2e7b
--- /dev/null
+++ b/exampleSite/content/_index.md
@@ -0,0 +1,3 @@
++++
+title = "All"
++++ \ No newline at end of file
diff --git a/exampleSite/content/all/jane-doe/2020-01-08-jane-doe-assessment.md b/exampleSite/content/all/jane-doe/2020-01-08-jane-doe-assessment.md
index e601ca8..d81efca 100644
--- a/exampleSite/content/all/jane-doe/2020-01-08-jane-doe-assessment.md
+++ b/exampleSite/content/all/jane-doe/2020-01-08-jane-doe-assessment.md
@@ -2,6 +2,7 @@
patient: "Jane Doe"
type: "assessment"
date: 2020-01-08
+time: "10:00"
toc: true
---
diff --git a/exampleSite/content/all/jane-doe/2020-02-01-jane-doe-follow-up.md b/exampleSite/content/all/jane-doe/2020-02-01-jane-doe-follow-up.md
index d0929f5..bccea89 100644
--- a/exampleSite/content/all/jane-doe/2020-02-01-jane-doe-follow-up.md
+++ b/exampleSite/content/all/jane-doe/2020-02-01-jane-doe-follow-up.md
@@ -2,6 +2,7 @@
patient: "Jane Doe"
type: "follow-up"
date: 2020-02-01
+time: "10:00"
toc: false
---
diff --git a/exampleSite/content/all/jane-doe/2020-03-02-jane-doe-xray_from_doctor/index.md b/exampleSite/content/all/jane-doe/2020-03-02-jane-doe-xray_from_doctor/index.md
index 92fd93d..66aa7e8 100644
--- a/exampleSite/content/all/jane-doe/2020-03-02-jane-doe-xray_from_doctor/index.md
+++ b/exampleSite/content/all/jane-doe/2020-03-02-jane-doe-xray_from_doctor/index.md
@@ -3,6 +3,7 @@ patient: "Jane Doe"
type: "other"
description: "Xray From Doctor"
date: 2020-03-02
+time: "10:00"
toc: false
---
diff --git a/exampleSite/content/all/john-smith/2020-01-01-john-smith-assessment.md b/exampleSite/content/all/john-smith/2020-01-01-john-smith-assessment.md
index d28cdc4..10963e9 100644
--- a/exampleSite/content/all/john-smith/2020-01-01-john-smith-assessment.md
+++ b/exampleSite/content/all/john-smith/2020-01-01-john-smith-assessment.md
@@ -2,6 +2,7 @@
patient: "John Smith"
type: "assessment"
date: 2020-01-01
+time: "10:00"
toc: true
---
diff --git a/exampleSite/content/all/john-smith/2020-02-01-john-smith-follow-up.md b/exampleSite/content/all/john-smith/2020-02-01-john-smith-follow-up.md
index a9cb371..aaeb3dd 100644
--- a/exampleSite/content/all/john-smith/2020-02-01-john-smith-follow-up.md
+++ b/exampleSite/content/all/john-smith/2020-02-01-john-smith-follow-up.md
@@ -2,6 +2,7 @@
patient: "John Smith"
type: "follow-up"
date: 2020-02-01
+time: "10:00"
toc: false
---
diff --git a/exampleSite/content/all/john-smith/2020-03-01-john-smith-xray_from_doctor/index.md b/exampleSite/content/all/john-smith/2020-03-01-john-smith-xray_from_doctor/index.md
index e546cf9..bac6f19 100644
--- a/exampleSite/content/all/john-smith/2020-03-01-john-smith-xray_from_doctor/index.md
+++ b/exampleSite/content/all/john-smith/2020-03-01-john-smith-xray_from_doctor/index.md
@@ -3,6 +3,7 @@ patient: "John Smith"
type: "other"
description: "Xray From Doctor"
date: 2020-03-01
+time: "10:00"
toc: false
---
diff --git a/exampleSite/content/docs/informed-consent.md b/exampleSite/content/docs/informed-consent.md
new file mode 100644
index 0000000..2736ab2
--- /dev/null
+++ b/exampleSite/content/docs/informed-consent.md
@@ -0,0 +1,14 @@
+---
+title: "Informed Consent Notice"
+---
+
+## Informed Consent Notice
+
+- Our session today is not designed to fully replace an in-person assessment by a qualified professional
+- I cannot perform a regular, full physical assessment of you and so I cannot provide a definitive diagnosis of your injury or condition, but only provide guidance and advice on some possible diagnoses and how you may deal with them
+- If you take any action on this advice and guidance, it is your own responsibility to ensure your safety and comfort at all times, particularly if performing physical exercises
+- You must seek further guidance from me or another qualified professional if you are at all unsure, or feel pain and/or excessive discomfort, during these exercises
+
+Does that sound ok?
+
+Do you have any questions? \ No newline at end of file
diff --git a/layouts/_default/section.html b/layouts/_default/section.html
index 20dc3b3..49501cc 100644
--- a/layouts/_default/section.html
+++ b/layouts/_default/section.html
@@ -14,9 +14,9 @@
{{ range (.Pages.GroupByDate "Mon 2 January 2006") }}
<h3 class="font-semibold py-2 pl-1 my-4 bg-gray-100">{{ .Key }}</h3>
<ul class="list-disc list-inside">
- {{ range .Pages }}
+ {{ range .Pages.ByParam "time" }}
<li class="my-2">
- <a href="{{ .Permalink }}" class="link">{{ .Params.patient }} -
+ <a href="{{ .Permalink }}" class="link">{{ .Params.time }} - {{ .Params.patient }} -
{{ if ne .Params.type "other"}}
{{ .Param "type" | title }}
{{ else }}
diff --git a/layouts/docs/section.html b/layouts/docs/section.html
new file mode 100644
index 0000000..a5562fa
--- /dev/null
+++ b/layouts/docs/section.html
@@ -0,0 +1,28 @@
+{{ define "main" }}
+
+<div class="w-3/5 mx-auto pb-10">
+
+<div class="mb-4 sticky bg-white pt-5 pb-5 top-0 border-b-2 print:hidden">
+ {{ emojify ":file_folder:" }}
+ <a href="{{ .Site.BaseURL }}" class="link">Notes</a>
+ <span class=""> / </span>
+ <span class="font-semibold">Documents</span>
+</div>
+
+<section id="main" class="mb-20 w-10/12 mx-auto">
+ <div>
+
+ <ul class="list-disc list-inside">
+ {{ range .Pages }}
+ <li class="my-2">
+ <a href="{{ .Permalink }}" class="link">{{ .Title }}
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+
+ </div>
+</section>
+
+</div>
+{{ end }}
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 }}
diff --git a/layouts/partials/head-includes.html b/layouts/partials/head-includes.html
index 97fee84..00bc5e3 100644
--- a/layouts/partials/head-includes.html
+++ b/layouts/partials/head-includes.html
@@ -1 +1 @@
-<link rel="stylesheet" href="{{ .Site.BaseURL }}styles.css" /> \ No newline at end of file
+<link rel="stylesheet" href="{{ .Site.BaseURL }}/styles.css" /> \ No newline at end of file
diff --git a/static/styles.css b/static/styles.css
index 469b20b..0bd39d1 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -616,8 +616,6 @@ video {
.hugo-content li {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
- list-style-type: disc;
- list-style-position: inside;
}
.hugo-content h1,
@@ -685,7 +683,7 @@ video {
background-color: rgba(247, 250, 252, var(--bg-opacity));
}
-.hugo-content h4 > em {
+.hugo-content h4>em {
font-style: italic;
--text-opacity: 1;
color: #a0aec0;
@@ -1224,4 +1222,4 @@ video {
.print\:w-full {
width: 100%;
}
-}
+} \ No newline at end of file