Commit 9ce0d824 authored by Kaushal Modi's avatar Kaushal Modi

Add "draft-tag" partial

parent eae6a0dd
...@@ -4,10 +4,7 @@ ...@@ -4,10 +4,7 @@
<!-- h-entry validation: https://xray.p3k.io/ --> <!-- h-entry validation: https://xray.p3k.io/ -->
<!-- authorship testing: https://sturdy-backbone.glitch.me/ --> <!-- authorship testing: https://sturdy-backbone.glitch.me/ -->
{{ if .Params.draft }} {{ partial "draft-tag.html" . }}
<div class="draft right">Draft</div>
<div class="clear-float"></div>
{{ end }}
<article class="post h-entry {{ .Section }}"> <article class="post h-entry {{ .Section }}">
<header> <header>
......
{{ define "main" }} <!-- List of all posts --> {{ define "main" }} <!-- List of all posts -->
{{ partial "draft-tag.html" . }}
<!-- http://microformats.org/wiki/h-feed --> <!-- http://microformats.org/wiki/h-feed -->
<section class="h-feed"> <section class="h-feed">
<header> <header>
{{ if .Params.draft }}
<div class="draft right">Draft</div>
<div class="clear-float"></div>
{{ end }}
{{ partialCached "all-terms.html" . }} {{ partialCached "all-terms.html" . }}
<!-- To complete the h-feed meta-data --> <!-- To complete the h-feed meta-data -->
......
{{ if .Params.draft }}
<div class="draft right">Draft</div>
<div class="clear-float"></div>
{{ end }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment