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:
authorOzan Hanedan <oznhndn@gmail.com>2021-03-05 16:27:43 +0300
committerOzan Hanedan <oznhndn@gmail.com>2021-03-05 16:27:43 +0300
commit4319d68ad6af72e96e23f68be6a4dac2d403a314 (patch)
tree06c0bcb217923154ad3148e979aeb6da907281d0
parent05956a30fd98e93f7dee9338ad31e01d9bbc4458 (diff)
turkish character bug fix on faq shortcode
-rw-r--r--layouts/shortcodes/faq.html33
1 files changed, 25 insertions, 8 deletions
diff --git a/layouts/shortcodes/faq.html b/layouts/shortcodes/faq.html
index 2cb2d64..99aa589 100644
--- a/layouts/shortcodes/faq.html
+++ b/layouts/shortcodes/faq.html
@@ -1,12 +1,29 @@
{{ $_hugo_config := `{ "version": 1 }` }}
-<div class="card mb-4 rounded-0 shadow border-0">
- <div class="card-header rounded-0 bg-white border p-0 border-0">
- <a class="card-link h4 d-flex tex-dark mb-0 py-3 px-4 justify-content-between" data-toggle="collapse" href="#{{ .Get 0 | anchorize }}">
- <span>{{ .Get 0 | markdownify }}</span> <i class="ti-plus text-primary text-right"></i>
- </a>
+{{ if .Get 1 }}
+ <div class="card mb-4 rounded-0 shadow border-0">
+ <div class="card-header rounded-0 bg-white border p-0 border-0">
+ <a class="card-link h4 d-flex tex-dark mb-0 py-3 px-4 justify-content-between" data-toggle="collapse"
+ href="#{{ .Get 1 }}">
+ <span>{{ .Get 0 | markdownify }}</span> <i class="ti-plus text-primary text-right"></i>
+
+ </a>
+ </div>
+ <div id="{{ .Get 1 }}" class="collapse" data-parent="#accordion">
+ <div class="card-body font-secondary text-color">{{ .Inner | markdownify }}</div>
+ </div>
</div>
- <div id="{{ .Get 0 | anchorize }}" class="collapse" data-parent="#accordion">
- <div class="card-body font-secondary text-color">{{ .Inner | markdownify }}</div>
+{{else}}
+ <div class="card mb-4 rounded-0 shadow border-0">
+ <div class="card-header rounded-0 bg-white border p-0 border-0">
+ <a class="card-link h4 d-flex tex-dark mb-0 py-3 px-4 justify-content-between" data-toggle="collapse"
+ href="#{{ .Get 0 | anchorize }}">
+ <span>{{ .Get 0 | markdownify }}</span> <i class="ti-plus text-primary text-right"></i>
+
+ </a>
+ </div>
+ <div id="{{ .Get 0 | anchorize }}" class="collapse" data-parent="#accordion">
+ <div class="card-body font-secondary text-color">{{ .Inner | markdownify }}</div>
+ </div>
</div>
-</div> \ No newline at end of file
+{{end}} \ No newline at end of file