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/partials/prev-next-date.html')
-rw-r--r--layouts/partials/prev-next-date.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/layouts/partials/prev-next-date.html b/layouts/partials/prev-next-date.html
new file mode 100644
index 0000000..5e8c969
--- /dev/null
+++ b/layouts/partials/prev-next-date.html
@@ -0,0 +1,33 @@
+
+<div class="my-5 flex justify-between">
+
+ <span class="truncate mr-6">
+ {{ if .PrevInSection}}
+ <a href="{{with .PrevInSection}}{{.Permalink}}{{end}}" class="link">
+ {{with .PrevInSection}}{{ .Date.Format "January 2, 2006" }} - {{ .Param "patient" }} -
+ {{ if ne .Params.type "other"}}
+ {{ .Param "type" | title }}
+ {{ else }}
+ {{ .Param "description" }}
+ {{end}}
+ {{end}}
+ </a>
+ {{end}}
+ </span>
+
+
+ <span class="truncate ml-6">
+ {{ if .NextInSection}}
+ <a href="{{with .NextInSection}}{{.Permalink}}{{end}}" class="link">
+ {{with .NextInSection}}{{ .Date.Format "January 2, 2006" }} - {{ .Param "patient" }} -
+ {{ if ne .Params.type "other"}}
+ {{ .Param "type" | title }}
+ {{ else }}
+ {{ .Param "description" }}
+ {{end}}
+ {{end}}
+ </a>
+ {{end}}
+ </span>
+
+ </div> \ No newline at end of file