Add front matter parameter to enable/disable drop cap at the beginning of a post
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
title: "{{ replace .TranslationBaseName "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
description: ""
|
||||
dropCap: false
|
||||
displayInMenu: false
|
||||
displayInList: true
|
||||
draft: true
|
||||
|
||||
@@ -4,6 +4,7 @@ date: {{ .Date }}
|
||||
description: ""
|
||||
categories: []
|
||||
featuredImage: ""
|
||||
dropCap: true
|
||||
displayInMenu: false
|
||||
displayInList: true
|
||||
draft: true
|
||||
|
||||
@@ -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