Astro启动器

scholar-lite — Astro 启动器模板

作者 fjd2004711

Scholar-Lite 是一个基于 Astro 的学术门户静态模板,面向实验室、研究团队与学者,支持 BibTeX 自动导入、Pagefind 多语言全文检索与团队/成果内容管理。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

3 个预览视图
桌面端首页1 / 3
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 3

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-04查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

内置 BibTeX 导入引擎,运行 npm run import-bibtex 后按条目类型自动分类到 Publications 或 Books

02

将 pdf、code、website、demo、video、slides、award 等 BibTeX 字段映射为页面按钮或徽章

03

内置 Pagefind 全文检索,支持英语、中文、日语、韩语、法语、德语、西班牙语与俄语 8 种语言

04

除论文与书籍外,还支持软件著作权、发明专利、团队荣誉等学术成果的 Markdown 内容管理

05

提供 GitHub Actions 与 GitLab CI 配置,可自动构建并部署到 GitHub Pages 或 GitLab Pages

06

采用 MIT 许可,允许免费使用、修改、商用与分发该版本代码

模板详细介绍

Scholar-Lite 是面向学术实验室、研究团队与学者的静态门户模板,使用 Astro 构建,并配合 Tailwind CSS 与 TypeScript。模板的核心能力集中在学术成果展示与内容管理:通过 scripts/import-bibtex.js 中的 BibTeX 导入引擎,将 citations.bib 中的条目按类型自动分类到 Publications(src/content/publications)或 Books(src/content/books),并把 pdf、url、code、website、demo、video、slides、award 等字段映射为页面上的按钮或徽章。除论文与书籍外,模板还支持在 src/content/softwares、src/content/patents、src/content/honors 中分别维护软件著作权、发明专利与团队荣誉,News、Team、Research 等内容同样以 Markdown 文件形式存放在 src/content/ 下。检索方面,模板内置 Pagefind,支持英语、中文、日语、韩语、法语、德语、西班牙语与俄语共 8 种语言的搜索,搜索索引在构建时生成,因此搜索功能依赖构建步骤。国际化通过 src/i18n/ui.ts 管理界面文案。

使用与部署方面,模板要求 Node.js v22.12.0 或更高版本,提供 npm run dev 本地开发与 npm run build 生成静态站点及搜索索引;构建产物输出到 dist,可部署到 Cloudflare Pages、Vercel、Netlify 或 GitHub Pages,仓库内包含 GitHub Actions 与 GitLab CI 配置用于自动构建与部署。模板采用 MIT 许可,允许免费使用、修改、商用与分发该版本代码,但演示图片、字体、图标等第三方素材需按各自许可单独核对,域名、托管等外部服务也可能产生费用。

Astro启动器

适合你的项目吗?

适用场景

  • 学术实验室或研究团队搭建对外展示的成果门户,集中呈现论文、书籍与项目
  • 学者个人维护出版物列表,通过替换 citations.bib 自动更新页面内容
  • 需要多语言检索能力的学术站点,使用 Pagefind 在 8 种语言中搜索站内内容
  • 在 News、Team、Research 等栏目中维护团队动态、成员信息与研究方向的静态站点
  • 登记软件著作权、发明专利与团队荣誉等非论文类学术成果的展示页面

适合人群

  • 拥有 BibTeX 文献库、希望减少手工录入的学术实验室与研究团队
  • 需要多语言界面与站内搜索的学术门户维护者
  • 习惯以 Markdown 与内容目录方式管理站点内容的开发者
  • 计划将静态站点部署到 Cloudflare Pages、Vercel、Netlify 或 GitHub Pages 的用户

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    需要 Node.js v22.12.0 或更高版本

  2. 2

    本地开发运行 npm run dev,默认访问 http://localhost:4321

  3. 3

    构建运行 npm run build,输出目录为 dist;搜索索引在构建时生成,搜索功能依赖构建步骤

  4. 4

    导入文献时将 citations.bib 放在项目根目录并运行 npm run import-bibtex

  5. 5

    部署到 Cloudflare Pages、Vercel 或 Netlify 时,构建命令设为 npm run build,输出目录设为 dist

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 站内搜索索引在构建时生成,搜索功能依赖执行构建步骤(npm run build),未构建则无法使用搜索。
  • 使用该模板需本地环境安装 Node.js v22.12.0 或更高版本,低于此版本无法运行。
  • 导入文献需先从 Zotero、Mendeley 或 Google Scholar 等外部工具导出 BibTeX 文件,模板本身不提供文献数据。
  • 部署到 Cloudflare Pages、Vercel 或 Netlify 时需连接 GitHub/GitLab 仓库,依赖第三方托管平台账号。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

