Giter VIP home page Giter VIP logo

Comments (2)

kaiqiangzhao avatar kaiqiangzhao commented on June 29, 2024

这个看起来是gridea不支持自定义模板也使用posts变量

from gridea-theme-pure.

renbaoshuo avatar renbaoshuo commented on June 29, 2024

https://gridea.dev/theme-structure/ 中有详细描述。

fly - 主题文件夹名称 (建议用小写,中划线分隔)
├── assets - 资源文件夹(必须,不可更名)
│   ├── media - 主题静态资源存放目录(可选,不可更名)
│   │   └── fonts - 字体图标文件夹(示例)
│   │   │   ├── icomoon.ttf
│   │   │   └── icomoon.woff
│   │   └── images - 主题用图片文件(示例)
│   └── styles - 样式文件夹(必须,不可更名)
│       ├── _blocks - 样式模块文件夹(可选,可自定义命名)
│       │   ├── footer.less
│       │   ├── header.less
│       │   └── tag.less
│       ├── _core - 样式模块文件夹(可选,可自定义命名)
│       │   ├── base.less
│       │   ├── colors.less
│       └── main.less - 主样式文件 (必须,不可更名)
└── templates - 页面模版文件夹(必须,不可更名)
│   ├── _blocks - 页面模版文件夹(可选,可自定义命名)
│   │   ├── footer.ejs
│   │   ├── head.ejs
│   │   ├── header.ejs
│   ├── index.ejs - 主页,列表页 (必须,不可更名)
│   ├── post.ejs - 文章页 (必须,不可更名)
│   ├── archives.ejs - 归档页 (必须,不可更名)
│   ├── tags.ejs - 标签列表页 (必须,不可更名)
│   ├── tag.ejs - 标签详情页 (必须,不可更名)
│   └── friends.ejs - 自定义模版 (可选,任意命名)
└── config.json - 主题配置文件 (可选,推荐)
└── style-override.js - 主题样式自定义文件 (可选)

from gridea-theme-pure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.