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-22 15:28:00 +0300
committerFFRaycoder <nn_201312@163.com>2020-05-22 15:28:00 +0300
commit4d7c551308351a76d9419550e66e3a9a7696e700 (patch)
tree21d0bf63a5b123159d36ed01086c5eba0f02cffb
parent0e9d9d8cacd2ea682201361917f654b66fb53a36 (diff)
CSS: btn-cate margin
-rw-r--r--assets/scss/tony.scss4
-rw-r--r--deploy.bat8
-rw-r--r--layouts/partials/pages/taxonomy.html12
3 files changed, 20 insertions, 4 deletions
diff --git a/assets/scss/tony.scss b/assets/scss/tony.scss
index 4cc2d0b..a189a4c 100644
--- a/assets/scss/tony.scss
+++ b/assets/scss/tony.scss
@@ -3033,4 +3033,8 @@ input:focus {
}
}
+.btn-cate {
+ margin: 5px 5px;
+}
+
/* End of The Tony Version */ \ No newline at end of file
diff --git a/deploy.bat b/deploy.bat
new file mode 100644
index 0000000..d1dde3c
--- /dev/null
+++ b/deploy.bat
@@ -0,0 +1,8 @@
+@echo off
+git add -A
+echo Commit:
+set /p commit=
+::echo %commit%
+git commit -m "%commit%"
+git push -u origin master -f
+close \ No newline at end of file
diff --git a/layouts/partials/pages/taxonomy.html b/layouts/partials/pages/taxonomy.html
index eb6fc07..31f696e 100644
--- a/layouts/partials/pages/taxonomy.html
+++ b/layouts/partials/pages/taxonomy.html
@@ -3,7 +3,7 @@
<div class="grid grid-centered" style="max-width: 660px; padding: 0px 20px; margin-top: 80px;">
<div id="grid-cell" class="grid-cell">
{{ partial "pages/taxonomy-header.html" . }}
- <ul class="article-list">
+ <ul class="article-list">
<li class="article-list-item reveal index-post-list archive">
<div id="load">
<div class="article-content" style="padding-top: 10px">
@@ -11,15 +11,19 @@
{{ range .Data.Terms.ByCount }}
{{ $name := .Name }}
{{ with $.Site.GetPage (printf "/%s/%s" $type $name) }}
- <a href="{{ .RelPermalink }}"><button class="btn btn-light">{{ .LinkTitle | default .Data.Term | default $name }}</button></a>
+ <a href="{{ .RelPermalink }}">
+ <button class="btn btn-light btn-cate">
+ {{ .LinkTitle | default .Data.Term | default $name }}
+ </button>
+ </a>
{{ end }}
{{ end }}
</div>
</div>
</li>
- </ul>
+ </ul>
</div>
</div>
</div>
- {{ partial "script.html" . }}
+ {{ partial "script.html" . }}
</main> \ No newline at end of file