mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
Use YAML in archetypes
This commit is contained in:
parent
cc678c58c1
commit
adf5c685be
@ -1,27 +1,34 @@
|
||||
+++
|
||||
title = "{{ replace .Name "-" " " | title }}"
|
||||
date = "{{ .Date | time.Format "2006-01-02" }}"
|
||||
toc = true
|
||||
draft = true
|
||||
---
|
||||
|
||||
tags = [
|
||||
"awesome",
|
||||
]
|
||||
title: {{ replace .Name "-" " " | title }}
|
||||
date: {{ .Date | time.Format "2006-01-02" }}
|
||||
toc: true
|
||||
draft: true
|
||||
|
||||
# this will be shown for the article in list pages
|
||||
# currently it can be either an image or video
|
||||
[[resources]]
|
||||
name = "feature"
|
||||
src = "something.webp"
|
||||
title = "Some image (image format can be anything; webp is just an example)"
|
||||
+++
|
||||
tags:
|
||||
- awesome
|
||||
|
||||
This page is about something. All the content before the "more" HTML comment below will become the summary, which will be used in list pages and in the meta tags on the article.
|
||||
# this will be shown for the article in list pages and in the page metadata
|
||||
# it can be either an image or video (this might change in the future, however)
|
||||
resources:
|
||||
- name: feature
|
||||
src: something.webp
|
||||
title: Some image (image format can be anything; webp is just an example)
|
||||
|
||||
Or, if you don't want your description to be at the top of the article, you can set your own `description` in the front matter and it will override this. See the [Content Summaries](https://gohugo.io/content-management/summaries/) page on the Hugo docs for more information.
|
||||
---
|
||||
|
||||
This page is about something. All the content before the "more" HTML comment
|
||||
below will become the summary, which will be used in list pages and in the meta
|
||||
tags on the article.
|
||||
|
||||
Or, if you don't want your description to be at the top of the article, you can
|
||||
set your own `description` in the front matter and it will override this. See
|
||||
the [Content Summaries](https://gohugo.io/content-management/summaries/) page on
|
||||
the Hugo docs for more information.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Something
|
||||
|
||||
All the content below the "more" HTML comment above is part of the article itself.
|
||||
All the content below the "more" HTML comment above is part of the article
|
||||
itself.
|
||||
|
@ -1,15 +1,23 @@
|
||||
+++
|
||||
title = "{{ replace .Name "-" " " | title }}"
|
||||
menu = "main"
|
||||
toc = true
|
||||
+++
|
||||
---
|
||||
|
||||
This page is about something. All the content before the "more" HTML comment below will become the summary, which will be used in list pages and in the meta tags on the article.
|
||||
title: {{ replace .Name "-" " " | title }}
|
||||
menu: main
|
||||
toc: true
|
||||
|
||||
Or, if you don't want your description to be at the top of the article, you can set your own `description` in the front matter and it will override this. See the [Content Summaries](https://gohugo.io/content-management/summaries/) page on the Hugo docs for more information.
|
||||
---
|
||||
|
||||
This page is about something. All the content before the "more" HTML comment
|
||||
below will become the summary, which will be used in list pages and in the meta
|
||||
tags on the article.
|
||||
|
||||
Or, if you don't want your description to be at the top of the article, you can
|
||||
set your own `description` in the front matter and it will override this. See
|
||||
the [Content Summaries](https://gohugo.io/content-management/summaries/) page on
|
||||
the Hugo docs for more information.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Something
|
||||
|
||||
All the content below the "more" HTML comment above is part of the article itself.
|
||||
All the content below the "more" HTML comment above is part of the article
|
||||
itself.
|
||||
|
Loading…
Reference in New Issue
Block a user