Astro作品集

clay-astro-theme — Astro 作品集模板

作者 akvariefisk

Clay 是一个基于 Astro 的极简作品集主题,面向摄影师与艺术家,采用图片为中心的布局,支持深色模式与 Decap CMS 内容管理。

看看你的网站会是什么样

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

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

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

全部页面与视图 2

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

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

值得关注的模板亮点

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

01

基于 Astro 静态生成,默认输出零 JavaScript

02

以图片为中心的极简作品集布局,适合展示摄影与艺术作品

03

内置深色模式切换并持久化用户选择

04

预配置 Decap CMS,可通过 /admin 面板管理内容

05

使用 Astro Content Collections 管理 Markdown/MDX 内容,类型安全

06

客户端路由提供类似单页应用的页面切换体验

模板详细介绍

Clay 是一个从 Gatsby 移植到 Astro 的作品集主题,面向摄影师和艺术家,整体采用极简、以图片为中心的布局。主题使用 Astro 静态生成,默认输出零 JavaScript,并提供客户端路由以实现类似单页应用的导航体验。

内容通过 Astro Content Collections 管理,仓库中预置了 news、pages、sold、work 等集合,分别对应新闻/博客、静态页面、已售作品和作品集条目。主题预配置了 Decap CMS(原 Netlify CMS),可通过 /admin 面板管理内容,但该面板需要本地后端或部署到 Netlify 才能使用。

样式方面,主题使用 PostCSS 与组件作用域 CSS,颜色、字体和断点等变量集中在 src/styles/vars.css 中;标题与菜单使用 Futura 小型大写,正文使用 EB Garamond。主题内置深色模式切换并会记住用户选择,移动端提供可折叠菜单。

使用限制:这是个人维护的小型开源主题,仓库星标较少;演示图片、字体、图标等第三方素材需单独核对其许可,不能仅凭代码的 MIT 许可判断。

Astro作品集

适合你的项目吗?

适用场景

  • 摄影师搭建个人作品展示网站
  • 艺术家或插画师展示作品集与已售作品
  • 需要深色模式与图片优先布局的静态站点
  • 希望通过 Decap CMS 面板管理内容的个人站点

适合人群

  • 摄影师、艺术家等视觉创作者
  • 熟悉 Astro 或愿意学习其内容集合用法的开发者
  • 需要极简、图片优先作品集模板的个人项目
  • 计划部署到 Netlify 并使用 Decap CMS 的用户

上手与定制指南

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

  1. 1

    克隆仓库后执行 npm install 安装依赖,npm run dev 启动开发服务器,默认地址为 http://localhost:4321

  2. 2

    npm run build 生成静态文件到 dist/ 目录,可部署到 Netlify 或 Vercel

  3. 3

    颜色、字体和断点等样式变量在 src/styles/vars.css 中修改

  4. 4

    导航菜单在 src/layouts/Layout.astro 的 <nav> 部分调整

  5. 5

    Decap CMS 的 /admin 面板需要本地后端或 Netlify 部署才能使用

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • Decap CMS 的 /admin 管理面板并非开箱即用,需要本地后端或部署到 Netlify 后才能使用;纯静态托管环境下无法直接使用该面板管理内容。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

Use the Admin panel at `/admin` (requires local backend or Netlify deployment)

README 原文
https://github.com/akvariefisk/clay-astro-theme/blob/main/LICENSEhttps://github.com/akvariefisk/clay-astro-theme/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 83 / 100
技术栈
Astro
网站类型
作品集
这个分数如何计算

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

这个项目需要核对什么

记录的仓库更新时间
2025-12-20
截图检查日期
2026-10-02

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。

查看当时使用的来源资料

SHA-256: 0aac9d8b78a1e36926d66562a4453f36a71a43be5dd53a96eed05459e4347ae9

2026-10-02T09:40:49.122Z

来源文件 / 仓库
# 🏺 Clay Theme for Astro