*Note: The search index is generated at build time. Search functionality requires the build step.*

README 原文

### Prerequisites * Node.js v22.12.0 or higher

README 原文

1. **Export BibTeX**: Export your bibliography as `citations.bib` from Zotero, Mendeley, or Google Scholar.

README 原文

1. Connect your GitHub/GitLab repository.

README 原文
https://github.com/fjd2004711/scholar-lite/blob/main/LICENSEhttps://github.com/fjd2004711/scholar-lite/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-05。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
Astro Themes
资料与维护参考分
资料较完整 · 87 / 100
技术栈
Astro
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-09-30
截图检查日期
2026-10-05

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-05

查看当时使用的来源资料

SHA-256: 06f9866c5bb95f7b4f252e6337f97ef27ffee363354532020152d0263084400e

2026-10-05T03:35:22.911Z

来源文件 / 仓库
# 🎓 Scholar-Lite

<div align="center">

![Astro](https://img.shields.io/badge/Astro_v6-BC52EE?style=for-the-badge&logo=astro&logoColor=white)
![TailwindCSS](https://img.shields.io/badge/Tailwind_v4-38B2AC?style=for-the-badge&logo=tailwind-css&logoColor=white)
![TypeScript](https://img.shields.io/badge/TypeScript-5.0-3178C6?style=for-the-badge&logo=typescript&logoColor=white)
![Pagefind](https://img.shields.io/badge/Pagefind-Search-FF0000?style=for-the-badge&logo=algolia&logoColor=white)
![License](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)

**[English](./README.md) | [简体中文](./README.zh-CN.md)**

> ## **⚡ Create your site in 30 seconds**
> ```bash
> npm create astro@latest -- --template fjd2004711/scholar-lite
> ```

<p align="center">
  <a href="https://app.netlify.com/start/deploy?repository=https://github.com/fjd2004711/scholar-lite" target="_blank">
    <img src="https://www.netlify.com/img/deploy/button.svg" alt="Deploy to Netlify">
  </a>
  <a href="https://vercel.com/new/clone?repository-url=https://github.com/fjd2004711/scholar-lite" target="_blank">
    <img src="https://vercel.com/button" alt="Deploy with Vercel">
  </a>
</p>

**The Next-Generation Static Website Template for Academic Labs & Scholars.**
*Blazing fast, zero-config BibTeX import, and multilingual search engine built-in.*

---

## 🚀 Quick Start (No Coding Required)

1.  **Click** the `Deploy to Netlify` or `Deploy with Vercel` button above.
2.  **Wait** for the deployment to finish.
3.  **Go to** your new GitHub repository and find `citations.bib`.
4.  **Upload** your own BibTeX file to replace it.
5.  **Done!** Your website updates automatically in 1 minute.

---

<div align="center" style="margin-top: 20px;">
  <table>
    <tr>
      <td align="center">
        <a href="https://scholar-lite-demo.netlify.app/" target="_blank">
          <img src="https://img.shields.io/badge/Live_Demo-Netlify-00C7B7?style=for-the-badge&logo=netlify&logoColor=white" alt="Live Demo" />
        </a>
        <br />
        <strong>Live Preview</strong>
      </td>
      <td align="center">
        <a href="https://github.com/fjd2004711/scholar-lite" target="_blank">
          <img src="https://img.shields.io/badge/Source_Code-GitHub-181717?style=for-the-badge&logo=github&logoColor=white" alt="Source Code" />
        </a>
        <br />
        <strong>Repository</strong>
      </td>
    </tr>
  </table>
</div>

<div align="center">
  <img src="public/assets/screenshots/home-desktop-mockup.png" width="70%" alt="Desktop View" />
  <img src="public/assets/screenshots/mobile-view-mockup.png" width="25%" alt="Mobile View" />
</div>

</div>

---

## 🚀 Why Scholar-Lite?

### ⚡ Unmatched Performance
*   **Zero JS by Default**: Built on **Astro v6**, sending **0kb** of JavaScript to the client for content pages.
*   **100/100 Lighthouse**: Optimized out-of-the-box for Performance, Accessibility, Best Practices, and SEO.
*   **Tailwind CSS v4**: The latest utility-first CSS framework for rapid, modern styling.

<p align="center">
  <img src="public/assets/screenshots/lighthouse-score.png" width="80%" alt="Lighthouse Score">
</p>

### 🤖 Smart Automation
*   **One-Click BibTeX Import**: Stop manually copying papers. Drop your `citations.bib` and run one command.
*   **Intelligent Parsing**: Automatically extracts **PDF links**, **Code repositories**, **Project Websites**, **Videos**, and **Cover images**.
*   **Asset Management**: Smart fallback system for missing publication covers.
*   **Auto-Badging**: Automatically highlights "Best Paper", "Oral", or "Spotlight" awards based on BibTeX notes.

### 🌍 Global Reach
*   **Multilingual Search**: Built-in **Pagefind** search engine supporting **8 languages** (English, Chinese, Japanese, Korean, French, German, Spanish, Russian).
*   **i18n Ready**: Native support for internationalization with type-safe translations.

---

## 🆚 Comparison: Scholar-Lite vs. Hugo Academic

| Feature | 🎓 Scholar-Lite | 🐢 Hugo Academic (Wowchemy) |
| :--- | :--- | :--- |
| **Tech Stack** | **Astro v6 + React + Tailwind v4** (Modern & Mainstream) | Hugo + Go Templates (Steep learning curve) |
| **Performance** | **100/100 Lighthouse** (Zero JS by default) | Good, but often bloated with heavy JS |
| **BibTeX Import** | **Zero-Config** (Drag & drop `citations.bib`) | Complex Python scripts / Manual entry |
| **Customization** | **Component-based** (Edit `.astro` / `.tsx` files directly) | Rigid Theme (Overriding internal templates is hard) |
| **Multilingual** | **Native i18n + Pagefind** (Search in 8 languages) | Partial support, search often breaks |
| **Dev Experience** | **Hot Reload (HMR)** in milliseconds | Slower rebuilds on large sites |
| **Ecosystem** | **NPM / Node.js** (Access to millions of packages) | Go Modules (Limited web-focused packages) |

---

## 🛠️ Quick Start

### Prerequisites
*   Node.js v22.12.0 or higher

### 1. Installation
```bash
git clone https://github.com/your-repo/scholar-lite.git
cd scholar-lite
npm install
```

### 2. Development
Start the local server with hot module replacement:
```bash
npm run dev
```
Visit `http://localhost:4321`.

### 3. Production Build
Generate the static site and search index:
```bash
npm run build
```
*Note: The search index is generated at build time. Search functionality requires the build step.*

---

## 📚 Smart Publication & Book Management

Scholar-Lite features a powerful **BibTeX Import Engine** located in `scripts/import-bibtex.js`, supporting both **Papers** and **Books**.

### How to Import
1.  **Export BibTeX**: Export your bibliography as `citations.bib` from Zotero, Mendeley, or Google Scholar.
2.  **Place File**: Save `citations.bib` in the project root.
3.  **Run Import**:
    ```bash
    npm run import-bibtex
    ```
4.  **Auto-Classification**: The system automatically classifies entries based on BibTeX type:
    *   `@article`, `@inproceedings`, etc. -> Imported to **Publications** (`src/content/publications`)
    *   `@book` -> Imported to **Books** (`src/content/books`)

### Advanced BibTeX Features

The importer maps BibTeX fields to website elements intelligently:

| BibTeX Field | Website Element | Smart Behavior |
|--------------|-----------------|----------------|
| `cover`/`image` | Cover Image | Auto-detects local images in `src/assets/`. **Highly recommended for books**. |
| `publisher` | Publisher | For books, `publisher` is automatically displayed as the venue. |
| `pdf`/`url`/`file` | PDF Button | Cleans Zotero path formats (e.g., `files/mypaper.pdf`). |
| `code`/`github` | Code Button | Generates a GitHub/Code link button. |
| `website`/`project` | **Project Page** | Generates a Globe icon link to the project homepage. |
| `demo` | **Live Demo** | Generates a "Demo" button (Web App / HuggingFace / Video). |
| `video`/`recording` | **Video** | Generates a Video link button. |
| `slides`/`ppt` | **Slides** | Generates a Slides download button. |
| `award`/`note` | **Badges** | Auto-generates Gold/Blue/Red badges for "Best Paper", "Oral", etc. |

### BibTeX Entry Examples

#### 1. Paper
```bibtex
@article{gpt4,
  title={GPT-4 Technical Report},
  author={OpenAI},
  year={2024},
  journal={ArXiv},
  url={https://arxiv.org/pdf/2303.08774.pdf},
  code={https://github.com/openai/evals},
  cover={../../assets/gpt4-cover.jpg},
  note={Tech Report}
}
```

#### 2. Book
Simply set the entry type to `@book`, and the system will automatically place it in the "Books" section.
```bibtex
@book{deeplearning,
  title={Deep Learning},
  author={Goodfellow, Ian and Bengio, Yoshua and Courville, Aaron},
  publisher={MIT Press},
  year={2016},
  url={http://www.deeplearningbook.org},
  cover={../../assets/book-deep-learning.jpg}
}
```

---

## 🌟 Best Practices

### 📁 Directory Structure
*   **Images**: Store website assets in `src/assets/images/`. Use `.webp` or optimized `.jpg` for better performance.
*   **Team Photos**: Place headshots in `src/assets/team/`. Square aspect ratio (1:1) is recommended.
*   **Content**: All editable content (News, Team, Research info) lives in `src/content/`.

### 📝 Content Management
*   **News**: Add new Markdown files in `src/content/news/`. The filename doesn't matter, but sorting is based on the `date` field.
*   **Team**: Add members in `src/content/team/`. Use `weight` to control display order (lower numbers appear first).
*   **Research Fields**: Add Markdown files in `src/content/research/`. Use `order` field to control display order.
*   **Translations**: Edit `src/i18n/ui.ts` to modify UI text (e.g., navigation menu, buttons) for all supported languages.

### 🎓 More Academic Achievements
Beyond papers and books, the system supports managing other academic achievements. Simply create Markdown files in the corresponding folders.

#### 1. Software Copyrights
*   **Location**: `src/content/softwares/`
*   **Example**:
    ```markdown
    ---
    title: "Intelligent Image Processing System V1.0"
    developers: ["John Doe", "Jane Smith"]
    number: "2023SR123456"
    date: 2023-06-15
    description: "An automated image processing platform based on deep learning."
    ---
    ```

#### 2. Invention Patents
*   **Location**: `src/content/patents/`
*   **Example**:
    ```markdown
    ---
    title: "A Method for Image Recognition Based on Attention Mechanism"
    inventors: ["John Doe", "Bob Johnson"]
    number: "CN102345678B"
    date: 2024-01-20
    status: "Granted" # Options: Granted, Pending, Filed
    ---
    ```

#### 3. Group Honors
*   **Location**: `src/content/honors/`
*   **Example**:
    ```markdown
    ---
    title: "18th Challenge Cup National College Student Extracurricular Academic Science and Technology Works Competition"
    award: "Grand Prize"
    date: 2023-10-30
    year: "2023"
    type: "Challenge Cup"  # Options: Challenge Cup, Internet+, Other
    level: "Special"       # Options: Special, First, Second, Third
    ---
    ```


### 🖼️ Image Optimization
Scholar-Lite automatically optimizes images imported from `src/assets/`.
*   **Avoid**: Putting large images in `public/`.
*   **Prefer**: Importing images in Markdown or Astro components to leverage automatic compression and lazy loading.

---

## 🚢 Deployment

Scholar-Lite is a static site that can be deployed anywhere.

### Recommended Platforms

| Platform | Global Speed | Ease of Use | Cost |
|----------|--------------|-------------|------|
| **Cloudflare Pages** | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | Free |
| **Vercel** | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | Free |
| **Netlify** | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | Free |
| **GitHub Pages** | ⭐⭐⭐ | ⭐⭐⭐⭐ | Free |

### Cloudflare Pages / Vercel / Netlify
1.  Connect your GitHub/GitLab repository.
2.  **Build Command**: `npm run build`
3.  **Output Directory**: `dist`
4.  Deploy!

### GitHub Pages / GitLab Pages
This template includes CI/CD configurations (`.github/workflows` and `.gitlab-ci.yml`) to automatically build and deploy to GitHub/GitLab Pages on push.

---

<div align="center">

**[Scholar-Lite Team](https://github.com/fjd2004711)**
<br>
*Empowering academic research with modern web technology.*

</div>
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。