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:
authorimzeuk <imzeuk@gmail.com>2019-04-16 17:00:03 +0300
committerimzeuk <imzeuk@gmail.com>2019-04-16 17:00:03 +0300
commit1abe682cffa4ea3a595e1dda15670d5f1060e284 (patch)
tree1c2a6ada172da096ca77e58375e43c4e0ad9da93
parentcb991e36fd582bb1bcc8ee58621d2feaae409866 (diff)
modify index css
-rw-r--r--exampleSite/config.toml2
-rw-r--r--exampleSite/content/posts/chinese-preview.md38
-rw-r--r--exampleSite/content/posts/english-preview.md2
-rw-r--r--exampleSite/content/posts/japanese-preview.md2
-rw-r--r--exampleSite/content/posts/theme-preview.md2
-rw-r--r--layouts/partials/post.html2
-rw-r--r--static/css/zozo.css66
-rw-r--r--static/css/zozo.scss2
8 files changed, 80 insertions, 36 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 779c0e0..0eb011a 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -44,6 +44,8 @@ enableEmoji = true
# mathjax
mathjax = true # 是否使用mathjax(数学公式)
+ summaryDisplay = true # 是否显示文章摘要
+
# Valine.
# You can get your appid and appkey from https://leancloud.cn
# more info please open https://valine.js.org
diff --git a/exampleSite/content/posts/chinese-preview.md b/exampleSite/content/posts/chinese-preview.md
index 644399e..8099651 100644
--- a/exampleSite/content/posts/chinese-preview.md
+++ b/exampleSite/content/posts/chinese-preview.md
@@ -11,47 +11,85 @@ slug: "Chinese-Preview"
# 内容
南无薄伽伐帝鞞杀社
+
窭噜薜琉璃
+
跋喇婆
+
喝啰阇也
+
+<!--more-->
+
怛他揭多也
+
阿啰喝帝
+
三藐三勃陀耶
+
怛侄他
+
+
鞞刹逝
+
鞞刹逝
+
鞞刹社
+
三没揭帝莎诃
# 读法
那摩波切罚地
+
皮杀社
+
句度比琉璃
+
波拉婆
+
和拉舌也
+
大拖接多也
+
艾拉和地
+
三秒三波拖也
+
大至拖
+
+
皮杀逝
+
皮杀逝
+
皮杀社
+
三摩接地缩和
# 简单释义
南无 薄伽伐帝
+
归命 世尊
+
鞞杀社 窭噜 薜琉璃 跋喇婆 喝啰阇也
+
药 师 琉璃 光 王
+
怛他揭多也 阿啰喝帝 三藐三勃陀耶
+
如来 应供 正等正觉
+
怛侄他
+
即说咒曰
+
唵 鞞刹逝 鞞刹逝 鞞刹社 三没揭帝
+
唵 药 药 药师 自度度他
+
莎诃
+
成就
diff --git a/exampleSite/content/posts/english-preview.md b/exampleSite/content/posts/english-preview.md
index a9b3e20..6a57053 100644
--- a/exampleSite/content/posts/english-preview.md
+++ b/exampleSite/content/posts/english-preview.md
@@ -9,7 +9,7 @@ slug: "English Preview"
## Introduction
This tutorial will show you how to create a simple theme in Hugo. I assume that you are familiar with HTML, the bash command line, and that you are comfortable using Markdown to format content. I'll explain how Hugo uses templates and how you can organize your templates to create a theme. I won't cover using CSS to style your theme.
-
+<!--more-->
We'll start with creating a new site with a very basic template. Then we'll add in a few pages and posts. With small variations on that, you will be able to create many different types of web sites.
In this tutorial, commands that you enter will start with the "$" prompt. The output will follow. Lines that start with "#" are comments that I've added to explain a point. When I show updates to a file, the ":wq" on the last line means to save the file.
diff --git a/exampleSite/content/posts/japanese-preview.md b/exampleSite/content/posts/japanese-preview.md
index 88c5a7c..2fa8879 100644
--- a/exampleSite/content/posts/japanese-preview.md
+++ b/exampleSite/content/posts/japanese-preview.md
@@ -11,7 +11,7 @@ slug: "Japanese-Preview"
# 尊敬語
尊敬語は、動作の主体を高めることで、主体への敬意を表す言い方である。動詞に「お(ご)~になる」を付けた形、また、助動詞「(ら)れる」を付けた形などが用いられる。たとえば、動詞「取る」の尊敬形として、「(先生が)お取りになる」「(先生が)取られる」などが用いられる。
-
+<!--more-->
語によっては、特定の尊敬語が対応するものもある。たとえば、「言う」の尊敬語は「おっしゃる」、「食べる」の尊敬語は「召し上がる」、「行く・来る・いる」の尊敬語は「いらっしゃる」である。
# 謙譲語
diff --git a/exampleSite/content/posts/theme-preview.md b/exampleSite/content/posts/theme-preview.md
index ff75f6e..81eaa1f 100644
--- a/exampleSite/content/posts/theme-preview.md
+++ b/exampleSite/content/posts/theme-preview.md
@@ -20,6 +20,8 @@ slug: "Theme Preview"
###### H6
```
+<!--more-->
+
# H1
## H2
diff --git a/layouts/partials/post.html b/layouts/partials/post.html
index f6011a9..83a62e8 100644
--- a/layouts/partials/post.html
+++ b/layouts/partials/post.html
@@ -5,11 +5,13 @@
<div class="post_title">
<h2><a href='{{ .RelPermalink }}'>{{ .Title }}</a></h2>
</div>
+ {{ if .Site.Params.summaryDisplay }}
<div class="list">
<div class="post_content">
<p>{{ .Summary }}......</p>
</div>
</div>
+ {{ end }}
<div class="post_footer">
<div class="meta">
<div class="info">
diff --git a/static/css/zozo.css b/static/css/zozo.css
index b5b1f68..3700429 100644
--- a/static/css/zozo.css
+++ b/static/css/zozo.css
@@ -415,7 +415,7 @@ h6 {
float: right;
}
-.markdown {
+.post_content {
color: #555555;
line-height: 1.8em;
word-wrap: break-word;
@@ -423,48 +423,48 @@ h6 {
overflow-wrap: break-word;
}
-.markdown p,
-.markdown ul,
-.markdown ol,
-.markdown dl {
+.post_content p,
+.post_content ul,
+.post_content ol,
+.post_content dl {
margin: 0.8em 0;
}
-.markdown h1,
-.markdown h2,
-.markdown h3,
-.markdown h4,
-.markdown h5,
-.markdown h6 {
+.post_content h1,
+.post_content h2,
+.post_content h3,
+.post_content h4,
+.post_content h5,
+.post_content h6 {
margin: 2.5em 0 1.3em 0;
color: #000000;
}
-.markdown h1 {
+.post_content h1 {
font-size: 1.35em;
}
-.markdown h2 {
+.post_content h2 {
font-size: 1.25em;
}
-.markdown h3 {
+.post_content h3 {
font-size: 1.15em;
}
-.markdown h4 {
+.post_content h4 {
font-size: 1.1em;
}
-.markdown pre,
-.markdown code {
+.post_content pre,
+.post_content code {
font-family: "Roboto Mono", Menlo, Monaco, courier, monospace;
font-size: 0.8em;
background: #f8f8f8;
border: none;
}
-.markdown pre {
+.post_content pre {
margin-top: 1.2em;
margin-bottom: 2.2em;
padding: 15px 20px;
@@ -474,35 +474,35 @@ h6 {
word-wrap: break-word;
}
-.markdown code {
+.post_content code {
color: #666666;
padding: 4px 5px;
border-radius: 2px;
white-space: nowrap;
}
-.markdown pre code {
+.post_content pre code {
padding: 0;
color: #555555;
}
-.markdown blockquote p {
+.post_content blockquote p {
white-space: pre-line;
}
-.markdown pre::-webkit-scrollbar {
+.post_content pre::-webkit-scrollbar {
height: 10px;
}
-.markdown pre::-webkit-scrollbar-button {
+.post_content pre::-webkit-scrollbar-button {
display: none;
}
-.markdown pre::-webkit-scrollbar-track {
+.post_content pre::-webkit-scrollbar-track {
background: white;
}
-.markdown pre::-webkit-scrollbar-thumb {
+.post_content pre::-webkit-scrollbar-thumb {
min-height: 1rem;
background-color: #cccccc;
background-clip: padding-box;
@@ -510,12 +510,12 @@ h6 {
border-radius: 5px;
}
-.markdown pre::-webkit-scrollbar-thumb:active {
+.post_content pre::-webkit-scrollbar-thumb:active {
background-color: #999999;
border-width: 2px;
}
-.markdown blockquote {
+.post_content blockquote {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 2.5em 0;
@@ -525,7 +525,7 @@ h6 {
border-left: none;
}
-.markdown blockquote:before {
+.post_content blockquote:before {
content: "“";
display: block;
font-family: times, sans-serif;
@@ -538,19 +538,19 @@ h6 {
position: absolute;
}
-.markdown strong,
-.markdown b,
-.markdown em {
+.post_content strong,
+.post_content b,
+.post_content em {
padding: 1px 2px;
background-color: #fcfcf0;
font-weight: normal;
}
-.markdown .fancybox {
+.post_content .fancybox {
text-align: center;
}
-.markdown img {
+.post_content img {
max-width: 90%;
height: auto;
}
diff --git a/static/css/zozo.scss b/static/css/zozo.scss
index ee15204..3717b89 100644
--- a/static/css/zozo.scss
+++ b/static/css/zozo.scss
@@ -425,7 +425,7 @@ h6 {
}
}
-.markdown {
+.post_content {
color: #555555;
line-height: 1.8em;
word-wrap: break-word;