Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ThemeTony/hugo-theme-tony.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFFRaycoder <nn_201312@163.com>2020-05-06 06:56:12 +0300
committerFFRaycoder <nn_201312@163.com>2020-05-06 06:56:12 +0300
commit9eff0ffada4cc287be56022d4962682326e4e1da (patch)
treea703781d41e4dc38abfa3a303176e14fe535577f
parentf450a8445eddadbd8f328c63d9b07bd5300d65e0 (diff)
footer1.1
-rw-r--r--exampleSite/config.toml17
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/partials/footer.html17
-rw-r--r--static/css/tony.css2
4 files changed, 30 insertions, 8 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 711259f..4c83323 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,8 +1,8 @@
##########################################
# 站点配置
-baseURL = "https://themetony.github.io/hugo-theme-tony/"
-title = "Ray's Blog"
+baseURL = "http://example.com/"
+title = "HUGO-THEME-TONY"
languageCode = "zh-CN"
hasCJKLanguage = true
@@ -24,15 +24,22 @@ paginate = 10
# 作者信息
[author]
# 名字
- name = "Ray"
+ name = ""
# 邮箱
- email = "ray@raycoder.me"
+ email = ""
# 座右铭或简介
- motto = "夜晚再黑,也压不过雪的白。"
+ motto = ""
# 头像
avatar = "/images/t.jpg"
# 网站(默认值:baseURL)
website = "https://themetony.github.io/hugo-theme-tony/"
+ # GitHub
+ github = ""
+
+# 页面分类
+[taxonomies]
+ category = "categories"
+ tag = "tags"
[menu]
# 菜单栏
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 77d2dbe..1601fc1 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -31,7 +31,7 @@
</div>
</div>
</body>
+ {{ partial "footer.html" . }}
{{ partial "script.html" . }}
-
</html> \ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 0f69312..2b50582 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1 +1,18 @@
+<div>
+ <div class="goup-container footer-github">
+ <a href="{{ .Site.Author.github }}" target="_blank" style="text-decoration:none">
+ <i class="ri-github-fill footer-github-icon">
+ </i>
+ </a>
+ </div>
+ <div class="footer reveal">
+ <p>
+ Copyright©2020-2020&nbsp;·&nbsp;{{ .Site.Author.name }}&nbsp;·&nbsp;
+ <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank"
+ style="text-decoration: none;color: inherit;font-size: 14px;font-weight: 500;">
+ CC BY-NC 4.0
+ </a>
+ </p>
+ </div>
+</div>
{{ partial "custom/footer.html" . }} \ No newline at end of file
diff --git a/static/css/tony.css b/static/css/tony.css
index 6cf1bf9..1283380 100644
--- a/static/css/tony.css
+++ b/static/css/tony.css
@@ -657,7 +657,6 @@ img {
width:100%;
text-align:center;
margin-bottom:80px;
- margin-top:-40px
}
.footer p {
font-size:15px;
@@ -3201,4 +3200,3 @@ input:focus {
margin: 0 auto;
background: #fff;
}
-