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

github.com/MunifTanjim/minimo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunifTanjim <muniftanjim@gmail.com>2019-05-01 02:26:52 +0300
committerMunifTanjim <muniftanjim@gmail.com>2019-05-01 02:26:52 +0300
commit15445547372f63496aadf490f28610bdb027fcee (patch)
tree0773dab0c787981d5a3206f8db787d12f4550365
parent3710b00e9126db78f45ed890976818b76dc5bcb4 (diff)
fix [shortcodes]: center, text
-rw-r--r--exampleSite/content/docs/shortcodes.md17
-rw-r--r--layouts/shortcodes/center.html2
-rw-r--r--layouts/shortcodes/text.html2
3 files changed, 11 insertions, 10 deletions
diff --git a/exampleSite/content/docs/shortcodes.md b/exampleSite/content/docs/shortcodes.md
index c07b9a2..0ac62d9 100644
--- a/exampleSite/content/docs/shortcodes.md
+++ b/exampleSite/content/docs/shortcodes.md
@@ -1,5 +1,6 @@
---
date: 2017-10-05T20:00:00+06:00
+lastmod: 2019-05-01T05:30:00+06:00
title: Shortcodes
authors: ["muniftanjim"]
categories:
@@ -23,16 +24,16 @@ Center align you content.
### center: Usage Example
```golang
-{{%/* center */%}}
+{{</* center */>}}
_Center Aligned Text_
-{{%/* /center */%}}
+{{</* /center */>}}
```
**Output**
-{{% center %}}
+{{< center >}}
_Center Aligned Text_
-{{% /center %}}
+{{< /center >}}
-------
@@ -118,15 +119,15 @@ You can use either Named or Unnamed Parameters
### text: Usage Example
```golang
-{{%/* text s="1.4" color="purple" */%}}
+{{</* text s="1.4" color="purple" */>}}
font-size: 1.4em;
color: purple;
-{{%/* /text */%}}
+{{</* /text */>}}
```
**Output**
-{{% text s="1.4" color="purple" %}}
+{{< text s="1.4" color="purple" >}}
font-size: 1.5em;
color: purple;
-{{% /text %}}
+{{< /text >}}
diff --git a/layouts/shortcodes/center.html b/layouts/shortcodes/center.html
index a2d6e83..89e0746 100644
--- a/layouts/shortcodes/center.html
+++ b/layouts/shortcodes/center.html
@@ -1,3 +1,3 @@
<div class='align-center'>
- {{ .Inner }}
+ {{ .Inner | markdownify }}
</div>
diff --git a/layouts/shortcodes/text.html b/layouts/shortcodes/text.html
index bce2b94..48d0e52 100644
--- a/layouts/shortcodes/text.html
+++ b/layouts/shortcodes/text.html
@@ -13,5 +13,5 @@
{{- end -}}
{{- end -}}
'>
- {{- .Inner -}}
+ {{- .Inner | markdownify -}}
</div>