Skip to content

Commit 51d4a02

Browse files
committed
修正文章頁面:關閉最新文章 sidebar,只保留 TOC
1 parent dc0f8b0 commit 51d4a02

File tree

1 file changed

+114
-28
lines changed

1 file changed

+114
-28
lines changed

_config.yml

Lines changed: 114 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,152 @@
1+
# =============================================
2+
# Cypherpunks Taiwan V2.0 Site Configuration
3+
# =============================================
4+
15
# Site Settings
26
title: 密碼龐克 Cypherpunks Taiwan
3-
tagline: "Cypherpunks Taiwan"
7+
tagline: "Cypherpunks Write Code"
48
email: 01360086@me.mcu.edu.tw
59
description: "密碼學使自由和隱私再次偉大。Cryptography makes freedom and privacy great again."
6-
baseurl:
7-
url:
10+
baseurl: ""
11+
url: "https://cypherpunks-core.github.io"
812
permalink: pretty
13+
lang: zh-TW
14+
15+
# Author
16+
author:
17+
name: Cypherpunks Taiwan
18+
email: 01360086@me.mcu.edu.tw
19+
twitter: CypherpunksTW
20+
21+
# Social Links
22+
social:
23+
twitter: CypherpunksTW
24+
github: cypherpunks-core
25+
26+
# Build Settings
27+
markdown: kramdown
28+
highlighter: rouge
929

10-
paginate: 7
11-
paginate_path: "/blog/page:num"
30+
kramdown:
31+
input: GFM
32+
syntax_highlighter: rouge
33+
syntax_highlighter_opts:
34+
css_class: highlight
35+
block:
36+
line_numbers: true
1237

38+
# Pagination
39+
paginate: 10
40+
paginate_path: "/blog/page/:num/"
41+
42+
# Plugins
1343
plugins:
1444
- jekyll-sitemap
1545
- jekyll-paginate
1646
- jekyll-feed
1747
- jekyll-seo-tag
18-
- kramdown
19-
- rouge
2048

21-
exclude:
49+
# Exclude from build
50+
exclude:
2251
- Gemfile
23-
- clean-theme.gemspec
2452
- Gemfile.lock
2553
- node_modules
26-
- vendor/bundle/
27-
- vendor/cache/
28-
- vendor/gems/
29-
- vendor/ruby/
54+
- vendor/
55+
- package.json
56+
- package-lock.json
57+
- tailwind.config.js
58+
- README.md
59+
- LICENSE
60+
- V2.0-UPGRADE-PLAN.md
61+
- "*.gemspec"
62+
63+
# Include in build
64+
include:
65+
- _pages
3066

67+
# Livereload
3168
livereload: true
3269

70+
# Sass (保留但不再主要使用)
3371
sass:
3472
style: compressed
3573
source_dir: _sass
3674

75+
# Google Analytics
3776
google_analytics: UA-131051587-3
3877

78+
# Theme Settings
79+
theme_settings:
80+
default_theme: dark # dark | light | auto
81+
enable_matrix: true
82+
enable_scanlines: true
83+
enable_typewriter: true
84+
85+
# SEO
86+
twitter:
87+
username: CypherpunksTW
88+
card: summary_large_image
89+
90+
# Open Graph
91+
og_image: /img/og-default.png
92+
93+
# Default Front Matter
3994
defaults:
40-
-
41-
scope:
95+
# Pages
96+
- scope:
4297
path: ""
4398
type: "pages"
4499
values:
100+
layout: page
45101
show_sidebar: true
46-
-
47-
scope:
102+
# Posts
103+
- scope:
48104
path: ""
49105
type: "posts"
50106
values:
51-
author: "Cypherpunks Core"
52107
layout: post
53-
image: https://via.placeholder.com/1200x800
54-
show_sidebar: true
108+
author: "Cypherpunks Taiwan"
109+
image: /img/default-post.png
110+
show_sidebar: false
111+
show_toc: true
112+
show_comments: true
113+
show_share: true
114+
# Products (Books)
115+
- scope:
116+
path: ""
117+
type: "products"
118+
values:
119+
layout: product
120+
show_sidebar: false
55121

56-
markdown: kramdown
57-
highlighter: rouge
122+
# Collections
123+
collections:
124+
products:
125+
output: true
126+
permalink: /books/:path/
58127

128+
# Footer Menu
59129
footer_menu: example_footer_menu
60130

61-
collections:
62-
products:
63-
output: true
64-
layout: product
65-
image: https://via.placeholder.com/800x600
66-
show_sidebar: false
131+
# Reading Time Settings (Chinese ~350 chars/min)
132+
reading_time:
133+
enabled: true
134+
words_per_minute: 350
135+
136+
# Comments (Giscus)
137+
comments:
138+
provider: giscus
139+
giscus:
140+
repo: "cypherpunks-core/cypherpunks-core.github.io"
141+
repo_id: "" # 需要設置
142+
category: "Comments"
143+
category_id: "" # 需要設置
144+
mapping: pathname
145+
reactions_enabled: true
146+
emit_metadata: false
147+
theme: "dark"
148+
149+
# Search (Pagefind)
150+
search:
151+
enabled: true
152+
shortcut: "k" # Cmd/Ctrl + K

0 commit comments

Comments
 (0)