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

github.com/4ever9/less.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAiden X <caichao.xu@gmail.com>2020-09-15 19:00:44 +0300
committerAiden X <caichao.xu@gmail.com>2020-09-15 19:00:44 +0300
commitcf9a162f0ce44e43639ba3aa3f7828c983595169 (patch)
treeb892e155b1fcde73b6ea5902af1d77f6eaa6622e
parent09650d7d0bd215ab5da9d8dbbc7cdc91b9aec6f7 (diff)
page: add terms
-rw-r--r--assets/scss/_dark.scss5
-rw-r--r--assets/scss/_taxonomy.scss24
-rw-r--r--assets/scss/less.scss4
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/_default/terms.html18
5 files changed, 49 insertions, 4 deletions
diff --git a/assets/scss/_dark.scss b/assets/scss/_dark.scss
index 584b4a4..06a70c1 100644
--- a/assets/scss/_dark.scss
+++ b/assets/scss/_dark.scss
@@ -16,7 +16,10 @@
}
.post-title,
- .single-title {
+ .single-title,
+ .nav-menu a,
+ .terms h2,
+ .terms a {
color: #d0d0d0;
}
diff --git a/assets/scss/_taxonomy.scss b/assets/scss/_taxonomy.scss
index 697615b..fefff81 100644
--- a/assets/scss/_taxonomy.scss
+++ b/assets/scss/_taxonomy.scss
@@ -4,3 +4,27 @@
color: #909090;
font-family: "Monda", -apple-system, sans-serif;
}
+
+.terms {
+ h2 {
+ font-size: 24px;
+ margin-bottom: 30px;
+ }
+
+ li {
+ margin-bottom: 15px;
+ }
+
+ a {
+ font-size: 18px;
+ text-decoration: none;
+ color: #161816;
+ &:hover {
+ text-decoration: underline;
+ }
+
+ span {
+ color: #a0a0a0;
+ }
+ }
+}
diff --git a/assets/scss/less.scss b/assets/scss/less.scss
index 884e8ab..b7f87f2 100644
--- a/assets/scss/less.scss
+++ b/assets/scss/less.scss
@@ -66,6 +66,7 @@ body {
.main {
padding-top: 40px;
max-width: 100%;
+ min-height: calc(100% - 160px);
}
a {
@@ -95,7 +96,8 @@ a {
font-size: 12px;
}
-.post-title {
+.post-title,
+h2 {
font-family: "Monda", -apple-system, BlinkMacSystemFont, PingFang SC,
Hiragino Sans GB, Microsoft YaHei, "\5FAE\8F6F\96C5\9ED1", helvetica neue,
helvetica, ubuntu, roboto, noto, segoe ui, Arial, sans-serif;
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 31e3d1f..3227c32 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -19,7 +19,7 @@
</div>
<script
src="https://utteranc.es/client.js"
- repo="4ever9/blog-comments"
+ repo="{{ .Site.Params.utteranc.repo }}"
issue-term="pathname"
theme="github-light"
crossorigin="anonymous"
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index de31f06..a38132b 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -1 +1,17 @@
-term
+{{ define "main" }}
+ {{ $type := .Type }}
+ <div class="container">
+ <div class="main terms">
+ <h2>Total {{ len .Data.Terms }} {{ .Type }}</h2>
+ <div class="row">
+ {{ range $k, $v := .Data.Terms.ByCount }}
+ <li class="column is-lg-6">
+ <a href="{{ .Page.Permalink }}">
+ {{ .Name }} <span>({{ .Count }})</span>
+ </a>
+ </li>
+ {{ end }}
+ </div>
+ </div>
+ </div>
+{{ end }}