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

github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruPagge <upagge@mail.ru>2021-01-06 19:58:46 +0300
committeruPagge <upagge@mail.ru>2021-01-06 19:58:46 +0300
commit3f35708561c2e7b98015df8f94aaafca581379fa (patch)
treef75dcedb6cef851e4538430c67e666c3f1636718 /layouts/shortcodes
parentc9e67ce7fd977558b13605b51f30b313110ca999 (diff)
add split and block-media-1
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/admonition.html2
-rw-r--r--layouts/shortcodes/block-media-1.html10
-rw-r--r--layouts/shortcodes/content-image.html3
-rw-r--r--layouts/shortcodes/split-h-end.html2
-rw-r--r--layouts/shortcodes/split-h.html1
-rw-r--r--layouts/shortcodes/split-wide.html3
-rw-r--r--layouts/shortcodes/split.html2
7 files changed, 22 insertions, 1 deletions
diff --git a/layouts/shortcodes/admonition.html b/layouts/shortcodes/admonition.html
index bfe1452..a83f9ab 100644
--- a/layouts/shortcodes/admonition.html
+++ b/layouts/shortcodes/admonition.html
@@ -18,7 +18,7 @@
{{- $type := .Get "type" | default "note" -}}
<div class="details admonition {{ $type }}{{ if .Get `open` | ne false }} open{{ end }}">
<div class="details-summary admonition-title">
- <i class="icon {{ index $iconMap $type | default (index $iconMap "note") }}"></i>{{ .Get "title" | default (T $type) }}<i class="details-icon {{ $iconDetails }}"></i>
+ <i class="icon {{ index $iconMap $type | default (index $iconMap "note") }}"></i>{{ .Get "title" | default (T $type) }}<i class="details-icon {{ $iconDetails }}"></i>
</div>
<div class="details-content">
<div class="admonition-content">
diff --git a/layouts/shortcodes/block-media-1.html b/layouts/shortcodes/block-media-1.html
new file mode 100644
index 0000000..e488714
--- /dev/null
+++ b/layouts/shortcodes/block-media-1.html
@@ -0,0 +1,10 @@
+<div class="block-media block-media_1">
+ {{ $cols := split .Inner "<!--split-->" }}
+
+ {{ range $cols }}
+ <div class="content-column">
+ {{ . | $.Page.RenderString }}
+ </div>
+ {{ end }}
+</div>
+
diff --git a/layouts/shortcodes/content-image.html b/layouts/shortcodes/content-image.html
new file mode 100644
index 0000000..c7774f0
--- /dev/null
+++ b/layouts/shortcodes/content-image.html
@@ -0,0 +1,3 @@
+<div class="content-image">
+
+</div> \ No newline at end of file
diff --git a/layouts/shortcodes/split-h-end.html b/layouts/shortcodes/split-h-end.html
new file mode 100644
index 0000000..4760933
--- /dev/null
+++ b/layouts/shortcodes/split-h-end.html
@@ -0,0 +1,2 @@
+</div>
+<div class="content-block"><div class="post"><div class="content"> \ No newline at end of file
diff --git a/layouts/shortcodes/split-h.html b/layouts/shortcodes/split-h.html
new file mode 100644
index 0000000..feaf4c2
--- /dev/null
+++ b/layouts/shortcodes/split-h.html
@@ -0,0 +1 @@
+</div></div></div><div class="content-break"> \ No newline at end of file
diff --git a/layouts/shortcodes/split-wide.html b/layouts/shortcodes/split-wide.html
new file mode 100644
index 0000000..c04a2de
--- /dev/null
+++ b/layouts/shortcodes/split-wide.html
@@ -0,0 +1,3 @@
+</div></div></div>
+<div class="content-break">{{ .Inner | $.Page.RenderString }}</div>
+<div class="content-block"><div class="post"><div class="content"> \ No newline at end of file
diff --git a/layouts/shortcodes/split.html b/layouts/shortcodes/split.html
new file mode 100644
index 0000000..0a166aa
--- /dev/null
+++ b/layouts/shortcodes/split.html
@@ -0,0 +1,2 @@
+</div></div></div>
+<div class="content-block"><div class="post"><div class="content"> \ No newline at end of file