From ca6352959462dd9ce73be2ca71cc7c9f53d14063 Mon Sep 17 00:00:00 2001 From: Victor Pogor Date: Tue, 10 Nov 2020 19:23:43 +0000 Subject: [PATCH] chore: changed theme name in files fix #23 --- exampleSite/config.toml | 38 +++++++++---------- exampleSite/content/about/index.en.md | 20 +++++----- .../posts/basic-markdown-syntax/index.en.md | 4 +- .../content/posts/emoji-support/index.en.md | 2 +- .../theme-documentation-basics/index.en.md | 14 +++---- layouts/partials/footer.html | 2 +- layouts/shortcodes/version.html | 2 +- 7 files changed, 41 insertions(+), 41 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index afd1135d..7ef785af 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -91,18 +91,18 @@ ignoreErrors = ["error-remote-getjson"] pre = "" 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 @@ -291,18 +291,18 @@ ignoreErrors = ["error-remote-getjson"] pre = "" 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 文件 @@ -487,18 +487,18 @@ ignoreErrors = ["error-remote-getjson"] pre = "" 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 @@ -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") @@ -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 = "" @@ -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 = "" @@ -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" @@ -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 解析库 diff --git a/exampleSite/content/about/index.en.md b/exampleSite/content/about/index.en.md index 6d4b15fc..65f685c7 100644 --- a/exampleSite/content/about/index.en.md +++ b/exampleSite/content/about/index.en.md @@ -1,5 +1,5 @@ --- -title: "About LoveIt" +title: "About CodeIT" date: 2019-08-02T11:04:49+08:00 draft: false @@ -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 @@ -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: diff --git a/exampleSite/content/posts/basic-markdown-syntax/index.en.md b/exampleSite/content/posts/basic-markdown-syntax/index.en.md index cdbaf8f8..82a06204 100644 --- a/exampleSite/content/posts/basic-markdown-syntax/index.en.md +++ b/exampleSite/content/posts/basic-markdown-syntax/index.en.md @@ -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. @@ -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 >}} diff --git a/exampleSite/content/posts/emoji-support/index.en.md b/exampleSite/content/posts/emoji-support/index.en.md index 869d94a7..78182d59 100644 --- a/exampleSite/content/posts/emoji-support/index.en.md +++ b/exampleSite/content/posts/emoji-support/index.en.md @@ -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" diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 64593d2e..9ce1118a 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -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} @@ -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 ``` @@ -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] @@ -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/.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 diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index c7915ec9..d8781676 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -12,7 +12,7 @@ {{- if ne .Site.Params.footer.hugo false -}} {{- end -}} diff --git a/layouts/shortcodes/version.html b/layouts/shortcodes/version.html index ff7d96a0..a359c802 100644 --- a/layouts/shortcodes/version.html +++ b/layouts/shortcodes/version.html @@ -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" -}}