Skip to content

Commit b1542bb

Browse files
Fix: Explicitly add theme to Gemfile and clean config
1 parent 608bc58 commit b1542bb

2 files changed

Lines changed: 11 additions & 33 deletions

File tree

Gemfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
source "https://rubygems.org"
22

3+
# 基础框架
34
gem "jekyll"
45

5-
# 将插件放入这个特定的组,保证它们被优先加载
6+
# 你的主题 (必须显式安装!)
7+
gem "jekyll-theme-minimal"
8+
9+
# 你的插件 (必须放在 plugins 组里以确保加载)
610
group :jekyll_plugins do
711
gem "jekyll-scholar"
8-
gem "jekyll-theme-minimal"
912
end

_config.yml

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,18 @@
1-
# NeuroAIHub Laboratory Homepage
2-
31
title: NeuroAIHub
42
description: Focusing on the intersection of Neuroscience and AI.
53
url: "https://NeuroAIHub.github.io"
6-
baseurl: ""
7-
theme: jekyll-theme-minimal # 作为一个基础兜底,实际我们会用自定义 CSS
84

9-
# Build settings
10-
markdown: kramdown
5+
# 1. 这里指定主题
6+
theme: jekyll-theme-minimal
117

12-
# 启用 jekyll-scholar 插件来处理 BibTeX
8+
# 2. 插件列表 (只放功能插件,不要放主题)
139
plugins:
1410
- jekyll-scholar
15-
- jekyll-theme-minimal
16-
11+
12+
# 3. Scholar 插件配置
1713
scholar:
1814
style: apa
1915
source: ./_bibliography
2016
bibliography: papers.bib
2117
sort_by: year, month
22-
order: descending
23-
24-
# Exclude from processing
25-
exclude:
26-
- Gemfile
27-
- Gemfile.lock
28-
- node_modules
29-
- vendor/bundle/
30-
- vendor/cache/
31-
- vendor/gems/
32-
- vendor/ruby/
33-
- .sass-cache/
34-
- .jekyll-cache/
35-
- gemfiles/
36-
37-
# Front matter defaults
38-
defaults:
39-
- scope:
40-
path: ""
41-
type: "pages"
42-
values:
43-
layout: "default"
18+
order: descending

0 commit comments

Comments
 (0)