[![Netlify Status](https://api.netlify.com/api/v1/badges/098d9ba5-fd1a-4c6b-83c1-0b70fd7e017c/deploy-status)](https://app.netlify.com/projects/clay-astro-theme/deploys)
[![Built with Astro](https://img.shields.io/badge/Built%20with-Astro-orange?style=flat-square&logo=astro&logoColor=white)](https://astro.build)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](https://opensource.org/licenses/MIT)

A minimalist, image-centric theme for photographers and artists. Originally a Gatsby theme, now fully ported to **Astro** for superior performance and modern development experience.

> **Note**: This theme is a modern Astro port of the beautiful [Clay Theme](https://github.com/lilxyzz/clay-theme) by `lilxyzz`.

<p align="center">
  <img src="public/img/clay_astro_light.png" width="48%" alt="Light Mode" style="border-radius: 10px; border: 1px solid #ddd;">
  <img src="public/img/clay_astro_dark.png" width="48%" alt="Dark Mode" style="border-radius: 10px; border: 1px solid #333;">
</p>

📺 Check out the [Live Demo](https://clay-astro-theme.netlify.app) or view on the [Astro Themes Portal](https://astro.build/themes/details/clay/)

---

## ✨ Features

- ⚡ **Astro-Powered** - Blazing fast static site generation with zero-JS output by default
- 🎨 **Beautiful Design** - Minimalist and image-centric layout perfect for portfolios
- 🔄 **Client Router** - Seamless client-side navigation for an SPA-like feel
- 📱 **Responsive Design** - Mobile-friendly layout with a collapsible menu
- 🌗 **Dark Mode** - Native dark mode support with toggle switch and persistence
- 📝 **CMS Ready** - Pre-configured with **Decap CMS** (formerly Netlify CMS)
- 🎯 **Scoped CSS** - Modular, component-scoped styles replacing legacy monolithic CSS
- ✍️ **Typography** - Futura for titles/menu (Small Caps) and EB Garamond for body
- 📚 **Content Collections** - Type-safe Markdown content management

---

## 🚀 Quick Start

```bash
# Clone the repository
git clone https://github.com/your-username/clay-astro-theme.git
cd clay-astro-theme

# Install dependencies and start dev server
npm install && npm run dev
```

Visit `http://localhost:4321` to see your site in action! 🎉

---

## 📦 Installation

### 1. Install Dependencies

```bash
npm install
```

### 2. Start Development Server

```bash
npm run dev
```

Your site will be running at `http://localhost:4321`

### 3. Build for Production

```bash
npm run build
```

The output will be in the `dist/` directory, ready for deployment.

---

## 🛠️ Tech Stack

- **[Astro](https://astro.build)** - Static Site Generator
- **[Decap CMS](https://decapcms.org/)** - Headless CMS
- **[PostCSS](https://postcss.org/)** - CSS Processing
- **TypeScript** - Type Safety
- **Markdown/MDX** - Content Management

---

## 📁 Project Structure

```text
/
├── public/                 # Static assets (images, admin config)
│   ├── admin/              # Decap CMS configuration
│   └── img/                # Uploaded images
├── src/
│   ├── components/         # Reusable Astro components (PostCard, etc.)
│   ├── content/            # Content Collections (Markdown/MDX)
│   │   ├── news/           # News/blog posts
│   │   ├── pages/          # Static pages
│   │   ├── sold/           # Sold items (for artists)
│   │   └── work/           # Portfolio work items
│   ├── layouts/            # Main layouts (Layout.astro)
│   ├── pages/              # Route definitions
│   │   ├── index.astro     # Home page
│   │   ├── [...slug].astro # Dynamic route for generic pages
│   │   └── work/[slug].astro # Dynamic routes for collections
│   ├── styles/             # Global variables and resets
│   │   ├── content.css     # Typography for markdown content
│   │   └── vars.css        # CSS Variables (Colors, Fonts)
│   └── templates/          # Templates for different content types
├── astro.config.mjs        # Astro configuration
├── postcss.config.cjs      # PostCSS configuration
└── tsconfig.json           # TypeScript configuration
```

---

## 🎨 Customization

### Fonts & Colors

Edit `src/styles/vars.css` to update CSS variables for colors, fonts, and breakpoints:

```css
:root {
  --color-primary: #3eb0ef;
  --color-base: #131313;
  --font-serif: 'EB Garamond', Georgia, Times, serif;
  /* ... more variables */
}
```

### Content Management

- **Option 1**: Add markdown files directly to `src/content/` folders
- **Option 2**: Use the Admin panel at `/admin` (requires local backend or Netlify deployment)

### Navigation

Edit the `<nav>` section in `src/layouts/Layout.astro` to customize menu links.

---

## 🚀 Deployment

### Deploy to Netlify

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start)

### Deploy to Vercel

```bash
npm run build
# Upload dist/ folder to Vercel
```

---

## 📝 License

This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.

---

## 🙏 Credits

- **Original Theme**: [Clay Theme](https://github.com/lilxyzz/clay-theme) by `lilxyzz`
- **Framework**: [Astro](https://astro.build)
- **CMS**: [Decap CMS](https://decapcms.org/)



<p align="center">Made with ❤️ using Astro</p>
反馈内容错误

看看同类模板

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