Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
chore: changed theme name in files
Browse files Browse the repository at this point in the history
fix #23
  • Loading branch information
victor-pogor committed Nov 30, 2020
1 parent cddfe7f commit ca63529
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 41 deletions.
38 changes: 19 additions & 19 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,18 @@ ignoreErrors = ["error-remote-getjson"]
pre = "<i class='fab fa-github fa-fw'></i>"
post = ""
name = ""
url = "https://github.com/dillonzq/LoveIt"
url = "https://github.com/sunt-programator/CodeIT"
title = "GitHub"
weight = 6
[languages.en.params]
# site description
description = "About LoveIt Theme"
description = "About CodeIT Theme"
# site keywords
keywords = ["Theme", "Hugo"]
# App icon config
[languages.en.params.app]
# optional site title override for the app when added to an iOS home screen or Android launcher
title = "LoveIt"
title = "CodeIT"
# whether to omit favicon resource links
noFavicon = false
# modern SVG favicon to use in place of older style .png and .ico files
Expand Down Expand Up @@ -291,18 +291,18 @@ ignoreErrors = ["error-remote-getjson"]
pre = "<i class='fab fa-github fa-fw'></i>"
post = ""
name = ""
url = "https://github.com/dillonzq/LoveIt"
url = "https://github.com/sunt-programator/CodeIT"
title = "GitHub"
weight = 6
[languages.zh-cn.params]
# 网站描述
description = "关于 LoveIt 主题"
description = "关于 CodeIT 主题"
# 网站关键词
keywords = ["Theme", "Hugo"]
# 应用图标配置
[languages.zh-cn.params.app]
# 当添加到 iOS 主屏幕或者 Android 启动器时的标题, 覆盖默认标题
title = "LoveIt"
title = "CodeIT"
# 是否隐藏网站图标资源链接
noFavicon = false
# 更现代的 SVG 网站图标, 可替代旧的 .png 和 .ico 文件
Expand Down Expand Up @@ -487,18 +487,18 @@ ignoreErrors = ["error-remote-getjson"]
pre = "<i class='fab fa-github fa-fw'></i>"
post = ""
name = ""
url = "https://github.com/dillonzq/LoveIt"
url = "https://github.com/sunt-programator/CodeIT"
title = "GitHub"
weight = 6
[languages.fr.params]
# site description
description = "À propos du thème LoveIt"
description = "À propos du thème CodeIT"
# site keywords
keywords = ["Thème", "Hugo"]
# App icon config
[languages.fr.params.app]
# optional site title override for the app when added to an iOS home screen or Android launcher
title = "LoveIt"
title = "CodeIT"
# whether to omit favicon resource links
noFavicon = false
# modern SVG favicon to use in place of older style .png and .ico files
Expand Down Expand Up @@ -624,8 +624,8 @@ ignoreErrors = ["error-remote-getjson"]
RSS = true

[params]
# LoveIt theme version
# LoveIt 主题版本
# CodeIT theme version
# CodeIT 主题版本
version = "0.2.X"
# site default theme ("light", "dark", "auto")
# 网站默认主题 ("light", "dark", "auto")
Expand Down Expand Up @@ -660,7 +660,7 @@ ignoreErrors = ["error-remote-getjson"]
logo = ""
# title name
# 标题名称
name = "LoveIt"
name = "CodeIT"
# you can add extra information before the name (HTML format is supported), such as icons
# 你可以在名称 (允许 HTML 格式) 之前添加其他信息, 例如图标
pre = "<i class='far fa-kiss-wink-heart fa-fw'></i>"
Expand Down Expand Up @@ -881,15 +881,15 @@ ignoreErrors = ["error-remote-getjson"]
recordIP = true
highlight = true
enableQQ = false
serverURLs = "https://leancloud.hugoloveit.com"
serverURLs = "https://leancloud.hugoCodeIT.com"
# emoji data file name, default is "google.yml"
# ("apple.yml", "google.yml", "facebook.yml", "twitter.yml")
# located in "themes/LoveIt/assets/data/emoji/" directory
# located in "themes/CodeIT/assets/data/emoji/" directory
# you can store your own data files in the same path under your project:
# "assets/data/emoji/"
# emoji 数据文件名称, 默认是 "google.yml"
# ("apple.yml", "google.yml", "facebook.yml", "twitter.yml")
# 位于 "themes/LoveIt/assets/data/emoji/" 目录
# 位于 "themes/CodeIT/assets/data/emoji/" 目录
# 可以在你的项目下相同路径存放你自己的数据文件:
# "assets/data/emoji/"
emoji = ""
Expand Down Expand Up @@ -1019,12 +1019,12 @@ ignoreErrors = ["error-remote-getjson"]
[params.cdn]
# CDN data file name, disabled by default
# ("jsdelivr.yml")
# located in "themes/LoveIt/assets/data/cdn/" directory
# located in "themes/CodeIT/assets/data/cdn/" directory
# you can store your own data files in the same path under your project:
# "assets/data/cdn/"
# CDN 数据文件名称, 默认不启用
# ("jsdelivr.yml")
# 位于 "themes/LoveIt/assets/data/cdn/" 目录
# 位于 "themes/CodeIT/assets/data/cdn/" 目录
# 可以在你的项目下相同路径存放你自己的数据文件:
# "assets/data/cdn/"
data = "jsdelivr.yml"
Expand All @@ -1049,8 +1049,8 @@ ignoreErrors = ["error-remote-getjson"]
guessSyntax = true
lineNos = true
lineNumbersInTable = true
# false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158)
# false 是必要的设置 (https://github.com/dillonzq/LoveIt/issues/158)
# false is a necessary configuration (https://github.com/sunt-programator/CodeIT/issues/158)
# false 是必要的设置 (https://github.com/sunt-programator/CodeIT/issues/158)
noClasses = false
# Goldmark is from Hugo 0.60 the default library used for Markdown
# Goldmark 是 Hugo 0.60 以来的默认 Markdown 解析库
Expand Down
20 changes: 10 additions & 10 deletions exampleSite/content/about/index.en.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "About LoveIt"
title: "About CodeIT"
date: 2019-08-02T11:04:49+08:00
draft: false

