GithubHelp home page GithubHelp logo

ip413 / typesetting-jekyll-theme Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 21.89 MB

Minimalist Jekyll theme based on poole

Home Page: https://typesetting.vercel.app

License: MIT License

Ruby 0.63% HTML 17.07% SCSS 82.30%

typesetting-jekyll-theme's Introduction

Type

Jekyll Themes Shield GitHub issues GitHub forks GitHub stars GitHub license

Type is an elegant, minimalistic Jekyll blogging theme based on poole. It focuses more on typographic style aesthetics, especially Chinese and Japanese content. As we all know, there is no perfect solution to the problem of CJK and Latin mixed typesetting at present, so it is inevitable that there will be some compromises in the design. In addition, it implements some fine-grained features and fixes some minor bugs of poole.

English

See Type in action with the demo English typesetting / Chinese typesetting.

Features

  • Responsive Design
  • RSS feed (link here)
  • Math formula support (view in example post)
  • Dark Mode (based on the system theme)
  • Archive, tags features (easy to add yourself)
  • Rich html style support (example content)
  • GitHub gist embed support and more...

Usage

1. Quickly deploy on vercel

Clone this repository:

$ git clone [email protected]:livrth/type.git blog

All site titles, and personal information are modified in the _config.yml file, you can customize these content.

All blog posts are in the _posts directory, create your own here. Be sure to pay attention to the naming format, it needs to start with the date like the files I've put here.

Then you can use git to reinitialize this directory, create a new remote repository of your own, and just git push.

The last thing you need to do is to register an account on vercel, and then deploy the repository where you store this blog.

2. Deploy on GitHub Pages

Frankly speaking, in 2022 GitHub Pages still do not support Jekyll 4.0 and newer version, which makes many new features unavailable. Rendering of mathematical formulas is a problem, MathJax renders fine in Jekyll 4.0 and later versions most of the time, but does not display properly in lower versions. If your blog contains a lot of mathematical formulas, I suggest you deploy it in vercel, because it supports Jekyll versions after 4.0.

But GitHub has recently released new feature of deploying GitHub Pages using GitHub actions, which allows us to use Jekyll 4.0+ version.

I have already written the actions template and put it in the .github directory, so you only need to go to your repository's Settings -> Pages -> Build and deployment, and set the Source option to GitHub Actions. Note that you don't need to click the configure button, because the configuration file I have already written for you can be used directly.

Local development or debugging

If you are not interested in developing the code for the blog itself, then you can ignore this part.

1. Install dependencies

Type is built on Jekyll and uses its built-in SCSS compiler to generate our CSS. Before getting started, you'll need to install the Jekyll gem:

$ gem install jekyll bundler

If you are unfamiliar with ruby, please refer to the official Jekyll installation tutorial and follow it step by step.

2. Running locally

Install all required gems:

$ bundle install

Preview the blog locally:

$ bundle exec jekyll serve --livereload

Depending on the version of Ruby and Jekyll on your system, there may be some warning messages, you can search Google to modify the version of these dependencies. Usually, however, these warnings have little effect.

Credits

License

Open sourced under the MIT license.

typesetting-jekyll-theme's People

Stargazers

lyzioswe avatar

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.