Add front matter parameter to enable/disable drop cap at the beginning of a post
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user