summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-07-23 16:24:44 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-07-23 16:24:44 +0530
commit8356e48e4792cb26f6349482111036908dcbc38f (patch)
tree037365e53043e5f1f277335398808b44d9dc05b3 /layouts/partials
parentfe986eb333d86ce3a42365c972505b95daa3a950 (diff)
Add option to use 1st entry as some Information
Currenty supports 2 vals Title and Content Great for short intro for bloggers can be enabled by using `Params.homeInfoParams` homeInfoParams: enabled: true Title: Hi there 👋 Content: This is Content !! Can be Info, links, social-icons...
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/homeInfo.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/partials/homeInfo.html b/layouts/partials/homeInfo.html
new file mode 100644
index 0000000..26d0b0f
--- /dev/null
+++ b/layouts/partials/homeInfo.html
@@ -0,0 +1,10 @@
+{{ with $.Site.Params.homeInfoParams }}
+<article class="first-entry">
+ <header class="entry-header">
+ <h2>{{ .Title }}</h2>
+ </header>
+ <section class="entry-content">
+ <p>{{ .Content | plainify | htmlUnescape }}...</p>
+ </section>
+</article>
+{{end}} \ No newline at end of file