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

github.com/schmanat/hugo-highlights-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/text.html')
-rw-r--r--layouts/partials/text.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/text.html b/layouts/partials/text.html
new file mode 100644
index 0000000..4818287
--- /dev/null
+++ b/layouts/partials/text.html
@@ -0,0 +1,17 @@
+{{ print "<!-- " .block.id " -->" | safeHTML }}
+<section id="{{.block.id}}" class="main special">
+ <div class="container">
+ {{ if eq .params.backgroundpersection true }}
+ <span class="image fit primary"><img src="images/{{ with .block.picture }}{{ . }}{{ end }}" alt="" /></span>
+ {{ end }}
+ <div class="content">
+ <header class="major">
+ <h2>{{ with .block.title }}{{ . | markdownify }}{{ end }}</h2>
+ </header>
+ <p>{{ with .block.description }}{{ . | markdownify }}{{ end }}</p>
+ </div>
+ {{ if .next }}
+ <a href="#{{.next.id}}" class="goto-next scrolly">{{ with .block.buttontext }}{{ . | markdownify }}{{ end }}</a>
+ {{ end }}
+ </div>
+</section>