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 }}"
|
title: "{{ replace .TranslationBaseName "-" " " | title }}"
|
||||||
date: {{ .Date }}
|
date: {{ .Date }}
|
||||||
description: ""
|
description: ""
|
||||||
|
dropCap: false
|
||||||
displayInMenu: false
|
displayInMenu: false
|
||||||
displayInList: true
|
displayInList: true
|
||||||
draft: true
|
draft: true
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ date: {{ .Date }}
|
|||||||
description: ""
|
description: ""
|
||||||
categories: []
|
categories: []
|
||||||
featuredImage: ""
|
featuredImage: ""
|
||||||
|
dropCap: true
|
||||||
displayInMenu: false
|
displayInMenu: false
|
||||||
displayInList: true
|
displayInList: true
|
||||||
draft: true
|
draft: true
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<body class="single-body">
|
<body class="single-body">
|
||||||
{{ partial "nav-bar.html" . }}
|
{{ partial "nav-bar.html" . }}
|
||||||
<main class="content side-text-padding">
|
<main class="content side-text-padding">
|
||||||
<article class="post dropcase">
|
<article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}">
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 class="post-title">{{ .Title }}</h1>
|
<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>
|
<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