Jekyll Minima 项目教程

Jekyll Minima 项目教程

minimaMinima is a one-size-fits-all Jekyll theme for writers.项目地址:https://gitcode.com/gh_mirrors/mi/minima

1. 项目的目录结构及介绍

Jekyll Minima 是一个简洁的 Jekyll 主题,其目录结构如下:

minima/
├── _includes/
│   ├── footer.html
│   ├── header.html
│   ├── head.html
│   ├── icon-github.html
│   ├── icon-twitter.html
│   └── social.html
├── _layouts/
│   ├── default.html
│   ├── home.html
│   ├── page.html
│   └── post.html
├── _sass/
│   ├── minima/
│   │   ├── _base.scss
│   │   ├── _layout.scss
│   │   └── _syntax-highlighting.scss
│   └── minima.scss
├── assets/
│   └── main.scss
├── _config.yml
├── Gemfile
├── Gemfile.lock
└── index.html

目录结构介绍

  • _includes/:包含页面的各个部分,如页眉、页脚等。
  • _layouts/:包含页面的布局模板。
  • _sass/:包含 SASS 样式文件。
  • assets/:包含资源文件,如 CSS 文件。
  • _config.yml:项目的配置文件。
  • GemfileGemfile.lock:用于管理项目的依赖。
  • index.html:项目的首页文件。

2. 项目的启动文件介绍

Jekyll Minima 项目的启动文件是 index.html。这个文件是项目的入口点,定义了首页的布局和内容。

---
layout: home
---

这个文件使用了 home 布局,并继承了 _layouts/home.html 模板。

3. 项目的配置文件介绍

Jekyll Minima 项目的配置文件是 _config.yml。这个文件包含了项目的各种配置选项,如站点标题、描述、URL 等。

title: Your awesome title
author: GitHub User
email: your-email@domain.com
description: >- # this means to ignore newlines until "baseurl:"
  Write an awesome description for your new blog. You can edit this
  line in _config.yml. It will appear in your document head meta (for
  Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "http://localhost:4000" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb
github_username:  jekyll

# Build settings
theme: minima
plugins:
  - jekyll-feed

配置文件介绍

  • title:站点的标题。
  • author:站点的作者。
  • email:作者的电子邮件。
  • description:站点的描述。
  • baseurl:站点的子路径。
  • url:站点的基本 URL。
  • twitter_usernamegithub_username:作者的 Twitter 和 GitHub 用户名。
  • theme:使用的主题,这里是 minima
  • plugins:使用的插件,这里是 jekyll-feed

以上是 Jekyll Minima 项目的目录结构、启动文件和配置文件的介绍。希望这些信息能帮助你更好地理解和使用这个项目。

minimaMinima is a one-size-fits-all Jekyll theme for writers.项目地址:https://gitcode.com/gh_mirrors/mi/minima

  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

薄垚宝

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值