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

gitlab.com/mertbakir/resume-a4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/markdown.html')
-rw-r--r--layouts/partials/markdown.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/markdown.html b/layouts/partials/markdown.html
new file mode 100644
index 0000000..e8e0513
--- /dev/null
+++ b/layouts/partials/markdown.html
@@ -0,0 +1,6 @@
+{{ $markdown := . | markdownify }}
+{{ if strings.Contains $markdown "<p>" }}
+ {{ $markdown }}
+{{ else }}
+ <p>{{ $markdown }}</p>
+{{ end }}