New ramble format

This commit is contained in:
Nox Sluijtman 2022-08-18 14:52:42 +02:00
parent d679754a13
commit 34e903d09f
3 changed files with 9 additions and 15 deletions

View file

@ -1,13 +0,0 @@
+++
title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = "{{ .Date }}"
author = ""
authorTwitter = "" #do not include @
cover = ""
tags = ["", ""]
keywords = ["", ""]
description = ""
showFullContent = false
readingTime = false
hideComments = false
+++

7
archetypes/rambles.md Normal file
View file

@ -0,0 +1,7 @@
---
title: "{{ replace .TranslationBaseName "-" " " | title }}"
date: "{{ .Date }}"
author: ""
tags: ["", ""]
description: ""
---

View file

@ -1,8 +1,8 @@
{{ define "main" }} {{ define "main" }}
{{ .Content -}} {{ .Content -}}
<div class="posts"> <div class="posts">
{{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "rambles") (eq (trim $.Site.Params.contentTypeName " ") "")) }}
{{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "rambles" }}
{{ $PageContext := . }} {{ $PageContext := . }}
{{ if .IsHome }} {{ if .IsHome }}