首次提交

This commit is contained in:
jimmy committed 2025-01-05 20:46:35 +08:00
1 parent 9fb614bbb0
commit ed26c05928
10 files changed
+248

No files matched your search

View File
Whitespace-only changes.
+5
View File
@@ -0,0 +1,5 @@
---
date: '{{ .Date }}'
draft: true
title: '{{ replace .File.ContentBaseName "-" " " | title }}'
---
+6
View File
@@ -0,0 +1,6 @@
---
title: "Archive"
layout: "archives"
url: "/archives"
summary: "archives"
---
+20
View File
@@ -0,0 +1,20 @@
---
date: '2025-01-05T19:33:58+08:00'
draft: false
title: 'First'
cover:
image: img.webp
alt: 'this is a post image'
caption: 'this is a caption'
# 为文章添加分类标签
tags: ['html','css']
categories: ["tech"]
#layout: "search" # necessary for search
#ShowToc: true
# 多个作者
author: ["Me", "You"]
---
你好
+8
View File
@@ -0,0 +1,8 @@
---
date: '2025-01-05T19:33:58+08:00'
draft: false
title: 'First'
---
这是测试的额例子
+37
View File
@@ -0,0 +1,37 @@
---
date: '2025-01-05T19:33:58+08:00'
draft: false
title: 'First'
# 文章置顶
weight: 1
keywords: ['页面']
---
这是测试的额例子123123
![img.webp](/img.webp)
再次测试
```js
console.log("你好,世界!")
```
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Example HTML5 Document</title>
<meta
name="description"
content="Sample article showcasing basic Markdown syntax and formatting for HTML elements."
/>
</head>
<body>
<p>Test</p>
</body>
</html>
```
+86
View File
@@ -0,0 +1,86 @@
baseURL: ""
languageCode: zh
title: Demo!
theme: PaperMod
copyright: "duyl328"
params:
# defaultTheme: light
# defaultTheme: dark
defaultTheme: auto # to switch between dark or light according to browser theme
env: production
# 字数统计
ShowWordCount: true
# 代码复制按钮
ShowCodeCopyButtons: true
profileMode:
enabled: false
title: "Title" # optional default will be site title
subtitle: "This is subtitle"
# imageUrl: "img.webp" # optional
imageTitle: "<title of image as alt>" # optional
imageWidth: 120 # custom size
imageHeight: 120 # custom size
# buttons:
# - name: Archive
# url: "/archive"
# - name: Github
# url: "https://github.com/"
outputs:
home:
- HTML
- RSS
- JSON # necessary for search
homeInfoParams:
Title: 'hello word'
Content: '你好,世界'
socialIcons:
- name: github
url: 'https://github.com/duyl328'
cover:
# 配置图片可跳转
linkFullImages: true
# 展示面包屑导航
ShowBreadCrumbs: true
ShowReadingTime: true
# ShowShareButtons: true
ShowPostNavLinks: true
# markdown 高亮样式
markup:
highlight:
# anchorLineNos: true
codeFences: true
guessSyntax: true
lineNos: true
# noClasses: false
style: monokai
menu:
main:
- identifier: categories
# 右上角展示出的名称
name: Categories
url: /categories/
# 权重定义的是菜单的展示顺序
weight: 10
- identifier: tags
name: Tags
url: /tags/
weight: 20
- identifier: archives
name: Archives
url: /archives/
weight: 5
+85
View File
@@ -0,0 +1,85 @@
{{- define "main" }}
<header class="page-header">
<h1>
{{ .Title }}
{{- if (.Param "ShowRssButtonInSectionTermList") }}
{{- $rss := (.OutputFormats.Get "rss") }}
{{- if (eq .Kind `page`) }}
{{- $rss = (.Parent.OutputFormats.Get "rss") }}
{{- end }}
{{- with $rss }}
<a href="{{ .RelPermalink }}" title="RSS" aria-label="RSS">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" height="23">
<path d="M4 11a9 9 0 0 1 9 9"/>
<path d="M4 4a16 16 0 0 1 16 16"/>
<circle cx="5" cy="19" r="1"/>
</svg>
</a>
{{- end }}
{{- end }}
</h1>
<hr>
{{- if .Description }}
<div class="post-description">
{{ .Description }}
</div>
{{- end }}
</header>
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- if site.Params.ShowAllPagesInArchive }}
{{- $pages = site.RegularPages }}
{{- end }}
{{- range $pages.GroupByPublishDate "2006" }}
{{- if ne .Key "0001" }}
<div class="archive-year">
{{- $year := replace .Key "0001" "" }}
<h2 class="archive-year-header" id="{{ $year }}">
<a class="archive-header-link" href="#{{ $year }}">
{{- $year -}}
</a>
<sup class="archive-count">&nbsp;{{ len .Pages }}</sup>
</h2>
{{- range .Pages.GroupByDate "January" }}
<div class="archive-month">
<h3 class="archive-month-header" id="{{ $year }}-{{ .Key }}">
<a class="archive-header-link" href="#{{ $year }}-{{ .Key }}">
{{- .Key -}}
</a>
<sup class="archive-count">&nbsp;{{ len .Pages }}</sup>
</h3>
<div class="archive-posts">
{{- range .Pages }}
{{- if eq .Kind "page" }}
<div class="archive-entry">
<h3 class="archive-entry-title entry-hint-parent">
{{- .Title | markdownify }}
{{- if .Draft }}
<span class="entry-hint" title="Draft">
<svg xmlns="http://www.w3.org/2000/svg" height="15" viewBox="0 -960 960 960" fill="currentColor">
<path
d="M160-410v-60h300v60H160Zm0-165v-60h470v60H160Zm0-165v-60h470v60H160Zm360 580v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q9 9 13 20t4 22q0 11-4.5 22.5T862.09-380L643-160H520Zm300-263-37-37 37 37ZM580-220h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z"/>
</svg>
</span>
{{- end }}
</h3>
<div class="archive-meta">
{{- partial "post_meta.html" . -}}
</div>
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
</div>
{{- end }}
{{- end }}
</div>
</div>
{{- end }}
</div>
{{- end }}
{{- end }}
{{- end }}{{/* end main */}}
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

+1
Submodule themes/PaperMod added at 3e53621007.