diff options
author | de-souza <43355143+de-souza@users.noreply.github.com> | 2019-10-30 16:46:14 +0300 |
---|---|---|
committer | de-souza <43355143+de-souza@users.noreply.github.com> | 2019-10-30 16:46:14 +0300 |
commit | f6f3e126963feb7531ef17fd3050ed18f8d2b19f (patch) | |
tree | 11e89219cb4e4d9b7b17e6a792b02d24ed274f8a | |
parent | 730632b481095644defde77bf9324ed23cb5849c (diff) |
Add custom divider below posts on homepage
-rw-r--r-- | assets/css/base.temp.css | 13 | ||||
-rw-r--r-- | config.yaml | 1 | ||||
-rw-r--r-- | layouts/index.html | 1 |
3 files changed, 15 insertions, 0 deletions
diff --git a/assets/css/base.temp.css b/assets/css/base.temp.css index 2023b32..b51fb6f 100644 --- a/assets/css/base.temp.css +++ b/assets/css/base.temp.css @@ -89,6 +89,19 @@ code { color: white; } +{{ with site.Params.divider }} + +.Divider { + display: flex; + justify-content: center; +} + +.Divider::after { + content: "{{ . }}"; +} + +{{ end }} + .Pagination { font-size: 1.25rem; color: inherit; diff --git a/config.yaml b/config.yaml index 2771607..5756efa 100644 --- a/config.yaml +++ b/config.yaml @@ -18,6 +18,7 @@ params: netlify: honeypot: false # Set to true to add honeypot field in contact form recaptcha: false # Set to true to add recaptcha challenge in contact form + divider: '\2015\2015' # Set to false to remove divider below posts on homepage menu: nav: diff --git a/layouts/index.html b/layouts/index.html index af8e2c2..5686006 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -41,6 +41,7 @@ {{ end }} {{ partial "tags.html" . }} </article> +{{ with site.Params.divider }}<div class="Divider"></div>{{ end }} {{ end }} {{ partial "pagination.html" $paginator }} |