mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2024-11-29 05:23:50 +01:00
New ramble format
This commit is contained in:
parent
d679754a13
commit
34e903d09f
|
@ -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
7
archetypes/rambles.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
title: "{{ replace .TranslationBaseName "-" " " | title }}"
|
||||||
|
date: "{{ .Date }}"
|
||||||
|
author: ""
|
||||||
|
tags: ["", ""]
|
||||||
|
description: ""
|
||||||
|
---
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue