Skip to content

feeshy/less-style-please

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

286 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

less style, please!


中文 | English | Wiki

纯文本风格Jekyll博客主题,基于rigggraz的no_style_please,具有基于分类的树形结构,可系统地组织关于不同主题的文章,支持手动索引外部平台的内容,可将你的全部创作统一整合为一个网站。

  • 继承
    • 极简且克制的设计风格,适合主要专注于文本内容的网站
    • 动态明暗主题
  • 改进
    • 配色方案改为低饱和度、低对比度的风格
    • 表格自适应与隔行变色
    • 综合发布时间与修改时间的智能博文排序
    • PWA支持
    • 自托管的中文webfont(仅限完整版)

使用方法

flowchart LR
A[创建仓库] --> A1[下载模板ZIP包] --> A2[解压到本地] --> C
B[使用本仓库作为模板]--> B1[删除远程分支] --> B2[拉取仓库到本地] --> C
C[按需修改] --> C1[选择部署方式] --> C2[推送修改到仓库]
Loading

1. 创建仓库并获取模板

  • 方法一
    • 登录 GitHub,用本仓库作为模板创建一个名为 你的用户名.github.io的仓库,勾选 Include all branches 并创建
    • 访问 https://github.com/你的用户名/你的用户名.github.io/branches,将 gh-pages 设为默认分支,删除 mainlite 分支。
    • 使用 git 工具将仓库拉取到本地
  • 方法二

2. 设置 remote theme 分支

  • 编辑 _config.yml 文件,修改 titledescriptionauthor 等基本信息。设置 remote_theme 启用对应分支:
    • 完整版remote_theme: feeshy/less-style-please
      • 体积约 15 MB,内置了霞鹜文楷和思源宋体的 webfont
      • 适合对中文字重有较高要求的站点(主要影响宋体类帖子的标题层级、加粗等格式)
    • 精简版remote_theme: feeshy/less-style-please@lite
      • 体积约 2.6 MB,相比完整版去除了中文 webfont
      • 以牺牲中文显示效果为代价,大幅度降低流量消耗、提升载入速度。
  • generalliterature 目录重命名为符合你需求的文章分类(也可自行创建更多分类),在每个分类的 _posts 目录中添加或修改文章
  • 编辑 _data/menu.yml,设置站点首页的树形层级
  • 详细使用方法请参阅wiki https://github.com/feeshy/less-style-please/wiki/

3. 部署到 GitHub Pages

网页访问你的仓库,进入 Settings → Pages → Build and deployment,选择通过 GitHub Actions 部署

完成以上配置后,推送代码到对应分支,GitHub Pages 会自动构建并发布你的站点。


中文 | English | Wiki

A pure text Jekyll blog theme forked from rigggraz's no_style_please, with a category-based tree structure for systematically organizing articles on diverse topics, and the ability to manually index external content to consolidate your entire content ecosystem into one single website.

  • What Are Kept
    • Minimalist and reserved design style, ideal for pure text websites
    • Adaptive light and dark theme
  • What Are Changed
    • Low-saturated color palette for both light and dark themes
    • Rowing color grades for tables
    • Intelligent Post Sorting Based on Publication and Modification Dates
    • PWA Ready
    • Self hosting web fonts for Simplified Chinese

Usage

flowchart TD
A[Create a repo] --> A1[Download the template] --> A2[Extract locally] --> C
B[Use this repo as template]--> B1[Delete remote branches] --> B2[Pull repository locally] --> C
C[Modify on your need] --> C1[Select deployment method] --> C2[Push changes to github]

Loading

1. Create a Repository and Get the Template

  • Method 1

    • Log in to GitHub, use this template to create a repository named as your-username.github.io, check Include all branches, and click Create.
    • Visit https://github.com/your-username/your-username.github.io/branches, set gh-pages as the default branch, and delete the main and lite branches.
    • Use git tools to pull the repository to your local machine.
  • Method 2

2. Set Up the Remote Theme Branch

  • Edit the _config.yml file to modify basic information such as title, description, and author. Set remote_theme to enable the corresponding branch:
    • Full Version: remote_theme: feeshy/less-style-please
      • Approx. 15 MB, with built-in Chinese webfonts for 霞鹜文楷 and 思源宋体.
      • Suitable for sites with higher requirements for Chinese font weights (mainly affects heading levels, bolding, and other formatting in Serif-styled posts).
    • Lite Version: remote_theme: feeshy/less-style-please@lite 👈 recommend for non-Chinese writers
      • Approx. 2.6 MB, removing the Chinese webfonts compared to the full version.
      • Significantly reduces traffic consumption and improves loading speed at the expense of Chinese display quality.
  • Rename the general and literature directories to post categories that meet your needs (you can also create more categories yourself), and add or modify posts in the _posts directory of each category.
  • Edit _data/menu.yml to set the tree hierarchy for the site's homepage.
  • For detailed instructions, please refer to the wiki https://github.com/feeshy/less-style-please/wiki/

3. Deploy to GitHub Pages

Visit your repository on the web, go to Settings → Pages → Build and deployment, and select to deploy via GitHub Actions.

After completing the above configurations, push the code to the corresponding branch, and GitHub Pages will automatically build and deploy your static site.


中文 | English | Wiki

About

极简纯文本Jekyll主题,采用更适合多领域写作者的树形结构,支持站外文章的索引与跳转

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • SCSS 92.8%
  • HTML 6.5%
  • JavaScript 0.7%