Skip to content

Commit 6934fd1

Browse files
author
NightVoyager
committed
Saved on 2026-01-13T06:03:46Z
1 parent ec5e99e commit 6934fd1

3,710 files changed

Lines changed: 83 additions & 61048 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/FixIt"]
2+
path = themes/FixIt
3+
url = https://github.com/hugo-fixit/FixIt.git

CLAUDE.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# CLAUDE.md
2+
3+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4+
5+
## Project Overview
6+
7+
This is a Hugo-based personal blog (夜航星 / Night Voyager) using the FixIt theme. The site is in Chinese (zh-CN) and covers topics like cognitive psychology, learning methods, data analysis, and programming.
8+
9+
- **Base URL:** https://austinxt.github.io (Custom domain: blog.nightvoyager.top)
10+
- **Theme:** FixIt (installed as git submodule in `themes/FixIt/`)
11+
12+
## Common Commands
13+
14+
```bash
15+
# Development server with live reload
16+
hugo server
17+
18+
# Development with full rebuild on changes (use when editing layouts)
19+
hugo server --disableFastRender
20+
21+
# Production build (outputs to public/)
22+
hugo
23+
24+
# Create new post
25+
hugo new posts/YYYY-MM-DD-title.md
26+
27+
# Create new talk/note
28+
hugo new talks/YYYY-MM-DD-title.md
29+
```
30+
31+
## Architecture
32+
33+
### Content Organization
34+
- `content/posts/` - Published articles (~70 posts)
35+
- `content/talks/` - Discussion notes and quick thoughts (~43 entries)
36+
- `content/draft/` - Draft articles (not published)
37+
38+
### Configuration
39+
- `config.toml` - Main Hugo configuration including SEO verification codes, menu structure, theme settings, and markup options
40+
41+
### Custom Layouts
42+
- `layouts/_partials/head/seo.html` - Enhanced SEO metadata template with JSON-LD schema, AI-friendly tags, and search engine verification codes
43+
44+
### Static Assets
45+
- `static/robots.txt` - SEO crawler rules including explicit AI crawler permissions (GPTBot, Claude-Web, etc.)
46+
- `static/ai.txt` - AI usage policy declaration (CC-BY-NC-4.0 license)
47+
- `static/CNAME` - GitHub Pages custom domain configuration
48+
49+
### Theme
50+
The FixIt theme is a git submodule. Do not modify files inside `themes/FixIt/` directly. Use `layouts/` directory for customizations that override theme templates.
51+
52+
## Front Matter Template
53+
54+
Posts use YAML front matter with these key fields:
55+
```yaml
56+
title: Post title
57+
subtitle: Subtitle
58+
date: YYYY-MM-DD
59+
description: SEO description
60+
tags: [tag1, tag2]
61+
categories: [category]
62+
featuredImage: /images/image.jpg
63+
lightgallery: true
64+
mathjax: false # Enable per-post for math content
65+
```
66+
67+
## Deployment
68+
69+
The site deploys to GitHub Pages. After running `hugo`, commit the `public/` directory and push to trigger deployment.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- $params := .Scratch.Get "params" -}}
1+
{{- $params := partial "function/params.html" -}}
22

33
{{- with .Site.Params.verification.google -}}
44
<meta name="google-site-verification" content="{{ . }}" />
@@ -55,7 +55,7 @@
5555
"description": {{ . | safeHTML }},
5656
{{- end -}}
5757
{{- $image := .Site.Params.seo.image -}}
58-
{{- with dict "Path" $image "Resources" .Resources | partial "function/resource.html" -}}
58+
{{- with dict "Path" $image | partial "function/resource.html" -}}
5959
"image": {
6060
"@type": "ImageObject",
6161
"url": "{{ .Permalink }}",
@@ -68,7 +68,7 @@
6868
{{- end -}}
6969
{{- end -}}
7070
{{- with .Site.Params.seo.thumbnailUrl -}}
71-
{{- with dict "Path" . "Resources" $.Resources | partial "function/resource.html" -}}
71+
{{- with dict "Path" . | partial "function/resource.html" -}}
7272
"thumbnailUrl": "{{ .Permalink }}",
7373
{{- else -}}
7474
"thumbnailUrl": "{{ . | absURL }}",
@@ -109,7 +109,7 @@
109109
"image": [
110110
{{- range $index, $value := . -}}
111111
{{- if gt $index 0 }},{{ end -}}
112-
{{- with dict "Path" $value "Resources" $.Resources | partial "function/resource.html" -}}
112+
{{- with dict "Path" $value | partial "function/resource.html" -}}
113113
{
114114
"@type": "ImageObject",
115115
"url": "{{ .Permalink }}",
@@ -147,7 +147,7 @@
147147
"@type": "Organization",
148148
"name": {{ $publisher.name | safeHTML }}
149149
{{- $logo := $publisher.logoUrl -}}
150-
{{- with dict "Path" $logo "Resources" .Resources | partial "function/resource.html" -}}
150+
{{- with dict "Path" $logo | partial "function/resource.html" -}}
151151
,"logo": {
152152
"@type": "ImageObject",
153153
"url": "{{ .Permalink }}",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:root{--fi-base:"/";--fi-logo-img:url("/images/fixit.min.svg");--fi-loading-img:url("/images/loading.min.svg")}
2+
3+
/*# sourceMappingURL=config.min.css.map */
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"Target":"css/config.min.css","MediaType":"text/css","Data":{}}

resources/_gen/assets/css/style.scss_1a67ae4ed98f18e3ea7da02d2ccd80c9.content

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

resources/_gen/assets/scss/css/f79aa6.scss_2d8526ab9608131a52511a2771df6b1d.content

Lines changed: 0 additions & 1 deletion
This file was deleted.

resources/_gen/assets/scss/css/f79aa6.scss_2d8526ab9608131a52511a2771df6b1d.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

resources/_gen/assets/scss/css/style.scss_26962b449d539ee5c1301a7879e5bb0e.content

Lines changed: 0 additions & 3 deletions
This file was deleted.

resources/_gen/assets/scss/css/style.scss_26962b449d539ee5c1301a7879e5bb0e.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)