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

github.com/varkai/hugo-theme-zozo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarkai <i@varkai.com>2020-06-23 16:26:04 +0300
committervarkai <i@varkai.com>2020-06-23 16:26:04 +0300
commitc0f6590183c21dfa4229e64cf4e5278619921252 (patch)
tree32bebc238934bb09aa1dbbf9ff3a62dcc9b04900
parentde94a1aada94ae76be45384ec8f485002ba25148 (diff)
更新
-rw-r--r--README-zh.md4
-rw-r--r--README.md4
-rw-r--r--exampleSite/config.toml17
-rw-r--r--layouts/404.html2
-rw-r--r--layouts/partials/header.html1
-rw-r--r--layouts/partials/post.html3
-rw-r--r--static/css/zozo.css2
-rw-r--r--static/images/logo.svg45
8 files changed, 12 insertions, 66 deletions
diff --git a/README-zh.md b/README-zh.md
index 062f6d2..5b5cf84 100644
--- a/README-zh.md
+++ b/README-zh.md
@@ -32,10 +32,6 @@ $ git clone https://github.com/varkai/hugo-theme-zozo themes/zozo
使用关于页面,首先要在你的站点目录的 [`content`](./exampleSite/content/) 目录下创建一个 [`about`](./exampleSite/content/about/) 目录,然后再创建一个 [`index.md`](./exampleSite/content/about/index.md) 文件,最后编写该文件即可。
-## Logo
-
-你需要将 [`images`](./static/images/) 目录下的 `logo.svg`、`favicon.ico` 都替换为你自己的图像。
-
## 隐藏页面
如果你不想让一个页面出现在文章列表中,只需要在 markdown 文件的 `frontmatter` 中添加 `hidden: true` 即可。
diff --git a/README.md b/README.md
index 8691ee3..685a8b9 100644
--- a/README.md
+++ b/README.md
@@ -40,10 +40,6 @@ There is an example site with config file and markdown files in `exampleSite` di
Use the about page to introduce yourself to your visitors. You can customize the content as you like in the `/content/about/index.md`.
-## Logo
-
-In order to customize the logo and favicon, you need to place all the following files in the static folder at the root of your site, which will overwrite those files in the `themes/zozo/static/images/` folder.
-
## Hide Pages
Pages can be hidden and don't appear in the post list on the homepage if you add the variable `hidden = true` to the frontmatter. This allows you to link from elsewhere, i.e. just the menu.
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 86add8c..792d320 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,7 +1,7 @@
baseURL = "http://localhost:1313/"
-languageCode = "zh-cn"
-defaultContentLanguage = "zh-cn"
-title = "无尽光芒" # site title # 网站标题
+languageCode = "en"
+defaultContentLanguage = "en"
+title = "ZOZO" # site title # 网站标题
theme = "zozo"
hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文
summaryLength = 100
@@ -21,33 +21,34 @@ pygmentscodefencesguesssyntax = true
smartypants = false
[[menu.main]] # config your menu # 配置菜单
- name = "首页"
+ name = "Home"
weight = 10
identifier = "home"
url = "/"
[[menu.main]]
- name = "归档"
+ name = "Archive"
weight = 20
identifier = "archive"
url = "/posts/"
[[menu.main]]
- name = "标签"
+ name = "Tags"
weight = 30
identifier = "tags"
url = "/tags/"
[[menu.main]]
- name = "关于"
+ name = "About"
weight = 40
identifier = "about"
url = "/about/"
[params]
subTitle = "the site subtitle" # site's subTitle # 网站二级标题
- footerSlogan = "我的精神家园" # site's footer slogan # 网站页脚标语
+ footerSlogan = "My spiritual home" # site's footer slogan # 网站页脚标语
keywords = ["Hugo", "theme","zozo"] # site's keywords # 网站关键字
description = "Hugo theme zozo example site." # site's description # 网站描述
enableMathJax = true # enable mathjax # 是否使用mathjax(数学公式)
enableSummary = true # display the article summary # 是否显示文章摘要
+ mainSections = ["posts"]
# Valine.
# You can get your appid and appkey from https://leancloud.cn
diff --git a/layouts/404.html b/layouts/404.html
index c503841..748d55b 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -8,7 +8,7 @@
<div class="page_tags">
<h1>(≥o≤)</h1>
<h2>{{ with .Site.Params.title404 }}{{ . }}{{ else }}404 Page Not Found{{ end }}</h2>
- <h3><a href="{{ "/" | absURL }}">首页</a></h3>
+ <h3><a href="{{ .Site.BaseURL }}">首页</a></h3>
</div>
<div class="pagination"></div>
</div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index e678d00..24523f3 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -4,7 +4,6 @@
<h1>
<a href="{{ .Site.BaseURL }}">
<span>{{ .Site.Title }}</span>
- <img src="{{ "images/logo.svg" | absURL }}" />
</a>
</h1>
</div>
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
index f767ae0..2801e82 100644
--- a/layouts/partials/post.html
+++ b/layouts/partials/post.html
@@ -1,5 +1,4 @@
-{{ $pages := where .Site.RegularPages "Params.hidden" "ne" true }}
-{{ $paginator := .Paginate (where $pages "Type" "posts") }}
+{{ $paginator := .Paginate (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ range $paginator.Pages }}
<div class="post animated fadeInDown">
<div class="post_title">
diff --git a/static/css/zozo.css b/static/css/zozo.css
index 837aaa9..3c07330 100644
--- a/static/css/zozo.css
+++ b/static/css/zozo.css
@@ -160,7 +160,7 @@ hr {
}
.header .site_title_container .site_title a span {
- display: none;
+ display: block;
}
.header .site_title_container .site_title a:hover {
diff --git a/static/images/logo.svg b/static/images/logo.svg
deleted file mode 100644
index 3c3b3c4..0000000
--- a/static/images/logo.svg
+++ /dev/null
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- viewBox="0 0 96 98.8" style="enable-background:new 0 0 96 98.8;" xml:space="preserve">
-<g>
- <path d="M26.9,7.6v2.4c0,1.8-0.1,3.5-0.2,5.2c-0.1,1.6-0.3,3.2-0.5,4.6h13.1l2-1.8l2.4,4H30.9v16.1c0,1.2,0.6,1.8,1.8,1.8h3.6
- c1,0,1.7-0.6,2.2-1.9c0.5-1.3,0.7-3.3,0.6-6l4.5,1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