WordPressVite博客

180c-theme — WordPress 博客模板

作者 nearmint

180°C 法国美食杂志官网所用的 WordPress 主题,包含编辑内容、食谱库、WooCommerce 商店与订阅,并对外提供移动应用使用的 REST API。

看看你的网站会是什么样

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

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

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

全部页面与视图 3

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

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

值得关注的模板亮点

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

01

经典 PHP 模板搭配 ACF Flexible Content 页面构建器,用于首页和落地页的编辑驱动布局

02

自定义 REST 命名空间 180c/v1,提供认证、收藏、食谱、推送和新闻通讯接口,供原生应用通过 JWT 调用

03

内置 SEO 输出:meta 标签、JSON-LD(Article、Recipe、Product、FAQPage、VideoObject)、站点地图和 llms.txt,无需 SEO 插件

04

自建同意横幅,GA4 与 Umami 仅在用户同意后加载

05

OneSignal 推送通知覆盖移动端与网页端,支持食谱发布时自动发送

06

代码层面包含限流、安全响应头和 TOTP 双因素认证

模板详细介绍

180c-theme 是 180°C 这家独立法国美食杂志的定制 WordPress 主题,运行在 180c.fr 上。它同时承载编辑内容、食谱库、WooCommerce 商店和付费订阅,并为 180°C 的 iOS 与 Android 应用提供 REST API。

主题采用经典 PHP 模板,配合 ACF Flexible Content 页面构建器来搭建首页和落地页,方便编辑人员组织版式。前端由 Vite 编译,样式基于 Tailwind CSS,脚本使用原生 ES 模块并按 BEM 组织。内容模型通过 ACF Pro 管理,字段组以 Local JSON 形式存放在 acf-json/ 目录中。

功能层面,主题内置了面向应用的自定义 REST 命名空间 180c/v1,覆盖认证、收藏、食谱、推送和新闻通讯;SEO 方面直接输出 meta 标签、JSON-LD(Article、Recipe、Product、FAQPage、VideoObject)、站点地图和 llms.txt,不依赖 SEO 插件。隐私方面使用自建同意横幅,GA4 与 Umami 仅在用户同意后加载;推送通知通过 OneSignal 覆盖移动端与网页端,并可在食谱发布时自动发送。代码中还包含限流、安全响应头以及管理员账户的 TOTP 双因素认证。

使用限制方面,主题依赖 WordPress、WooCommerce、WooCommerce Subscriptions、WooCommerce Memberships、ACF Pro 等插件,并需要 PHP 8.3+、Composer 与 Node 环境。仓库中的 mu-plugins 需手动安装且不随部署流程上传。演示图片、字体、图标等第三方素材的授权需单独核对,不能仅凭代码的 MIT 许可判断。

WordPressVite博客

适合你的项目吗?

适用场景

  • 为美食或生活方式媒体搭建同时包含编辑内容、食谱库和在线商店的 WordPress 站点
  • 需要为已有 iOS 与 Android 应用提供认证、收藏、食谱等接口的 WordPress 后端
  • 希望在不安装 SEO 插件的情况下直接输出结构化数据、站点地图和 llms.txt 的内容站点
  • 需要订阅制会员或付费内容,并接入 WooCommerce Subscriptions 与 Memberships 的电商场景
  • 对隐私合规有要求,需要在用户同意后再加载分析脚本的网站

适合人群

  • 熟悉 WordPress 主题开发、PHP 与 Composer 的开发者
  • 使用 ACF Pro 和 WooCommerce 生态构建内容与电商站点的团队
  • 需要为移动应用提供 REST API 的媒体或出版方
  • 接受 Vite、Tailwind CSS 与原生 ES 模块前端工作流的项目

上手与定制指南

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

  1. 1

    环境要求:PHP 8.3+、Composer、Node 24+,以及已安装上述插件的本地 WordPress

  2. 2

    将主题克隆到 wp-content/themes 后依次执行 composer install、npm install 和 npm run build,再在后台启用 180°C 主题

  3. 3

    ACF 字段组从 acf-json/ 目录同步

  4. 4

    mu-plugins 目录中的必须使用插件需手动安装,不随部署流程上传

  5. 5

    演示图片、字体、图标等第三方素材需按各自许可单独核对

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

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

使用时需要遵守

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

额外费用与待核对事项

  • 使用前需自行准备本地 WordPress 环境,并安装 WooCommerce、WooCommerce Subscriptions、WooCommerce Memberships、ACF Pro 等插件,这些插件需另行获取。
  • mu-plugins 目录中的必须使用插件需手动安装,不会随部署流程上传,需自行处理。
  • 商店支付、邮件订阅、推送通知与 JWT 登录依赖 Stripe、PayPal、Mailchimp、OneSignal、Simple JWT Login 等外部服务,需自行注册账号并配置密钥。
  • GA4 与 Umami 分析脚本仅在用户同意后加载,需自行配置对应分析服务账号。
  • 部署流程通过 GitHub Actions 经 SFTP 上传到生产环境,需自行配置服务器与 SFTP 凭据。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

