mirror of https://github.com/jkjoy/hugoblog.git
更改URL
This commit is contained in:
parent
ebdc06bd01
commit
2a3bb459f6
|
@ -1,8 +1,6 @@
|
|||
---
|
||||
title: "文章归档"
|
||||
menu:
|
||||
main:
|
||||
name: 文章
|
||||
weight: 10
|
||||
layout: "posts"
|
||||
|
||||
---
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
title: "Explore topics"
|
||||
description: "hi"
|
||||
title: "分类"
|
||||
description: "topics"
|
||||
---
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: "分享"
|
||||
description: "分享心得,教程,资源,项目等等"
|
||||
cover: "https://static.fatesinger.com/2021/12/vhp6eou5x2wqh2zy.jpg"
|
||||
---
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: "吐槽"
|
||||
description: "垃圾话"
|
||||
cover: "https://static.fatesinger.com/2021/12/vhp6eou5x2wqh2zy.jpg"
|
||||
---
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: "日记"
|
||||
description: "记录日常"
|
||||
cover: "https://static.fatesinger.com/2021/12/vhp6eou5x2wqh2zy.jpg"
|
||||
---
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: "测试"
|
||||
description: "偶尔测试一些好玩的项目"
|
||||
cover: "https://static.fatesinger.com/2021/12/vhp6eou5x2wqh2zy.jpg"
|
||||
---
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "说说"
|
||||
layout: "memo"
|
||||
|
||||
---
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: "书影音游"
|
||||
description: "hi"
|
||||
description: "豆瓣"
|
||||
token: "322dba2a3a27524b97c06d941d9631d153fc"
|
||||
---
|
||||
|
|
|
@ -35,7 +35,7 @@ theme = 'farallon'
|
|||
[taxonomies]
|
||||
category = 'categories'
|
||||
tag = 'tags'
|
||||
story = 'archives'
|
||||
|
||||
[Params]
|
||||
search= true
|
||||
description = '资深网民孙先生.'
|
||||
|
@ -44,7 +44,7 @@ theme = 'farallon'
|
|||
indexName = 'blog'
|
||||
searchKey = '6de51423d2ac6b29beb9a061737a85ca'
|
||||
searchAPPID = 'CIU4I6RWD0'
|
||||
showAuthor = true
|
||||
showAuthor = false
|
||||
authorName = '老孙'
|
||||
authorDescription = '资深网民孙先生'
|
||||
authorAvatar = 'https://i.sunpeiwen.com/source/img/logo.jpg'
|
||||
|
@ -53,6 +53,8 @@ theme = 'farallon'
|
|||
feed = '/index.xml'
|
||||
twitter = 'https://twitter.com/imsunpei'
|
||||
instagram = 'https://www.instagram.com/imsunpw/'
|
||||
github = 'https://github.com/jkjoy'
|
||||
footer_sns = true
|
||||
|
||||
[outputs]
|
||||
home = [ "HTML","JSON","RSS","SITEMAP"]
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
{{ define "main" }}
|
||||
<div class="page--archive">
|
||||
{{- range (where (where .Site.Pages "Type" "in" "posts") "Kind" "page").GroupByDate "2006" }}
|
||||
{{ if (where .Pages "Section" "posts") }}
|
||||
<h2 class="archive--title__year">{{ .Key }}</h2>
|
||||
{{ range .Pages.ByPublishDate.Reverse.GroupByDate "January" }}
|
||||
<h3 class="archive--title__month">{{ .Key }}</h3>
|
||||
<ul class="archive--list">
|
||||
{{ range ((where .Pages "Section" "posts")) }}
|
||||
<li class="archive--item">
|
||||
<div class="archive--title">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</div>
|
||||
<div class="archive--meta">{{ .PublishDate.Format "Jan 02" }}</div>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
Loading…
Reference in New Issue