Merge pull request #177 from unicef/add/index-page-text

📝 layouts/index: Add optional text above site topics
This commit is contained in:
Somrat 2021-11-23 12:18:22 +06:00 committed by GitHub
commit ee51534a34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,3 @@
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris id mi sit amet ipsum rhoncus pulvinar. Suspendisse consectetur hendrerit lectus eu molestie. Praesent at est arcu. Praesent tristique turpis massa, quis pellentesque tellus gravida sed. Duis consectetur justo in sodales volutpat. Phasellus pretium egestas ligula id scelerisque. Sed non enim in enim tristique laoreet. Duis mollis nulla tellus, faucibus varius dui vestibulum eget. Pellentesque congue nibh orci, ut ultrices ipsum tincidunt a. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Suspendisse auctor elit id magna consequat malesuada. Vivamus euismod urna nunc, at hendrerit eros tincidunt at. Nunc posuere ipsum erat, id aliquet eros interdum quis.
Cras condimentum et nibh quis fermentum. Praesent enim nisi, placerat sit amet ex ac, dapibus iaculis nibh. Aliquam dapibus in purus nec ullamcorper. Aliquam in lectus at nisi ornare dictum. Aenean bibendum elit nunc, in dignissim enim ornare eget. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Sed at tortor diam. Suspendisse non nunc leo. Nulla facilisi. Integer tristique mauris at risus fringilla maximus. Donec id justo ac diam efficitur vehicula. Morbi nec vestibulum felis, efficitur rhoncus nunc.

View file

@ -1,5 +1,12 @@
{{ define "main" }} {{ define "main" }}
{{ if .Content }}
<section class="section text-center">
<div class="container-fluid">
{{ .Content }}
</div>
</section>
{{ end }}
{{ "<!-- topics -->" | safeHTML }} {{ "<!-- topics -->" | safeHTML }}
<section class="section"> <section class="section">
<div class="container"> <div class="container">
@ -46,4 +53,4 @@
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}