Skip to content

Commit 731caf8

Browse files
committed
Updated to new version
1 parent fad1bf3 commit 731caf8

File tree

2,677 files changed

+52547
-8342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,677 files changed

+52547
-8342
lines changed

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Giuseppe Pignataro
3+
Copyright (c) 2018 LIUZHICHAO.COM
4+
Copyright (c) 2019 DILLONZQ.COM
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy of
67
this software and associated documentation files (the "Software"), to deal in

LICENSE.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 177 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,142 +1,203 @@
1-
KeepIt Hugo Theme
2-
========================
3-
4-
KeepIt is a clean, elegant, simple but not simpler blog theme for Hugo based on the original [LeaveIt Theme](https://github.com/liuzc/LeaveIt) developed by [LiuZhichao](https://github.com/liuzc).
5-
6-
![hugo-theme-KeepIt](https://github.com/Fastbyte01/KeepIt/blob/master/images/screenshot.png)
7-
8-
# Demo
9-
To see this theme in action, Here is a live [demo site](https://suspicious-archimedes-ab369d.netlify.com) which is rendered with this theme.
10-
11-
People that are using **KeepIt**:
12-
13-
* [PapEr](https://page.codespaper.com)
14-
* [SilkeHenderickx](http://www.silkehenderickx.be)
15-
* [jmickey](https://mickey.dev/)
16-
* [ssaraf](https://ssaraf.com/)
17-
18-
# Features
19-
20-
* Optimized for performance: 99/100 on mobile and 100/100 on desktop in Google PageSpeed Insights
21-
* Optimized SEO performance with a correct SEO SCHEMA based on JSON-LD
22-
* A More coerent style beetwen page and sections
23-
* Multilanguage support
24-
* Pagination support
25-
* Google Analytics support
26-
* Disqus Comment System
27-
* Gitalk Comment System
28-
* Valine Comment System
29-
* Gitment Comment System
30-
* Utterances Comment System
31-
* Gravatar Support
32-
* Local Avatar Support
33-
* Share post support
34-
* Search engine verification support (Google, Bind, Yandex and Baidu)
35-
* Added configuration file for use on [Netlify](https://www.netlify.com)
36-
* Dark/Light mode
37-
* Up to 54 social sites supported out-of-the-box [see the list here](https://github.com/Fastbyte01/KeepIt/wiki/List-of-social-platforms-supported-out-of-box)
38-
* Translation ready
39-
* Wrap Image with Figure Tag without Shortcode. Thanks [Junian.Net](https://www.junian.net/hugo-image-figure-wrap/)
40-
* Load images with Lazy Load By [lazysizes](https://github.com/aFarkas/lazysizes)
41-
* Automatically highlighting code By [Google code-prettify](https://github.com/google/code-prettify), Customizable styles via CSS. See the [themes gallery](https://rawgit.com/google/code-prettify/master/styles/index.html).
42-
* Automagical image gallery with [lightGallery](https://github.com/sachinchoolur/lightGallery)
1+
# KeepIt Theme | Hugo [![Netlify Status](https://api.netlify.com/api/v1/badges/e60303f2-862c-4342-bf59-7c9adb10812e/deploy-status)](https://app.netlify.com/sites/hugo-keepit/deploys)
2+
3+
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/dillonzq/KeepIt?style=flat-square)](https://github.com/Fastbyte01/KeepIt/releases)
4+
[![Hugo](https://img.shields.io/badge/Hugo-%5E0.62.0-ff4088?style=flat-square&logo=hugo)](https://gohugo.io/)
5+
[![License](https://img.shields.io/github/license/dillonzq/KeepIt?style=flat-square)](https://github.com/Fastbyte01/KeepIt/blob/master/LICENSE)
6+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=dillonzq_KeepIt&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=dillonzq_KeepIt)
7+
[![CircleCI](https://circleci.com/gh/dillonzq/KeepIt/tree/master.svg?style=svg)](https://circleci.com/gh/dillonzq/KeepIt/tree/master)
8+
9+
English README | [简体中文说明](https://github.com/Fastbyte01/KeepIt/blob/master/README.zh-cn.md)
10+
11+
> **KeepIt** is a **clean**, **elegant** but **advanced** blog theme for [Hugo](https://gohugo.io/).
12+
13+
It is based on the original [LeaveIt Theme](https://github.com/liuzc/LeaveIt) and [KeepIt Theme](https://github.com/Fastbyte01/KeepIt).
14+
15+
Since the three themes have a similar look, if you have questions about their differences,
16+
read [Why choose KeepIt](#why-choose-keepit) so that you can choose the one that works best for you.
17+
18+
![Hugo Theme KeepIt](https://github.com/Fastbyte01/KeepIt/raw/master/images/Apple-Devices-Preview.png)
19+
20+
## [Demo Site](https://suspicious-archimedes-ab369d.netlify.app/)
21+
22+
To see this theme in action, here is a live [demo site](https://suspicious-archimedes-ab369d.netlify.app/) which is rendered with **KeepIt** theme.
23+
24+
## Why choose KeepIt
25+
26+
Compared to the original LeaveIt theme and the KeepIt theme, the KeepIt theme has the following modifications.
27+
28+
* Custom **Header**
29+
* Custom **CSS Style**
30+
* A new **home page**, compatible with the latest version of Hugo
31+
* A lot of **style detail adjustments,** including color, font size, margins, code preview style
32+
* More readable **dark mode**
33+
* Some beautiful **CSS animations**
34+
* Easy-to-use and self-expanding **table of contents**
35+
* More **social links**, **share sites** and **comment system**
36+
* **Search** supported by [Lunr.js](https://lunrjs.com/) or [algolia](https://www.algolia.com/)
37+
* **Copy code** to clipboard with one click
38+
* Extended Markdown syntax for **[Font Awesome](https://fontawesome.com/) icons**
39+
* Extended Markdown syntax for **ruby annotation**
40+
* Extended Markdown syntax for **fraction**
41+
* **Mathematical formula** supported by [KaTeX](https://katex.org/)
42+
* **Diagram syntax** shortcode supported by [mermaid](https://github.com/mermaid-js/mermaid)
43+
* **Interactive data visualization** shortcode supported by [ECharts](https://echarts.apache.org/)
44+
* **Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
45+
* Embedded **music player** supported by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS)
46+
* **Bilibili** player supported
47+
* Kinds of **admonitions** shortcode supported
48+
* Custom style shortcodes supported
49+
* **CDN** for all third-party libraries supported
4350
* ...
4451

45-
# Getting Started
46-
Clone this repository to your hugo theme directory.
52+
In short,
53+
if you prefer the design language and freedom of the KeepIt theme,
54+
if you want to use the extended Font Awesome icons conveniently,
55+
if you want to embed mathematical formulas, flowcharts, music or Bilibili videos in your posts,
56+
the KeepIt theme may be more suitable for you.
57+
58+
I hope you will KeepIt ❤️!
59+
60+
## Features
61+
62+
### Performance and SEO
63+
64+
* Optimized for **performance**: 99/100 on mobile and 100/100 on desktop in [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights)
65+
* Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD
66+
* **[Google Analytics](https://analytics.google.com/analytics)** supported
67+
* **[Fathom Analytics](https://usefathom.com/)** supported
68+
* Search engine **verification** supported (Google, Bind, Yandex and Baidu)
69+
* **CDN** for third-party libraries supported
70+
* Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes)
71+
72+
### Appearance and Layout
73+
74+
* **Desktop/Mobile Responsive** layout
75+
* **Light/Dark** mode
76+
* Globally consistent **design language**
77+
* **Pagination** supported
78+
* Easy-to-use and self-expanding **table of contents**
79+
* **Multilanguage** supported and i18n ready
80+
* Beautiful **CSS animation**
81+
82+
### Social and Comment Systems
83+
84+
* **Gravatar** supported by [Gravatar](https://gravatar.com)
85+
* Local **Avatar** supported
86+
* Up to **64** social links supported
87+
* Up to **24** share sites supported
88+
* **Disqus** comment system supported by [Disqus](https://disqus.com)
89+
* **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk)
90+
* **Valine** comment system supported by [Valine](https://valine.js.org/)
91+
* **Facebook comments** system supported by [Facebook](https://developers.facebook.com/docs/plugins/comments/)
92+
* **Telegram comments** system supported by [Telegram Comments](https://comments.app/)
93+
* **Commento** comment system supported by [Commento](https://commento.io/)
94+
* **Utterances** comment system supported by [Utterances](https://utteranc.es/)
95+
96+
### Extended Features
97+
98+
* **Search** supported by [Lunr.js](https://lunrjs.com/) or [algolia](https://www.algolia.com/)
99+
* **Twemoji** supported
100+
* Automatically **highlighting** code
101+
* **Copy code** to clipboard with one click
102+
* **Images gallery** supported by [lightGallery](https://github.com/sachinchoolur/lightgallery)
103+
* Extended Markdown syntax for **[Font Awesome](https://fontawesome.com/) icons**
104+
* Extended Markdown syntax for **ruby annotation**
105+
* Extended Markdown syntax for **fraction**
106+
* **Mathematical formula** supported by [KaTeX](https://katex.org/)
107+
* **Diagrams** shortcode supported by [mermaid](https://github.com/mermaid-js/mermaid)
108+
* **Interactive data visualization** shortcode supported by [ECharts](https://echarts.apache.org/)
109+
* **Mapbox** shortcode supported by [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
110+
* **Music player** shortcode supported by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS)
111+
* **Bilibili player** shortcode
112+
* Kinds of **admonitions** shortcode
113+
* **Custom style** shortcode
114+
* **Custom script** shortcode
115+
* **Animated typing** supported by [TypeIt](https://typeitjs.com/)
116+
* **Cookie consent banner** supported by [cookieconsent](https://github.com/osano/cookieconsent)
117+
* ...
47118

48-
```bash
49-
cd themes
50-
git clone https://github.com/Fastbyte01/KeepIt.git
51-
```
119+
## [Documentation](https://suspicious-archimedes-ab369d.netlify.app/categories/documentation/)
120+
121+
Build Documentation Locally:
52122

53-
Next, open config.toml in the base of the Hugo site and ensure the theme option is set to KeepIt:
54123
```bash
55-
theme = "KeepIt"
124+
hugo server --source=exampleSite
56125
```
57-
For more information read the [official setup guide](https://gohugo.io/documentation/) of Hugo.
58-
59-
# Site Configuration
60-
Take a look in the `exampleSite` folder.
61-
62-
This directory contains an example config file and the content for the demo. It serves as an example setup for your documentation.
63-
64-
Copy the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary.
65-
66-
# Content Suggestions
67-
68-
A few suggestions to help you get a good looking site quickly:
69126

70-
* Keep blog posts in the content/posts directory, for example: content/posts/my-first-post.md
71-
* Keep static pages in the content directory, for example: content/about.md
72-
* Keep media like images in the static directory, for example: static/images/2019/10/screenshot.png
127+
## Multilingual and i18n
73128

74-
# Customizing styles for your website
129+
KeepIt supports the following languages:
75130

76-
If you want to change some styling to fit your own website needs, you can edit them:
131+
* English
132+
* Simplified Chinese
133+
* Traditional Chinese
134+
* French
135+
* Polish
136+
* Brazilian Portuguese
137+
* Italian
138+
* Spanish
139+
* German
140+
* Serbian
141+
* Russian
142+
* Romanian
143+
* Vietnamese
144+
* [Contribute with a new language](https://github.com/Fastbyte01/KeepIt/pulls)
77145

78-
* `assets/css/_varibales/default.scss`: You can override the variables in `_variables.scss` to customize the style
79-
* `assets/css/_custom.scss` : You can put your custom css in this file
146+
[Languages Compatibility](https://suspicious-archimedes-ab369d.netlify.app/theme-documentation-basics/#language-compatibility)
80147

81-
# Favicons, Browserconfig, Manifest
148+
## [Roadmap](https://github.com/Fastbyte01/KeepIt/projects/1)
82149

83-
It is recommended to put your own favicons
150+
## Questions, ideas, bugs, pull requests
84151

85-
* apple-touch-icon.png (180x180)
86-
* favicon-32x32.png (32x32)
87-
* favicon-16x16.png (16x16)
88-
* mstile-150x150.png (150x150)
89-
* android-chrome-192x192.png (192x192)
90-
* android-chrome-512x512.png (512x512)
91-
92-
into `/static`. They’re easily created via https://realfavicongenerator.net/.
93-
94-
Customize browserconfig.xml and site.webmanifest to set theme-color and background-color for example.
152+
All feedback is welcome! Head over to the [issue tracker](https://github.com/Fastbyte01/KeepIt/issues).
95153

96-
# Tips
154+
## License
97155

98-
#### Set production environment when generating site
156+
KeepIt is licensed under the **MIT** license. Check the [LICENSE file](https://github.com/Fastbyte01/KeepIt/blob/master/LICENSE) for details.
99157

100-
Because some functions are only in production mode, So you **need to add a production** environment variables when generating your site.
101-
```bash
102-
HUGO_ENV=production hugo --gc --minify
103-
```
158+
## Special Thanks
104159

105-
#### Hugo “extended” Sass/SCSS version required
160+
Thanks to the authors of following resources included in the theme:
106161

107-
This theme write style with scss, So you must download and install the “extended” Sass/SCSS version
162+
* [normalize.css](https://github.com/necolas/normalize.css)
163+
* [Font Awesome](https://fontawesome.com/)
164+
* [Simple Icons](https://github.com/simple-icons/simple-icons)
165+
* [Animate.css](https://daneden.github.io/animate.css/)
166+
* [autocomplete](https://github.com/algolia/autocomplete)
167+
* [Lunr.js](https://lunrjs.com/)
168+
* [algoliasearch](https://github.com/algolia/algoliasearch-client-javascript)
169+
* [lazysizes](https://github.com/aFarkas/lazysizes)
170+
* [object-fit-images](https://github.com/fregante/object-fit-images)
171+
* [Twemoji](https://github.com/twitter/twemoji)
172+
* [emoji-data](https://github.com/iamcal/emoji-data)
173+
* [lightGallery](https://github.com/sachinchoolur/lightgallery)
174+
* [clipboard.js](https://github.com/zenorocha/clipboard.js)
175+
* [Sharer.js](https://github.com/ellisonleao/sharer.js)
176+
* [TypeIt](https://typeitjs.com/)
177+
* [KaTeX](https://katex.org/)
178+
* [mermaid](https://github.com/mermaid-js/mermaid)
179+
* [ECharts](https://echarts.apache.org/)
180+
* [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js)
181+
* [APlayer](https://github.com/MoePlayer/APlayer)
182+
* [MetingJS](https://github.com/metowolf/MetingJS)
183+
* [Gitalk](https://github.com/gitalk/gitalk)
184+
* [Valine](https://valine.js.org/)
185+
* [cookieconsent](https://github.com/osano/cookieconsent)
108186

109-
#### How to toggle dark-light mode
110-
* You can click the sun logo to toggle dark-light mode. In the desktop version the sun logo is to the right and in the mobile version is positioned to the left, close to the site title.
111-
* If you want to make your own theme toggle-able element, you can create an element with a class `.theme-switch`. See [here](https://github.com/Fastbyte01/KeepIt/blob/master/assets/js/main.js#L32)
187+
## Author
112188

113-
# Home Post model
114-
If you want to show posts on index instead of a personal profile, just open config.toml in the base of the Hugo site, add the following line to config.toml
115-
```toml
116-
[params]
117-
home_mode = "post" # post or other
118-
```
119-
# Add logo and cover for SEO
120-
121-
Add a logo image (127x40) and a cover image (800x600). This images are used for SEO.
122-
123-
# Questions, ideas, bugs, pull requests?
124-
All feedback is welcome! Head over to the [issue tracker](https://github.com/Fastbyte01/KeepIt/issues).
189+
[Dillon](https://dillonzq.com)
125190

126-
For more configuration info or other tips you can see the [wiki](https://github.com/Fastbyte01/KeepIt/wiki).
191+
## Sponsor
127192

128-
# License
129-
LeaveIt is licensed under the MIT license. Check the LICENSE file for details.
130-
The following resources are included in the theme:
193+
If you enjoy the theme, please consider buying me a coffee ☕️.
131194

132-
* lazysizes - https://github.com/aFarkas/lazysizes
133-
* lightGallery - https://github.com/sachinchoolur/lightGallery
134-
* code-prettify - https://github.com/google/code-prettify
195+
* [PayPal](https://paypal.me/dillonzq)
196+
* [Alipay](https://github.com/Fastbyte01/KeepIt/raw/master/images/Alipay.jpg)
197+
* [Wechat](https://github.com/Fastbyte01/KeepIt/raw/master/images/Wechat.jpg)
135198

136-
# Author
137-
[Fastbyte01](https://github.com/Fastbyte01)
199+
Thanks! ❤️
138200

139-
# See Also
201+
## Stargazers over time
140202

141-
* [Hermitt](https://github.com/Track3/hermit)
142-
* [Goa](https://github.com/shenoybr/hugo-goa)
203+
[![Stargazers over time](https://starchart.cc/dillonzq/KeepIt.svg)](https://starchart.cc/dillonzq/KeepIt)

0 commit comments

Comments
 (0)