blog/README.md

201 lines
6.7 KiB
Markdown
Raw Normal View History

2021-02-01 16:22:39 +01:00
<div align="center">
<br>
<a href="https://github.com/jeffreytse/jekyll-theme-yat">
<img alt="jekyll-theme-yat →~ jekyll" src="https://user-images.githubusercontent.com/9413601/106478481-346fdf00-64e4-11eb-9385-1ab5329c3234.png" width="600">
</a>
2021-06-30 05:38:13 +02:00
<h1>JEKYLL YAT THEME</h1>
2021-02-01 16:22:39 +01:00
</div>
<h4 align="center">
<a href="https://jekyllrb.com/" target="_blank"><code>Jekyll</code></a> theme for elegant writers.
</h4>
<p align="center">
<a href="https://jeffreytse.github.io/jekyll-theme-yat">
<img src="https://github.com/jeffreytse/jekyll-theme-yat/workflows/Github%20Pages/badge.svg"
alt="Github Pages" />
</a>
<a href="http://badge.fury.io/rb/jekyll-theme-yat">
<img src="https://badge.fury.io/rb/jekyll-theme-yat.svg"
alt="Gem Version" />
</a>
<a href="https://opensource.org/licenses/MIT">
<img src="https://img.shields.io/badge/License-MIT-brightgreen.svg"
alt="License: MIT" />
</a>
<a href="https://liberapay.com/jeffreytse">
<img src="http://img.shields.io/liberapay/goal/jeffreytse.svg?logo=liberapay"
alt="Donate (Liberapay)" />
</a>
<a href="https://patreon.com/jeffreytse">
<img src="https://img.shields.io/badge/support-patreon-F96854.svg?style=flat-square"
alt="Donate (Patreon)" />
</a>
<a href="https://ko-fi.com/jeffreytse">
2020-07-16 13:51:38 +02:00
<img height="20" src="https://www.ko-fi.com/img/githubbutton_sm.svg"
2021-02-01 16:22:39 +01:00
alt="Donate (Ko-fi)" />
</a>
</p>
<div align="center">
<sub>Built with ❤︎ by
<a href="https://jeffreytse.net">jeffreytse</a> and
<a href="https://github.com/jeffreytse/jekyll-theme-yat/graphs/contributors">contributors </a>
2021-06-30 05:38:13 +02:00
</sub>
2021-02-01 16:22:39 +01:00
</div>
<br>
2020-07-16 13:51:38 +02:00
2020-12-31 03:38:52 +01:00
Hey, nice to meet you, you found this [Jekyll][jekyll] theme. Here the
2021-06-30 05:38:13 +02:00
_YAT (Yet Another Theme)_ is a modern responsive theme. It's quiet
clear, clean and neat for writers and posts. **If you are an elegant
writer and focus on content, don't miss it.**
2019-08-03 11:14:05 +02:00
2021-06-30 05:38:13 +02:00
<p align="center">
Like this elegant theme? You can give it a star or sponsor me!<br>
I will respect your crucial support and say THANK YOU!
</p>
2019-08-03 11:14:05 +02:00
2020-07-12 15:02:28 +02:00
<p align="center">
2019-08-03 11:14:05 +02:00
2021-06-30 05:38:13 +02:00
<img src="https://user-images.githubusercontent.com/9413601/91842897-6a840b00-ec87-11ea-95ca-52abcc1ac063.png" alt="demo-screenshot" width="100%"/>
2019-08-03 11:14:05 +02:00
2020-07-12 15:02:28 +02:00
</p>
2019-08-03 11:14:05 +02:00
2021-06-30 05:38:13 +02:00
<h4 align="center">BANNER</h4>
2020-10-03 06:36:15 +02:00
<p align="center">
2021-06-30 05:38:13 +02:00
<img src="https://user-images.githubusercontent.com/9413601/123897812-ae729a00-d996-11eb-96b8-b76ba926f555.gif" alt="demo-screenshot" width="100%"/>
2020-10-03 06:36:15 +02:00
</p>
2021-06-30 05:38:13 +02:00
## Features
2020-09-01 12:24:26 +02:00
2021-06-30 05:38:13 +02:00
- Support beautiful **Night Mode**.
2020-12-31 03:38:52 +01:00
- Modern responsive web design.
2020-09-01 12:24:26 +02:00
- Full layouts `home`, `post`, `tags`, `archive` and `about`.
- Uses font awesome 5 for icons.
2021-06-30 05:38:13 +02:00
- Beautiful page banner with image and video.
2021-05-15 12:41:59 +02:00
- Beautiful Syntax Highlight using [highlight.js][highlight-js].
2020-09-01 12:24:26 +02:00
- RSS support using [Jekyll Feed][jekyll-feed] gem.
- Optimized for search engines using [Jekyll Seo Tag][jekyll-seo-tag] gem.
- Sitemap support using [Jekyll Sitemap][jekyll-sitemap] gem.
- Complex and flexible table support using [Jekyll Spaceship][jekyll-spaceship] gem.
- MathJAX and LaTeX optional support using [Jekyll Spaceship][jekyll-spaceship] gem.
- Media (Youtube, Spotify, etc.) support using [Jekyll Spaceship][jekyll-spaceship] gem.
- Diagram (PlantUML, Mermaid) support using [Jekyll Spaceship][jekyll-spaceship] gem.
- Google Translation support.
- New post tag support.
2020-09-12 05:05:06 +02:00
Also, visit the [Live Demo][yat-live-demo] site for the theme.
2020-09-01 12:24:26 +02:00
2021-06-30 05:38:13 +02:00
## Installation
2019-08-03 11:14:05 +02:00
2020-10-04 08:13:25 +02:00
There are three ways to install:
- As a [gem-based theme](https://jekyllrb.com/docs/themes/#understanding-gem-based-themes).
- As a [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) (GitHub Pages compatible).
- Forking/directly copying all of the theme files into your project.
### Gem-based Theme Method
2019-08-03 11:14:05 +02:00
Add this line to your Jekyll site's `Gemfile`:
```ruby
gem "jekyll-theme-yat"
```
And add this line to your Jekyll site's `_config.yml`:
```yaml
theme: jekyll-theme-yat
```
And then execute:
2020-10-04 08:13:25 +02:00
```bash
$ bundle
```
2019-08-03 11:14:05 +02:00
Or install it yourself as:
2020-10-04 08:13:25 +02:00
```bash
$ gem install jekyll-theme-yat
```
2019-08-03 11:14:05 +02:00
2020-10-04 08:13:25 +02:00
### Remote Theme Method with GitHub Pages
2019-08-03 11:14:05 +02:00
2020-10-04 08:13:25 +02:00
Remote themes are similar to Gem-based themes, but do not require `Gemfile` changes or whitelisting making them ideal for sites hosted with GitHub Pages.
To install:
Add this line to your Jekyll site's `Gemfile`:
```ruby
gem "github-pages", group: :jekyll_plugins
```
And add this line to your Jekyll site's `_config.yml`:
```yaml
# theme: owner/name --> Don't forget to remove/comment the gem-based theme option
remote_theme: "jeffreytse/jekyll-theme-yat"
```
And then execute:
```bash
$ bundle
```
2021-02-01 16:22:39 +01:00
### GitHub Pages without limitation
2020-10-04 08:13:25 +02:00
2021-06-30 05:38:13 +02:00
GitHub Pages runs in `safe` mode and only allows [a set of whitelisted plugins/themes](https://pages.github.com/versions/). **In other words, the third-party gems will not work normally**.
2020-08-26 03:33:59 +02:00
To use the third-party gem in GitHub Pages without limitation:
2020-10-04 08:13:25 +02:00
Here is a GitHub Action named [jekyll-deploy-action](https://github.com/jeffreytse/jekyll-deploy-action) for Jekyll site deployment conveniently. 👍
2021-06-30 05:38:13 +02:00
## Usage
2020-10-04 08:13:25 +02:00
Add or update your available layouts, includes, sass and/or assets.
2019-08-03 11:14:05 +02:00
2021-06-30 05:38:13 +02:00
## Development
2019-08-03 11:14:05 +02:00
To set up your environment to develop this theme, run `bundle install`.
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
2019-09-12 12:38:59 +02:00
When your theme is released, only the files in `_data`, `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
2019-08-03 11:14:05 +02:00
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-yat.gemspec` accordingly.
2021-06-30 05:38:13 +02:00
## Contributing
2020-07-12 15:02:28 +02:00
Issues and Pull Requests are greatly appreciated. If you've never contributed to an open source project before I'm more than happy to walk you through how to create a pull request.
2019-08-03 11:14:05 +02:00
2020-07-12 15:02:28 +02:00
You can start by [opening an issue](https://github.com/jeffreytse/jekyll-theme-yat/issues/new) describing the problem that you're looking to resolve and we'll go from there.
2021-06-30 05:38:13 +02:00
## License
2019-08-03 11:14:05 +02:00
2020-07-12 15:02:28 +02:00
This theme is licensed under the [MIT license](https://opensource.org/licenses/mit-license.php) © JeffreyTse.
2020-09-01 12:24:26 +02:00
<!-- External links -->
2021-06-30 05:38:13 +02:00
2020-09-01 12:24:26 +02:00
[jekyll]: https://jekyllrb.com/
[yat-git-repo]: https://github.com/jeffreytse/jekyll-theme-yat/
[yat-live-demo]: https://jeffreytse.github.io/jekyll-theme-yat/
[jekyll-spaceship]: https://github.com/jeffreytse/jekyll-spaceship
[jekyll-seo-tag]: https://github.com/jekyll/jekyll-seo-tag
[jekyll-sitemap]: https://github.com/jekyll/jekyll-sitemap
[jekyll-feed]: https://github.com/jekyll/jekyll-feed
2021-05-15 12:41:59 +02:00
[highlight-js]: https://github.com/highlightjs/highlight.js