a local WordPress install with the plugins above

README 原文

mu-plugins/ Must-use plugin sources, installed manually (not deployed)

README 原文

Integrations | Stripe, PayPal, Mailchimp, OneSignal, Simple JWT Login

README 原文

GA4 and Umami load only after consent

README 原文

Every push to `main` triggers `.github/workflows/deploy.yml`

README 原文
https://github.com/nearmint/180c-theme/blob/main/LICENSEhttps://github.com/nearmint/180c-theme/blob/main/README.md

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

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料较完整 · 85 / 100
技术栈
WordPress · Vite
网站类型
博客
这个分数如何计算

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

这个项目需要核对什么

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

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

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

查看具体选型方法 →

介绍的制作与核对状态

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

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

查看当时使用的来源资料

SHA-256: 21181095fa7d2f0102e4512db32be471619e5a93a6c1552fc6596e4802a4b93e

2026-10-02T06:37:59.636Z

来源文件 / 仓库
# 180c-theme

![WordPress 6.4+](https://img.shields.io/badge/WordPress-6.4%2B-21759B?logo=wordpress&logoColor=white) ![PHP 8.3+](https://img.shields.io/badge/PHP-8.3%2B-777BB4?logo=php&logoColor=white) ![WooCommerce](https://img.shields.io/badge/WooCommerce-Subscriptions-7F54B3?logo=woocommerce&logoColor=white) ![Tailwind CSS v4](https://img.shields.io/badge/Tailwind%20CSS-v4-06B6D4?logo=tailwindcss&logoColor=white) [![License: MIT](https://img.shields.io/badge/License-MIT-green)](LICENSE)

Custom WordPress theme powering [180c.fr](https://www.180c.fr), the website of 180°C, an independent French food magazine: editorial content, a recipe library, a WooCommerce store and paid subscriptions. It also serves the REST API used by the 180°C iOS and Android apps.

## Highlights

- **Editor-driven layouts**: classic PHP templates with an ACF Flexible Content page builder for the home page and landing pages.
- **App-ready API**: `180c/v1` REST namespace (auth, favorites, recipes, push, newsletter) consumed by the native apps via JWT.
- **Native SEO**: meta tags, JSON-LD (`Article`, `Recipe`, `Product`, `FAQPage`, `VideoObject`), sitemap and `llms.txt`, without any SEO plugin.
- **Privacy by design**: in-house consent banner; GA4 and Umami load only after consent.
- **Push notifications**: OneSignal for mobile and web, including automated sends on recipe publication.
- **Hardening in code**: rate limiting, security headers, and TOTP two-factor authentication for the admin account.

## Stack

| Layer | Technology |
|---|---|
| CMS | WordPress 6.4+, PHP 8.3+ |
| Commerce | WooCommerce, WooCommerce Subscriptions, WooCommerce Memberships |
| Content model | ACF Pro, versioned as Local JSON in `acf-json/` |
| Front end | Vite 6, Tailwind CSS v4 (CSS-first), vanilla ES modules, BEM |
| Integrations | Stripe, PayPal, Mailchimp, OneSignal, Simple JWT Login |
| Quality | PHPCS + WordPress Coding Standards, ESLint, Stylelint |

## Getting started

Requirements: PHP 8.3+, Composer, Node 24+, a local WordPress install with the plugins above.

```bash
cd wp-content/themes
git clone https://github.com/nearmint/180c-theme.git
cd 180c-theme
composer install
npm install
npm run build
```

Then activate **180°C** in *Appearance › Themes*. ACF field groups sync from `acf-json/`.

## Development

```bash
npm run dev       # Vite dev server
npm run build     # production build to dist/
npm test          # build + JS unit tests
composer lint     # PHPCS / WPCS
npm run lint      # ESLint + Stylelint
```

Conventions:

- PHP functions and options are prefixed `_180c_`; the text domain is `180c`.
- One feature per file under `inc/`, loaded from `inc/bootstrap.php`.
- CSS follows strict BEM on top of design tokens.
- Commits follow [Conventional Commits](https://www.conventionalcommits.org/); `main` is merged with `--no-ff` only.

## Deployment

Every push to `main` triggers `.github/workflows/deploy.yml`: PHP lint, build, artifact checks, then SFTP upload of the theme to production. `lint.yml` runs PHPCS on PHP 8.3 and 8.5 for `main` and `develop`.

## Project layout

```
inc/            PHP features: blocks, REST API, SEO, WooCommerce, auth, push, analytics
src/            CSS and JS sources, compiled by Vite
parts/          Template parts
woocommerce/    WooCommerce template overrides
acf-json/       ACF field groups (Local JSON)
mu-plugins/     Must-use plugin sources, installed manually (not deployed)
tools/          CI checks (REST argument validation)
```

Further reading: [`CLAUDE.md`](CLAUDE.md) for architecture rules, [`mu-plugins/README.md`](mu-plugins/README.md) for must-use plugins.

## License

[MIT](LICENSE)
反馈内容错误

看看同类模板

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