summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2026-01-27 09:19:25 +0800
committerEltrac <hi@guhub.cn>2026-01-27 09:19:25 +0800
commit2ec7145f3392b65d67d6b94534a79221359b9806 (patch)
tree40eca89104aa266e25c48641a64a053d7790a31a
parent18a5de010ae172176e99fa6f4f3d20b5745ef501 (diff)
refactor: move layouts to root, out of theme
-rw-r--r--assets/css/main.css (renamed from themes/jardin/assets/css/main.css)0
-rw-r--r--assets/js/main.js (renamed from themes/jardin/assets/js/main.js)0
-rw-r--r--assets/uno.css (renamed from themes/jardin/assets/uno.css)1
-rw-r--r--hugo.toml1
-rw-r--r--layouts/_partials/footer.html (renamed from themes/jardin/layouts/_partials/footer.html)0
-rw-r--r--layouts/_partials/head.html (renamed from themes/jardin/layouts/_partials/head.html)0
-rw-r--r--layouts/_partials/head/css.html (renamed from themes/jardin/layouts/_partials/head/css.html)0
-rw-r--r--layouts/_partials/head/js.html (renamed from themes/jardin/layouts/_partials/head/js.html)0
-rw-r--r--layouts/_partials/header.html (renamed from themes/jardin/layouts/_partials/header.html)0
-rw-r--r--layouts/_partials/menu.html (renamed from themes/jardin/layouts/_partials/menu.html)0
-rw-r--r--layouts/_partials/terms.html (renamed from themes/jardin/layouts/_partials/terms.html)0
-rw-r--r--layouts/baseof.html (renamed from themes/jardin/layouts/baseof.html)0
-rw-r--r--layouts/home.html41
-rw-r--r--layouts/page.html (renamed from themes/jardin/layouts/page.html)0
-rw-r--r--layouts/section.html (renamed from themes/jardin/layouts/section.html)0
-rw-r--r--layouts/taxonomy.html (renamed from themes/jardin/layouts/taxonomy.html)0
-rw-r--r--layouts/term.html (renamed from themes/jardin/layouts/term.html)0
-rw-r--r--package.json (renamed from themes/jardin/package.json)0
-rw-r--r--pnpm-lock.yaml (renamed from themes/jardin/pnpm-lock.yaml)0
-rw-r--r--static/favicon.ico (renamed from themes/jardin/static/favicon.ico)bin15406 -> 15406 bytes
-rw-r--r--themes/jardin/hugo.toml24
-rw-r--r--themes/jardin/layouts/home.html27
-rw-r--r--uno.config.js (renamed from themes/jardin/uno.config.js)0
23 files changed, 26 insertions, 68 deletions
diff --git a/themes/jardin/assets/css/main.css b/assets/css/main.css
index 166ade9..166ade9 100644
--- a/themes/jardin/assets/css/main.css
+++ b/assets/css/main.css
diff --git a/themes/jardin/assets/js/main.js b/assets/js/main.js
index e2aac52..e2aac52 100644
--- a/themes/jardin/assets/js/main.js
+++ b/assets/js/main.js
diff --git a/themes/jardin/assets/uno.css b/assets/uno.css
index 7b93c1c..455bc29 100644
--- a/themes/jardin/assets/uno.css
+++ b/assets/uno.css
@@ -14,6 +14,7 @@
.leading-relaxed{line-height:1.625;}
.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}
.font-serif{font-family:ui-serif,Georgia,Cambria,"Times New Roman",Times,serif;}
+.outline-3{outline-width:3px;}
@media (prefers-color-scheme: dark){
.dark\:invert{--un-invert:invert(1);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia);}
}
diff --git a/hugo.toml b/hugo.toml
index 10cd601..d6ffac2 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -2,5 +2,4 @@ baseURL = 'https://jar.geedea.pro/'
languageCode = 'zh-cn'
title = 'Jar'
-theme = 'jardin'
mainSections = ['notes']
diff --git a/themes/jardin/layouts/_partials/footer.html b/layouts/_partials/footer.html
index b711ff4..b711ff4 100644
--- a/themes/jardin/layouts/_partials/footer.html
+++ b/layouts/_partials/footer.html
diff --git a/themes/jardin/layouts/_partials/head.html b/layouts/_partials/head.html
index 74e8e53..74e8e53 100644
--- a/themes/jardin/layouts/_partials/head.html
+++ b/layouts/_partials/head.html
diff --git a/themes/jardin/layouts/_partials/head/css.html b/layouts/_partials/head/css.html
index 2771e16..2771e16 100644
--- a/themes/jardin/layouts/_partials/head/css.html
+++ b/layouts/_partials/head/css.html
diff --git a/themes/jardin/layouts/_partials/head/js.html b/layouts/_partials/head/js.html
index 16ffbed..16ffbed 100644
--- a/themes/jardin/layouts/_partials/head/js.html
+++ b/layouts/_partials/head/js.html
diff --git a/themes/jardin/layouts/_partials/header.html b/layouts/_partials/header.html
index f88077f..f88077f 100644
--- a/themes/jardin/layouts/_partials/header.html
+++ b/layouts/_partials/header.html
diff --git a/themes/jardin/layouts/_partials/menu.html b/layouts/_partials/menu.html
index ab36f0c..ab36f0c 100644
--- a/themes/jardin/layouts/_partials/menu.html
+++ b/layouts/_partials/menu.html
diff --git a/themes/jardin/layouts/_partials/terms.html b/layouts/_partials/terms.html
index 8a6ebec..8a6ebec 100644
--- a/themes/jardin/layouts/_partials/terms.html
+++ b/layouts/_partials/terms.html
diff --git a/themes/jardin/layouts/baseof.html b/layouts/baseof.html
index 96e8461..96e8461 100644
--- a/themes/jardin/layouts/baseof.html
+++ b/layouts/baseof.html
diff --git a/layouts/home.html b/layouts/home.html
index 91eb159..bafd321 100644
--- a/layouts/home.html
+++ b/layouts/home.html
@@ -1,18 +1,27 @@
{{ define "main" }}
{{ .Content }}
-
- <h2>Notes</h2>
- <section>
- <h3><a href="/notes/silver-skins/">银皮(Silver Skin)</a></h3>
- <p><small>2026-01-26</small></p>
- <p>test</p>
- </section>
-
- <section>
- <h3><a href="/notes/test-note/">测试笔记</a></h3>
- <p><small>2026-01-26</small></p>
- <p>这是一个测试笔记。</p>
- </section>
-
- <p><a href="/notes/">查看所有笔记 →</a></p>
-{{ end }} \ No newline at end of file
+ {{ $mainSections := .Site.Params.mainSections | default (slice "posts" "post" "blog" "notes") }}
+ {{ $pages := where .Site.RegularPages "Section" "in" $mainSections }}
+ {{ if $pages }}
+ <h2>Recent Notes</h2>
+ {{ range $pages }}
+ <section>
+ <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3>
+ <p><small>{{ .Date.Format "2006-01-02" }}</small></p>
+ {{ .Summary }}
+ </section>
+ {{ end }}
+ {{ else }}
+ {{ $allPages := where .Site.AllPages "Kind" "page" }}
+ {{ if $allPages }}
+ <h2>All Pages</h2>
+ {{ range $allPages }}
+ <section>
+ <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3>
+ <p><small>{{ .Date.Format "2006-01-02" }} | {{ .Section }}</small></p>
+ {{ .Summary }}
+ </section>
+ {{ end }}
+ {{ end }}
+ {{ end }}
+{{ end }}
diff --git a/themes/jardin/layouts/page.html b/layouts/page.html
index 0064f5a..0064f5a 100644
--- a/themes/jardin/layouts/page.html
+++ b/layouts/page.html
diff --git a/themes/jardin/layouts/section.html b/layouts/section.html
index 748f2f5..748f2f5 100644
--- a/themes/jardin/layouts/section.html
+++ b/layouts/section.html
diff --git a/themes/jardin/layouts/taxonomy.html b/layouts/taxonomy.html
index c2e7875..c2e7875 100644
--- a/themes/jardin/layouts/taxonomy.html
+++ b/layouts/taxonomy.html
diff --git a/themes/jardin/layouts/term.html b/layouts/term.html
index c2e7875..c2e7875 100644
--- a/themes/jardin/layouts/term.html
+++ b/layouts/term.html
diff --git a/themes/jardin/package.json b/package.json
index 0b9a8cc..0b9a8cc 100644
--- a/themes/jardin/package.json
+++ b/package.json
diff --git a/themes/jardin/pnpm-lock.yaml b/pnpm-lock.yaml
index fe37c57..fe37c57 100644
--- a/themes/jardin/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
diff --git a/themes/jardin/static/favicon.ico b/static/favicon.ico
index 67f8b77..67f8b77 100644
--- a/themes/jardin/static/favicon.ico
+++ b/static/favicon.ico
Binary files differ
diff --git a/themes/jardin/hugo.toml b/themes/jardin/hugo.toml
deleted file mode 100644
index 5c26950..0000000
--- a/themes/jardin/hugo.toml
+++ /dev/null
@@ -1,24 +0,0 @@
-baseURL = 'https://example.org/'
-languageCode = 'en-US'
-title = 'My New Hugo Site'
-
-[menus]
- [[menus.main]]
- name = 'Home'
- pageRef = '/'
- weight = 10
-
- [[menus.main]]
- name = 'Posts'
- pageRef = '/posts'
- weight = 20
-
- [[menus.main]]
- name = 'Tags'
- pageRef = '/tags'
- weight = 30
-
-[module]
- [module.hugoVersion]
- extended = false
- min = '0.146.0'
diff --git a/themes/jardin/layouts/home.html b/themes/jardin/layouts/home.html
deleted file mode 100644
index bafd321..0000000
--- a/themes/jardin/layouts/home.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{{ define "main" }}
- {{ .Content }}
- {{ $mainSections := .Site.Params.mainSections | default (slice "posts" "post" "blog" "notes") }}
- {{ $pages := where .Site.RegularPages "Section" "in" $mainSections }}
- {{ if $pages }}
- <h2>Recent Notes</h2>
- {{ range $pages }}
- <section>
- <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3>
- <p><small>{{ .Date.Format "2006-01-02" }}</small></p>
- {{ .Summary }}
- </section>
- {{ end }}
- {{ else }}
- {{ $allPages := where .Site.AllPages "Kind" "page" }}
- {{ if $allPages }}
- <h2>All Pages</h2>
- {{ range $allPages }}
- <section>
- <h3><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h3>
- <p><small>{{ .Date.Format "2006-01-02" }} | {{ .Section }}</small></p>
- {{ .Summary }}
- </section>
- {{ end }}
- {{ end }}
- {{ end }}
-{{ end }}
diff --git a/themes/jardin/uno.config.js b/uno.config.js
index f25f239..f25f239 100644
--- a/themes/jardin/uno.config.js
+++ b/uno.config.js