feat(content): support complete local resource references (#388)

This commit is contained in:
Dillon
2020-05-28 17:05:37 +08:00
committed by GitHub
parent 0c1f7d0ef8
commit aa48df5edd
93 changed files with 872 additions and 714 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

View File

@@ -7,11 +7,12 @@ draft: false
author: "Dillon"
authorLink: "https://dillonzq.com"
description: "Discover what the Hugo - LoveIt theme is all about and the core-concepts behind it."
images: ["/images/theme-documentation-basics/featured-image.jpg"]
resources:
- name: "featured-image"
src: "featured-image.jpg"
tags: ["installation", "configuration"]
categories: ["documentation"]
featuredImage: "/images/theme-documentation-basics/featured-image.jpg"
lightgallery: true
@@ -153,7 +154,7 @@ hugo serve
Go to `http://localhost:1313`.
![Basic configuration preview](/images/theme-documentation-basics/basic-configuration-preview.png "Basic configuration preview")
![Basic configuration preview](basic-configuration-preview.png "Basic configuration preview")
{{< admonition tip >}}
When you run `hugo serve`, when the contents of the files change, the page automatically refreshes with the changes.
@@ -785,7 +786,7 @@ The default data of all supported social links is located in `themes/LoveIt/asse
which is you can refer to.
{{< /admonition >}}
![Complete configuration preview](/images/theme-documentation-basics/complete-configuration-preview.png "Complete configuration preview")
![Complete configuration preview](complete-configuration-preview.png "Complete configuration preview")
### 3.2 Favicons, Browserconfig, Manifest
@@ -833,7 +834,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s
**LoveIt** theme is fully compatible with Hugo multilingual mode, which provides in-browser language switching.
![Language Switch](/images/theme-documentation-basics/language-switch.gif "Language Switch")
![Language Switch](language-switch.gif "Language Switch")
### 4.1 Compatibility {#language-compatibility}

View File

@@ -7,11 +7,12 @@ draft: false
author: "Dillon"
authorLink: "https://dillonzq.com"
description: "Découvrez en quoi consiste le thème Hugo - LoveIt et les concepts fondamentaux qui le sous-tendent."
images: ["/images/theme-documentation-basics/featured-image.jpg"]
resources:
- name: "featured-image"
src: "featured-image.jpg"
tags: ["installation", "configuration"]
categories: ["documentation"]
featuredImage: "/images/theme-documentation-basics/featured-image.jpg"
lightgallery: true
@@ -158,7 +159,7 @@ hugo serve
Go to `http://localhost:1313`.
![Basic configuration preview](/images/theme-documentation-basics/basic-configuration-preview.png "Basic configuration preview")
![Basic configuration preview](basic-configuration-preview.png "Basic configuration preview")
{{< admonition tip >}}
When you run `hugo serve`, when the contents of the files change, the page automatically refreshes with the changes.
@@ -790,7 +791,7 @@ The default data of all supported social links is located in `themes/LoveIt/asse
which is you can refer to.
{{< /admonition >}}
![Complete configuration preview](/images/theme-documentation-basics/complete-configuration-preview.png "Complete configuration preview")
![Complete configuration preview](complete-configuration-preview.png "Complete configuration preview")
### 3.2 Favicons, Browserconfig, Manifest
@@ -838,7 +839,7 @@ In `assets/css/_custom.scss`, you can add some css style code to customize the s
**LoveIt** theme is fully compatible with Hugo multilingual mode, which provides in-browser language switching.
![Language Switch](/images/theme-documentation-basics/language-switch.gif "Language Switch")
![Language Switch](language-switch.gif "Language Switch")
### 4.1 Compatibility {#language-compatibility}

View File

@@ -7,11 +7,12 @@ draft: false
author: "Dillon"
authorLink: "https://dillonzq.com"
description: "探索 Hugo - LoveIt 主题的全部内容和背后的核心概念."
images: ["/images/theme-documentation-basics/featured-image.jpg"]
resources:
- name: "featured-image"
src: "featured-image.jpg"
tags: ["installation", "configuration"]
categories: ["documentation"]
featuredImage: "/images/theme-documentation-basics/featured-image.jpg"
lightgallery: true
@@ -156,7 +157,7 @@ hugo serve
去查看 `http://localhost:1313`.
![基本配置下的预览](/images/theme-documentation-basics/basic-configuration-preview.zh-cn.png "基本配置下的预览")
![基本配置下的预览](basic-configuration-preview.zh-cn.png "基本配置下的预览")
{{< admonition tip >}}
当你运行 `hugo serve` 时, 当文件内容更改时, 页面会随着更改自动刷新.
@@ -789,7 +790,7 @@ hugo
你可以参考它来配置你的社交链接.
{{< /admonition >}}
![完整配置下的预览](/images/theme-documentation-basics/complete-configuration-preview.zh-cn.png "完整配置下的预览")
![完整配置下的预览](complete-configuration-preview.zh-cn.png "完整配置下的预览")
### 3.2 网站图标, 浏览器配置, 网站清单
@@ -837,7 +838,7 @@ $code-font-family: Fira Mono, Source Code Pro, Menlo, Consolas, Monaco, monospac
**LoveIt** 主题完全兼容 Hugo 的多语言模式, 并且支持在网页上切换语言.
![语言切换](/images/theme-documentation-basics/language-switch.gif "语言切换")
![语言切换](language-switch.gif "语言切换")
### 4.1 兼容性 {#language-compatibility}

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB