README.md 6.4 KB
Newer Older
1
# LoveIt Theme | Hugo [![Netlify Status](https://api.netlify.com/api/v1/badges/e60303f2-862c-4342-bf59-7c9adb10812e/deploy-status)](https://app.netlify.com/sites/hugo-loveit/deploys)
G
Giuseppe Pignataro 已提交
2

3
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/releases) [![Hugo](https://img.shields.io/badge/Hugo-%5E0.62.0-blue?style=flat-square&logo=hugo)](https://gohugo.io/) [![License](https://img.shields.io/github/license/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) [![CircleCI](https://img.shields.io/circleci/build/github/dillonzq/LoveIt/develop?label=CI&style=flat-square&logo=circleci)](https://app.circleci.com/pipelines/github/dillonzq/LoveIt)
4

5
English README | [中文说明](README.zh-cn.md)
G
Giuseppe Pignataro 已提交
6

7 8 9 10
**LoveIt** is a **clean**, **elegant** but **advanced** blog theme for [Hugo](https://gohugo.io/).

It is based on the original [LeaveIt Theme](https://github.com/liuzc/LeaveIt/) and [KeepIt Theme](https://github.com/liuzc/LeaveIt/).

11 12 13
Since the three themes have a similar look, if you have questions about their differences,
read [Why choose LoveIt](#why-choose-loveit) so that you can choose the one that works best for you.

14
![Hugo Theme LoveIt](images/Apple-Devices-Preview.png)
D
Dillon ZENG 已提交
15

D
Dillon 已提交
16
## [Demo Site](https://hugoloveit.com/)
G
Giuseppe Pignataro 已提交
17

D
Dillon 已提交
18
To see this theme in action, here is a live [demo site](https://hugoloveit.com/) which is rendered with **LoveIt** theme.
G
Giuseppe Pignataro 已提交
19

20 21 22 23
## Why choose LoveIt

Compared to the original LeaveIt theme and the KeepIt theme, the LoveIt theme has the following modifications.

24 25 26 27 28 29 30 31 32
* Custom **Header**
* Custom **CSS Style**
* A new **home page**, compatible with the latest version of Hugo
* A lot of **style detail adjustments,** including color, font size, margins, code preview style
* More readable **dark mode**
* Some beautiful **CSS animations**
* Easy-to-use and self-expanding **table of contents**
* Extended markdown syntax for **[Font Awesome](https://fontawesome.com/) icons**
* Extended markdown syntax for **ruby annotation**
33
* **Mathematical formula** support by [KaTeX](https://katex.org/)
34 35 36 37 38 39 40 41
* **Diagram syntax** shortcode support by [mermaid](https://github.com/knsv/mermaid)
* **Interactive data visualization** shortcode supported by [ECharts](https://echarts.apache.org/)
* Embedded **music player** support by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS)
* **Bilibili** player support
* Kinds of **admonitions** shortcode support
* Custom style shortcodes support
* **CDN** for all third-party libraries support
* ...
42 43 44 45

In short,
if you prefer the design language and freedom of the LoveIt theme,
if you want to use the extended Font Awesome icons conveniently,
46
if you want to embed mathematical formulas, flowcharts, music or Bilibili videos in your posts,
47
the LoveIt theme may be more suitable for you.
G
Giuseppe Pignataro 已提交
48

49
I hope you will LoveIt ❤️!
G
Giuseppe Pignataro 已提交
50

51
## Features
52

53
### Performance and SEO
G
Giuseppe Pignataro 已提交
54

55 56 57 58 59 60
* Optimized for **performance**: 99/100 on mobile and 100/100 on desktop in [Google PageSpeed Insights](https://developers.google.com/speed/pagespeed/insights)
* Optimized SEO performance with a correct **SEO SCHEMA** based on JSON-LD
* [**Google Analytics**](https://analytics.google.com/analytics) support
* Search engine **verification** support (Google, Bind, Yandex and Baidu)
* **CDN** for third-party libraries support
* Automatically converted images with **Lazy Load** by [lazysizes](https://github.com/aFarkas/lazysizes)
61

62
### Appearance and Layout
63

64 65 66 67 68 69 70
* **Responsive** layout
* **Dark/Light** mode
* Globally consistent **design language**
* **Pagination** support
* Easy-to-use and self-expanding **table of contents**
* **Multilanguage** support and i18n ready
* Beautiful **CSS animation**
71

72
### Social and Comment Systems
73

74 75 76 77 78 79 80 81
* **Gravatar** supported by [Gravatar](https://gravatar.com)
* Local **Avatar** support
* Up to **59** social sites supported
* Up to **28** share sites support
* **Disqus** comment system supported by [Disqus](https://disqus.com)
* **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk)
* **Valine** comment system supported by [Valine](https://valine.js.org/)
* **Facebook comments** system supported by [Facebook](https://developers.facebook.com/docs/plugins/comments/)
82

83
### Extended Features
84

85 86 87 88
* Automatically **highlighting** code
* **Images gallery** supported by [lightgallery.js](https://github.com/sachinchoolur/lightgallery.js)
* Extended markdown syntax for **[Font Awesome](https://fontawesome.com/) icons**
* Extended markdown syntax for **ruby annotation**
89
* **Mathematical formula** supported by [KaTeX](https://katex.org/)
90 91 92 93 94 95 96 97
* **Diagrams** shortcode supported by [mermaid](https://github.com/knsv/mermaid)
* **Interactive data visualization** shortcode supported by [ECharts](https://echarts.apache.org/)
* **Music player** shortcode supported by [APlayer](https://github.com/MoePlayer/APlayer) and [MetingJS](https://github.com/metowolf/MetingJS)
* **Bilibili player** shortcode
* Kinds of **admonitions** shortcode
* **Custom style** shortcode
* **Animated typing** supported by [TypeIt](https://typeitjs.com/)
* **Dynamic scroll** supported by [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll)
G
Giuseppe Pignataro 已提交
98 99
* ...

100
## Documentation
D
Dillon ZENG 已提交
101

D
Dillon 已提交
102
* [Documentation Page](https://hugoloveit.com/categories/documentation/)
103
* Build Documentation Locally:
G
Giuseppe Pignataro 已提交
104

105 106 107
    ```bash
    hugo server --source=exampleSite
    ```
G
Giuseppe Pignataro 已提交
108

D
Dillon ZENG 已提交
109
## Questions, ideas, bugs, pull requests
G
Giuseppe Pignataro 已提交
110

D
Dillon ZENG 已提交
111 112 113
All feedback is welcome! Head over to the [issue tracker](https://github.com/dillonzq/LoveIt/issues).

## License
G
Giuseppe Pignataro 已提交
114

115
LoveIt is licensed under the MIT license. Check the [LICENSE file](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) for details.
G
Giuseppe Pignataro 已提交
116

117 118 119
Thanks to the authors of following resources included in the theme:

* [Font Awesome](https://fontawesome.com/)
120
* [Fork Awesome](https://forkaweso.me/Fork-Awesome/)
121
* [Animate.css](https://daneden.github.io/animate.css/)
D
Dillon ZENG 已提交
122
* [lazysizes](https://github.com/aFarkas/lazysizes)
123
* [lightgallery.js](https://github.com/sachinchoolur/lightgallery.js)
124 125
* [Smooth Scroll](https://github.com/cferdinandi/smooth-scroll)
* [TypeIt](https://typeitjs.com/)
126
* [KaTeX](https://katex.org/)
127
* [mermaid](https://github.com/knsv/mermaid)
128
* [ECharts](https://echarts.apache.org/)
129 130 131 132
* [APlayer](https://github.com/MoePlayer/APlayer)
* [MetingJS](https://github.com/metowolf/MetingJS)
* [Gitalk](https://github.com/gitalk/gitalk)
* [Valine](https://valine.js.org/)
D
Dillon ZENG 已提交
133 134

## Author
G
Giuseppe Pignataro 已提交
135

D
Dillon ZENG 已提交
136
[Dillon](https://dillonzq.com)