Add front matter parameter to enable/disable drop cap at the beginning of a post

This commit is contained in:
Joe Hutchinson
2018-12-20 13:39:19 -05:00
parent b4fc6bf87d
commit c9c5680127
3 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
<body class="single-body">
{{ partial "nav-bar.html" . }}
<main class="content side-text-padding">
<article class="post dropcase">
<article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}">
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
<p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>