Expand All @@ -10,18 +10,18 @@ math:
---

{{< style "img { height: 1.25rem; }" >}}
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/dillonzq/LoveIt?style=flat-square)](https://github.com/dillonzq/LoveIt/releases)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/sunt-programator/hugo-codeit?style=flat-square)](https://github.com/sunt-programator/hugo-codeit/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)
[![GitHub stars](https://img.shields.io/github/stars/dillonzq/LoveIt?style=social)](https://github.com/dillonzq/LoveIt)
[![GitHub forks](https://img.shields.io/github/forks/dillonzq/LoveIt?style=social)](https://github.com/dillonzq/LoveIt/fork)
[![License](https://img.shields.io/github/license/sunt-programator/hugo-codeit?style=flat-square)](https://github.com/sunt-programator/hugo-codeit/blob/master/LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/sunt-programator/CodeIT?style=social)](https://github.com/sunt-programator/CodeIT)
[![GitHub forks](https://img.shields.io/github/forks/sunt-programator/CodeIT?style=social)](https://github.com/sunt-programator/CodeIT/fork)
{{< /style >}}

> [:(far fa-kiss-wink-heart fa-fw): LoveIt](https://github.com/dillonzq/LoveIt) is a **clean**, **elegant** but **advanced** blog theme for [Hugo](https://gohugo.io/) developed by [Dillon](https://dillonzq.com).
> [:(fas fa-laptop-code fa-fw): CodeIT](https://github.com/sunt-programator/CodeIT) 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/Fastbyte01/KeepIt).
> It is based on the original [LoveIt Theme](https://github.com/dillonzq/CodeIT), [LeaveIt Theme](https://github.com/liuzc/LeaveIt) and [KeepIt Theme](https://github.com/Fastbyte01/KeepIt).
![Hugo Theme LoveIt](/images/Apple-Devices-Preview.png "Hugo Theme LoveIt")
![Hugo Theme CodeIT](/images/Apple-Devices-Preview.png "Hugo Theme CodeIT")

### Features

Expand Down Expand Up @@ -85,9 +85,9 @@ math:

### License

LoveIt is licensed under the **MIT** license.
CodeIT is licensed under the **MIT** license.

Check the [LICENSE file](https://github.com/dillonzq/LoveIt/blob/master/LICENSE) for details.
Check the [LICENSE file](https://github.com/sunt-programator/CodeIT/blob/master/LICENSE) for details.

Thanks to the authors of following resources included in the theme:

Expand Down
4 changes: 2 additions & 2 deletions exampleSite/content/posts/basic-markdown-syntax/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This article offers a sample of basic Markdown syntax that can be used in Hugo c
{{< admonition >}}
This article is a shameful copy of the great [Grav original page](http://learn.getgrav.org/content/markdown).

If you want to know about the extented Markdown syntax of **LoveIt** theme, please read [extended Markdown syntax page](../theme-documentation-content#extended-markdown-syntax).
If you want to know about the extented Markdown syntax of **CodeIT** theme, please read [extended Markdown syntax page](../theme-documentation-content#extended-markdown-syntax).
{{< /admonition >}}

Let's face it: Writing content for the Web is tiresome. WYSIWYG editors help alleviate this task, but they generally result in horrible code, or worse yet, ugly web pages.
Expand Down Expand Up @@ -759,5 +759,5 @@ With a reference later in the document defining the URL location:
[id]: https://octodex.github.com/images/dojocat.jpg "The Dojocat"
{{< admonition tip >}}
**LoveIt** theme has [special shortcode for image](../theme-documentation-extended-shortcodes#image), which provides more features.
**CodeIT** theme has [special shortcode for image](../theme-documentation-extended-shortcodes#image), which provides more features.
{{< /admonition >}}
2 changes: 1 addition & 1 deletion exampleSite/content/posts/emoji-support/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lastmod: 2019-10-01T17:55:28+08:00
draft: false
author: "Dillon"
authorLink: "https://dillonzq.com"
description: "Guide to emoji usage in Hugo and LoveIt."
description: "Guide to emoji usage in Hugo and CodeIT."
resources:
- name: "featured-image"
src: "featured-image.jpg"
Expand Down
14 changes: 7 additions & 7 deletions exampleSite/content/posts/theme-documentation-basics/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ cd my_website

### 2.2 Install the Theme

The **LoveIt** theme’s repository is: [https://github.com/dillonzq/LoveIt](https://github.com/dillonzq/LoveIt).
The **LoveIt** theme’s repository is: [https://github.com/sunt-programator/CodeIT](https://github.com/sunt-programator/CodeIT).

You can download the [latest release :(far fa-file-archive fa-fw): .zip file](https://github.com/dillonzq/LoveIt/releases) of the theme and extract it in the `themes` directory.
You can download the [latest release :(far fa-file-archive fa-fw): .zip file](https://github.com/sunt-programator/CodeIT/releases) of the theme and extract it in the `themes` directory.

Alternatively, clone this repository to the `themes` directory:

```bash
git clone https://github.com/dillonzq/LoveIt.git themes/LoveIt
git clone https://github.com/sunt-programator/CodeIT.git themes/LoveIt
```

Or, create an empty git repository and make this repository a submodule of your site directory:

```bash
git init
git submodule add https://github.com/dillonzq/LoveIt.git themes/LoveIt
git submodule add https://github.com/sunt-programator/CodeIT.git themes/LoveIt
```

### 2.3 Basic Configuration {#basic-configuration}
Expand Down Expand Up @@ -122,7 +122,7 @@ theme = "LoveIt"
[markup]
# Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting)
[markup.highlight]
# false is a necessary configuration (https://github.com/dillonzq/LoveIt/issues/158)
# false is a necessary configuration (https://github.com/sunt-programator/CodeIT/issues/158)
noClasses = false
```

Expand Down Expand Up @@ -656,7 +656,7 @@ Please open the code block below to view the complete sample configuration :(far
lineNos = true
lineNumbersInTable = true
# false is a necessary configuration
# ({{< link "https://github.com/dillonzq/LoveIt/issues/158" >}})
# ({{< link "https://github.com/sunt-programator/CodeIT/issues/158" >}})
noClasses = false
# Goldmark is from Hugo 0.60 the default library used for Markdown
[markup.goldmark]
Expand Down Expand Up @@ -975,7 +975,7 @@ Translations strings are used for common default values used in the theme. Trans

To override these values, create a new file in your local i18n folder `i18n/<languageCode>.toml` and inspire yourself from `themes/LoveIt/i18n/en.toml`.

By the way, as these translations could be used by other people, please take the time to propose a translation by [:(fas fa-code-branch fa-fw): making a PR](https://github.com/dillonzq/LoveIt/pulls) to the theme!
By the way, as these translations could be used by other people, please take the time to propose a translation by [:(fas fa-code-branch fa-fw): making a PR](https://github.com/sunt-programator/CodeIT/pulls) to the theme!

## 5 Search

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{- if ne .Site.Params.footer.hugo false -}}
<div class="footer-line">
{{- $hugo := printf `<a href="https://gohugo.io/" target="_blank" rel="noopener noreferrer" title="Hugo %v">Hugo</a>` hugo.Version -}}
{{- $theme := .Scratch.Get "version" | printf `<a href="https://github.com/dillonzq/LoveIt" target="_blank" rel="noopener noreferrer" title="LoveIt %v"><i class="far fa-kiss-wink-heart fa-fw"></i> LoveIt</a>` -}}
{{- $theme := .Scratch.Get "version" | printf `<a href="https://github.com/sunt-programator/CodeIT" target="_blank" rel="noopener noreferrer" title="LoveIt %v"><i class="far fa-kiss-wink-heart fa-fw"></i> LoveIt</a>` -}}
{{- dict "Hugo" $hugo "Theme" $theme | T "poweredBySome" | safeHTML }}
</div>
{{- end -}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/version.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- $version := .Get 0 -}}
{{- $url := printf "https://github.com/dillonzq/LoveIt/releases/tag/v%v" $version -}}
{{- $url := printf "https://github.com/sunt-programator/CodeIT/releases/tag/v%v" $version -}}
{{- $type := .Get 1 | default "new" | lower -}}
{{- $label := T $type -}}
{{- $color := cond (eq $type "changed") "ff9101" "00b1ff" | cond (eq $type "deleted") "ff5252" -}}
Expand Down

0 comments on commit ca63529

Please sign in to comment.