2020-03-08 14:11:54 +01:00
# 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)
2019-02-03 12:30:34 +01:00
2020-03-10 10:23:23 +01:00
[![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-ff4088?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)
2022-05-03 17:38:41 +02:00
[![CircleCI ](https://circleci.com/gh/dillonzq/LoveIt/tree/master.svg?style=svg )](https://circleci.com/gh/dillonzq/LoveIt/tree/master)
2019-08-26 19:15:00 +02:00
2020-04-16 12:31:06 +02:00
English README | [简体中文说明 ](https://github.com/dillonzq/LoveIt/blob/master/README.zh-cn.md )
2019-02-03 12:30:34 +01:00
2020-04-16 12:31:06 +02:00
> **LoveIt** is a **clean**, **elegant** but **advanced** blog theme for [Hugo](https://gohugo.io/).
2019-08-25 20:25:56 +02:00
2020-05-04 19:43:08 +02:00
It is based on the original [LeaveIt Theme ](https://github.com/liuzc/LeaveIt ) and [KeepIt Theme ](https://github.com/Fastbyte01/KeepIt ).
2019-08-25 20:25:56 +02:00
2019-09-29 18:51:40 +02:00
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.
2020-03-17 14:16:04 +01:00
![Hugo Theme LoveIt ](https://github.com/dillonzq/LoveIt/raw/master/images/Apple-Devices-Preview.png )
2019-08-06 17:49:02 +02:00
2020-03-08 16:30:32 +01:00
## [Demo Site](https://hugoloveit.com/)
2019-02-03 12:30:34 +01:00
2020-03-08 16:30:32 +01:00
To see this theme in action, here is a live [demo site ](https://hugoloveit.com/ ) which is rendered with **LoveIt** theme.
2019-02-03 12:30:34 +01:00
2019-09-29 18:51:40 +02:00
## Why choose LoveIt
Compared to the original LeaveIt theme and the KeepIt theme, the LoveIt theme has the following modifications.
2020-03-08 14:02:21 +01:00
* 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**
2020-03-17 15:39:25 +01:00
* More **social links** , **share sites** and **comment system**
2020-04-15 09:46:50 +02:00
* **Search** supported by [Lunr.js ](https://lunrjs.com/ ) or [algolia ](https://www.algolia.com/ )
2020-04-18 14:54:54 +02:00
* **Copy code** to clipboard with one click
2020-04-15 09:46:50 +02:00
* Extended Markdown syntax for ** [Font Awesome ](https://fontawesome.com/ ) icons**
* Extended Markdown syntax for **ruby annotation**
* Extended Markdown syntax for **fraction**
2020-03-17 15:39:25 +01:00
* **Mathematical formula** supported by [KaTeX ](https://katex.org/ )
* **Diagram syntax** shortcode supported by [mermaid ](https://github.com/knsv/mermaid )
2020-03-08 14:02:21 +01:00
* **Interactive data visualization** shortcode supported by [ECharts ](https://echarts.apache.org/ )
2020-03-21 09:59:23 +01:00
* **Mapbox** shortcode supported by [Mapbox GL JS ](https://docs.mapbox.com/mapbox-gl-js )
2020-03-17 15:39:25 +01:00
* Embedded **music player** supported by [APlayer ](https://github.com/MoePlayer/APlayer ) and [MetingJS ](https://github.com/metowolf/MetingJS )
* **Bilibili** player supported
* Kinds of **admonitions** shortcode supported
* Custom style shortcodes supported
* **CDN** for all third-party libraries supported
2020-03-08 14:02:21 +01:00
* ...
2019-09-29 18:51:40 +02:00
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,
2020-03-08 14:02:21 +01:00
if you want to embed mathematical formulas, flowcharts, music or Bilibili videos in your posts,
2019-09-29 18:51:40 +02:00
the LoveIt theme may be more suitable for you.
2019-03-11 16:39:26 +01:00
2019-09-29 18:51:40 +02:00
I hope you will LoveIt ❤️!
2019-03-11 16:39:26 +01:00
2019-09-29 18:51:40 +02:00
## Features
2019-08-26 19:15:00 +02:00
2019-09-29 18:51:40 +02:00
### Performance and SEO
2019-02-03 12:30:34 +01:00
2020-03-08 14:02:21 +01:00
* 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
2020-04-22 11:50:30 +02:00
* **[Google Analytics](https://analytics.google.com/analytics)** supported
* **[Fathom Analytics](https://usefathom.com/)** supported
2020-03-17 15:39:25 +01:00
* Search engine **verification** supported (Google, Bind, Yandex and Baidu)
* **CDN** for third-party libraries supported
2020-03-08 14:02:21 +01:00
* Automatically converted images with **Lazy Load** by [lazysizes ](https://github.com/aFarkas/lazysizes )
2019-08-26 19:15:00 +02:00
2019-09-29 18:51:40 +02:00
### Appearance and Layout
2019-08-26 19:15:00 +02:00
2020-03-08 14:02:21 +01:00
* **Responsive** layout
2020-03-17 17:52:36 +01:00
* **Light/Dark** mode
2020-03-08 14:02:21 +01:00
* Globally consistent **design language**
2020-03-17 15:39:25 +01:00
* **Pagination** supported
2020-03-08 14:02:21 +01:00
* Easy-to-use and self-expanding **table of contents**
2020-03-17 15:39:25 +01:00
* **Multilanguage** supported and i18n ready
2020-03-08 14:02:21 +01:00
* Beautiful **CSS animation**
2019-08-26 19:15:00 +02:00
2019-09-29 18:51:40 +02:00
### Social and Comment Systems
2019-08-26 19:15:00 +02:00
2020-03-08 14:02:21 +01:00
* **Gravatar** supported by [Gravatar ](https://gravatar.com )
2020-03-17 15:39:25 +01:00
* Local **Avatar** supported
2020-04-24 13:04:37 +02:00
* Up to **64** social links supported
2022-05-07 20:59:19 +02:00
* Up to **24** share sites supported
2020-03-08 14:02:21 +01:00
* **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/ )
2020-04-24 20:05:43 +02:00
* **Telegram comments** system supported by [Telegram Comments ](https://comments.app/ )
2020-05-04 14:28:27 +02:00
* **Commento** comment system supported by [Commento ](https://commento.io/ )
* **Utterances** comment system supported by [Utterances ](https://utteranc.es/ )
2019-08-26 19:15:00 +02:00
2019-09-29 18:51:40 +02:00
### Extended Features
2019-08-26 19:15:00 +02:00
2020-04-15 09:46:50 +02:00
* **Search** supported by [Lunr.js ](https://lunrjs.com/ ) or [algolia ](https://www.algolia.com/ )
2020-04-26 20:27:26 +02:00
* **Twemoji** supported
2020-03-08 14:02:21 +01:00
* Automatically **highlighting** code
2020-04-18 14:54:54 +02:00
* **Copy code** to clipboard with one click
2020-03-08 14:02:21 +01:00
* **Images gallery** supported by [lightgallery.js ](https://github.com/sachinchoolur/lightgallery.js )
2020-04-15 09:46:50 +02:00
* Extended Markdown syntax for ** [Font Awesome ](https://fontawesome.com/ ) icons**
* Extended Markdown syntax for **ruby annotation**
* Extended Markdown syntax for **fraction**
2020-03-09 20:33:28 +01:00
* **Mathematical formula** supported by [KaTeX ](https://katex.org/ )
2020-03-08 14:02:21 +01:00
* **Diagrams** shortcode supported by [mermaid ](https://github.com/knsv/mermaid )
* **Interactive data visualization** shortcode supported by [ECharts ](https://echarts.apache.org/ )
2020-03-21 09:59:23 +01:00
* **Mapbox** shortcode supported by [Mapbox GL JS ](https://docs.mapbox.com/mapbox-gl-js )
2020-03-08 14:02:21 +01:00
* **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
2020-05-15 11:43:04 +02:00
* **Custom script** shortcode
2020-03-08 14:02:21 +01:00
* **Animated typing** supported by [TypeIt ](https://typeitjs.com/ )
* **Dynamic scroll** supported by [Smooth Scroll ](https://github.com/cferdinandi/smooth-scroll )
2020-05-13 15:19:39 +02:00
* **Cookie consent banner** supported by [cookieconsent ](https://github.com/osano/cookieconsent )
2019-02-03 12:30:34 +01:00
* ...
2020-04-28 20:34:28 +02:00
## [Documentation](https://hugoloveit.com/categories/documentation/)
2019-08-06 17:49:02 +02:00
2020-04-28 20:34:28 +02:00
Build Documentation Locally:
2019-02-03 12:40:34 +01:00
2020-04-28 20:34:28 +02:00
```bash
hugo server --source=exampleSite
```
2019-02-03 12:30:34 +01:00
2020-04-16 12:31:06 +02:00
## Multilingual and i18n
LoveIt supports the following languages:
* English
* Simplified Chinese
2022-05-03 17:38:41 +02:00
* Traditional Chinese
2020-04-16 12:31:06 +02:00
* French
* Polish
2020-04-26 17:00:29 +02:00
* Brazilian Portuguese
2020-04-27 20:08:31 +02:00
* Italian
2020-05-04 13:12:28 +02:00
* Spanish
2020-05-06 17:23:07 +02:00
* German
2020-05-06 17:50:10 +02:00
* Serbian
2020-05-12 15:11:20 +02:00
* Russian
* Romanian
2020-05-28 14:29:28 +02:00
* Vietnamese
2020-04-16 12:31:06 +02:00
* [Contribute with a new language ](https://github.com/dillonzq/LoveIt/pulls )
2020-04-28 20:34:28 +02:00
[Languages Compatibility ](https://hugoloveit.com/theme-documentation-basics/#language-compatibility )
## [Roadmap](https://github.com/dillonzq/LoveIt/projects/1)
2019-08-06 17:49:02 +02:00
## Questions, ideas, bugs, pull requests
2019-02-03 12:30:34 +01:00
2019-08-06 17:49:02 +02:00
All feedback is welcome! Head over to the [issue tracker ](https://github.com/dillonzq/LoveIt/issues ).
## License
2019-03-11 16:39:26 +01:00
2020-04-22 11:50:30 +02:00
LoveIt is licensed under the **MIT** license. Check the [LICENSE file ](https://github.com/dillonzq/LoveIt/blob/master/LICENSE ) for details.
2019-02-03 12:30:34 +01:00
2022-05-06 17:57:55 +02:00
## Special Thanks
2019-08-25 20:25:56 +02:00
Thanks to the authors of following resources included in the theme:
2020-04-18 14:54:54 +02:00
* [normalize.css ](https://github.com/necolas/normalize.css )
2019-08-25 20:25:56 +02:00
* [Font Awesome ](https://fontawesome.com/ )
2020-04-24 13:04:37 +02:00
* [Simple Icons ](https://github.com/simple-icons/simple-icons )
2019-08-25 20:25:56 +02:00
* [Animate.css ](https://daneden.github.io/animate.css/ )
2020-04-15 09:46:50 +02:00
* [Smooth Scroll ](https://github.com/cferdinandi/smooth-scroll )
2022-05-06 20:41:23 +02:00
* [autocomplete ](https://github.com/algolia/autocomplete )
2020-04-15 09:46:50 +02:00
* [Lunr.js ](https://lunrjs.com/ )
* [algoliasearch ](https://github.com/algolia/algoliasearch-client-javascript )
2019-08-06 17:49:02 +02:00
* [lazysizes ](https://github.com/aFarkas/lazysizes )
2020-04-30 17:21:52 +02:00
* [object-fit-images ](https://github.com/fregante/object-fit-images )
2020-04-26 20:27:26 +02:00
* [Twemoji ](https://github.com/twitter/twemoji )
2022-05-07 06:10:19 +02:00
* [emoji-data ](https://github.com/iamcal/emoji-data )
2020-03-08 14:02:21 +01:00
* [lightgallery.js ](https://github.com/sachinchoolur/lightgallery.js )
2020-04-18 14:54:54 +02:00
* [clipboard.js ](https://github.com/zenorocha/clipboard.js )
* [Sharer.js ](https://github.com/ellisonleao/sharer.js )
2019-08-25 20:25:56 +02:00
* [TypeIt ](https://typeitjs.com/ )
2020-03-09 20:33:28 +01:00
* [KaTeX ](https://katex.org/ )
2019-08-25 20:25:56 +02:00
* [mermaid ](https://github.com/knsv/mermaid )
2020-03-08 14:02:21 +01:00
* [ECharts ](https://echarts.apache.org/ )
2020-03-21 09:59:23 +01:00
* [Mapbox GL JS ](https://docs.mapbox.com/mapbox-gl-js )
2019-08-25 20:25:56 +02:00
* [APlayer ](https://github.com/MoePlayer/APlayer )
* [MetingJS ](https://github.com/metowolf/MetingJS )
* [Gitalk ](https://github.com/gitalk/gitalk )
* [Valine ](https://valine.js.org/ )
2020-05-13 15:19:39 +02:00
* [cookieconsent ](https://github.com/osano/cookieconsent )
2019-08-06 17:49:02 +02:00
## Author
2019-02-03 12:30:34 +01:00
2019-08-06 17:49:02 +02:00
[Dillon ](https://dillonzq.com )
2020-05-28 19:03:07 +02:00
## Sponsor
If you enjoy the theme, please consider buying me a coffee ☕️.
* [PayPal ](https://paypal.me/dillonzq )
* [Alipay ](https://github.com/dillonzq/LoveIt/raw/master/images/Alipay.jpg )
* [Wechat ](https://github.com/dillonzq/LoveIt/raw/master/images/Wechat.jpg )
Thanks! ❤️
2022-05-06 17:57:55 +02:00
## Stargazers over time
[![Stargazers over time ](https://starchart.cc/dillonzq/LoveIt.svg )](https://starchart.cc/dillonzq/LoveIt)