diff options
author | FFRaycoder <nn_201312@163.com> | 2020-05-07 05:13:13 +0300 |
---|---|---|
committer | FFRaycoder <nn_201312@163.com> | 2020-05-07 05:13:13 +0300 |
commit | a1656abe65e0fb545c5f88a763012b5a6233f338 (patch) | |
tree | d50c9f703d369f8b618108901300fa20ab19df52 | |
parent | 599dce932d5b4599f82722a8ab5df4f3ed7a88bb (diff) |
update1.2
-rw-r--r-- | README.md | 35 | ||||
-rw-r--r-- | layouts/partials/components/home/article-list.html | 6 | ||||
-rw-r--r-- | layouts/partials/components/home/eachpost.html | 4 | ||||
-rw-r--r-- | static/css/tony.css | 2 | ||||
-rw-r--r-- | static/images/hr.gif | bin | 0 -> 430 bytes |
5 files changed, 39 insertions, 8 deletions
@@ -11,7 +11,7 @@ ## 预览
-![](https://cdn.jsdelivr.net/gh/FFRaycoder/cdn/imgs/20200505195413.png)
+![](https://cdn.jsdelivr.net/gh/FFRaycoder/cdn/imgs/20200507094721.png)
## 关联项目
@@ -22,6 +22,18 @@ https://github.com/ThemeTony/tony_wordpress 前端主要由 [HelipengTony](https://github.com/HelipengTony) 制作
[FFRaycoder](https://github.com/FFRaycoder)移植
+## 特性
+
+- Medium Zoom
+- 左下个人GitHub链接
+- 外链引导
+- Thumbnail
+- Valine
+
+## 文档
+
+<https://htony.js.org/docs-of-hugo-theme-tony/>
+
## Demo
<https://htony.js.org/>
@@ -64,4 +76,23 @@ $ git clone https://github.com/ThemeTony/hugo-theme-tony.git themes/tony ### 自定义
-查看<https://github.com/ThemeTony/hugo-theme-tony/tree/master/layouts/partials/custom>
\ No newline at end of file +查看<https://github.com/ThemeTony/hugo-theme-tony/tree/master/layouts/partials/custom>
+
+## 支持的`Front Matter`:
+
+| 项 | 作用 | 示例 |
+| :----------------------------------------------------------: | :------------------------------------: | :----------------------------------------------------------: |
+| title | 文章标题 | title: "Hugo Theme Tony主题文档" |
+| date | 文章发布日期 | date: 2020-05-07T09:51:27+08:00 |
+| draft | 是否草稿 | draft: false |
+| keywords | 文章关键词,用于HTML头部 | keywords: ["移植主题"] |
+| categories | 分类(未完成) | categories: ["博客"] |
+| tags | 标签(未完成) | tags: ["博客"] |
+| noclick | 不允许点击(类似碎碎念),仅在主页展示 | notclick: false |
+| categoryLink | 分类按钮点击时的链接 | categoryLink: "/" |
+| toc | 是否开启目录 | toc: true |
+| buy: false<br/>buyLink: ""<br/>buyName: ""<br/>buyInfo: ""<br/>buyImage: ""<br/>buyButtonText: "" | 购物链接 | buyLink: "https://htony.js.org"<br/>buyName: "hugo-theme-tony"<br/>buyInfo: "WP-Theme-Tony的hugo移植版"<br/>buyImage: "/images/t.jpg"<br/>buyButtonText: "官网" |
+| thumbnail | 缩略图 | thumbnail: "https://cdn.jsdelivr.net/gh/FFRaycoder/cdn/imgs/20200507094721.png" |
+| weight | 文章权重 | weight: 2 |
+
+以上的分类与标签页尚未完成,求大佬帮助:smirk:
\ No newline at end of file diff --git a/layouts/partials/components/home/article-list.html b/layouts/partials/components/home/article-list.html index 97cee8d..cab4705 100644 --- a/layouts/partials/components/home/article-list.html +++ b/layouts/partials/components/home/article-list.html @@ -4,9 +4,9 @@ <li class="article-list-item reveal index-post-list">
{{ if (.Params.thumbnail) }}
<div class="article-list-img-else">
- <div class="article-list-img" style="background-image: url("{{ .Params.thumbnail }}");">
- <div class="article-list-img-right">
- {{ partial "components/home/eachpost.html" . }}
+ <div class="article-list-img" style="background-image: url("{{ .Params.thumbnail }}");"></div>
+ <div class="article-list-img-right">
+ {{ partial "components/home/eachpost.html" . }}
</div>
</div>
{{ else }}
diff --git a/layouts/partials/components/home/eachpost.html b/layouts/partials/components/home/eachpost.html index a4d0445..1a1b737 100644 --- a/layouts/partials/components/home/eachpost.html +++ b/layouts/partials/components/home/eachpost.html @@ -1,5 +1,5 @@ {{ if .Params.Categories }}
- {{ if not .Params.buyLink }}
+ {{ if not .Params.buy }}
{{ if .Params.categoryLink }}
<div>
<a href="{{ .Params.categoryLink }}" class="img-cate list-normal-tag" style="color: rgba(255, 152, 0, 0.83) !important;">
@@ -45,7 +45,7 @@ {{ end }}
{{ end }}
<div>
- {{ if not (.Params.notclick) }}
+ {{ if not (.Params.noclick) }}
<a href="{{ .Permalink | relURL }}" class="" style="text-decoration: none;">
<h5 style="margin: 15px 0px 0px; padding: 0px;">{{.Title}}</h5>
</a>
diff --git a/static/css/tony.css b/static/css/tony.css index c29b344..7c6610c 100644 --- a/static/css/tony.css +++ b/static/css/tony.css @@ -636,7 +636,7 @@ blockquote p { .article-content hr {
max-width:100%;
height:50px!important;
- background:url(https://static.ouorz.com/hr.gif) 100% no-repeat;
+ background:url(/images/hr.gif) 100% no-repeat;
border:none!important;
margin-top:10px!important;
margin-bottom:10px!important
diff --git a/static/images/hr.gif b/static/images/hr.gif Binary files differnew file mode 100644 index 0000000..5913ac7 --- /dev/null +++ b/static/images/hr.gif |