Skip to content

Commit

Permalink
Remove dates by not including them in metadata. Fixes Remove circle …
Browse files Browse the repository at this point in the history
…from front page and dates from List zerostaticthemes#43
  • Loading branch information
gentleadam committed Feb 29, 2024
1 parent c70260e commit 0f8b86c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion exampleSite/content/posts/language-perfect.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: The revolution will be complete when the language is perfect
date: 2019-08-07
description: "As soon as Winston had dealt with each of the messages, he clipped his speakwritten corrections to the appropriate copy of the Times and pushed them into the pneumatic tube. Then, with a movement which was as nearly as possible unconscious, he crumpled up the original message and any notes that he himself had made, and dropped them into the memory hole to be devoured by the flames."
image: images/cctv2.jpeg
imageAltAttribute: CCTV Camera
Expand Down
3 changes: 2 additions & 1 deletion layouts/_default/summary.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div class="summary">
{{ if .Site.Params.showAuthorOnPosts }}
{{ partial "author.html" . }}
{{ else }}
{{ end }}
{{ if isset .Params "date" }}
<div class="summary-date">{{ dateFormat "Jan 2, 2006" .Date }}</div>
{{ end }}
<h2 class="summary-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
<img width="30" class="author-image" src="{{ .Site.Data.author.image | relURL }}" alt="{{ .Site.Data.author.name }}" />
<span class="author-name">{{ .Site.Data.author.name }}</span>
<span class="author-divider"></span>
<span class="author-date">{{ dateFormat "January 2, 2006" .Date }}</span>
{{ if isset .Params "date" }}
<span class="author-date">{{ dateFormat "January 2, 2006" .Date }}</span>
{{ end }}
</div>

0 comments on commit 0f8b86c

Please sign in to comment.