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

github.com/gethugothemes/dot-hugo-documentation-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIda Delphine <mida@unicef.org>2021-08-20 14:06:18 +0300
committerIda Delphine <mida@unicef.org>2021-08-20 14:06:18 +0300
commitf0739959763c679c3f911a36eb50284137af7acf (patch)
tree16d1e5fe51dadd864ac08b994adb7e7e3c702551
parentdead996a5319fcec07fa69880761e717c54446ad (diff)
layouts: Add button to download pdf
Signed-off-by: Ida Delphine <mida@unicef.org>
-rw-r--r--layouts/partials/default.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/layouts/partials/default.html b/layouts/partials/default.html
index b60b3cb..8bd157c 100644
--- a/layouts/partials/default.html
+++ b/layouts/partials/default.html
@@ -12,12 +12,17 @@
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
{{ end }}
{{ end }}
+ {{ if .Content }}
+ <div>
+ <button class="btn btn-primary btn-block" id="generatePDF" > Get Pdf </button>
+ </div>
+ {{ end }}
</ul>
</div>
</div>
<div class="col-lg-9">
- <div class="p-lg-5 p-4 bg-white">
- <h2 class="mb-5">{{ .Title }}</h2>
+ <div class="p-lg-5 p-4 bg-white" id="content">
+ <h2 class="mb-5" id="title">{{ .Title }}</h2>
{{ if .Content }}
<div class="content">{{.Content}}</div>
{{ else }}