summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorziggys <ziggys@autistici.org>2017-11-11 18:18:40 +0000
committerziggys <ziggys@autistici.org>2017-11-11 18:18:40 +0000
commit1256a999e472301ea7750bcee8eb5ba5505504cf (patch)
treeac9fc96f54343fe0a2986f1a869b64fe2f98e3a8
parent09b1610e879a78c561aa87e0435452314e535d6f (diff)
downloadmaullidos-hugo-theme-1256a999e472301ea7750bcee8eb5ba5505504cf.tar
maullidos-hugo-theme-1256a999e472301ea7750bcee8eb5ba5505504cf.zip
Add categories page
-rw-r--r--layouts/_default/terms.html24
-rwxr-xr-xlayouts/partials/nav.html2
-rwxr-xr-xstatic/css/styles.css26
3 files changed, 51 insertions, 1 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
new file mode 100644
index 0000000..1399470
--- /dev/null
+++ b/layouts/_default/terms.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+ {{ partial "head.html" . }}
+
+<body>
+
+ {{ partial "nav.html" . }}
+
+ <div class="content">
+
+ <ul class="postcontent">
+ {{ $data := .Data }}
+ {{ range $key,$value := .Data.Terms.ByCount }}
+ <li>
+ <a class="catlist" href="{{ $data.Plural}}/{{ $value.Name | urlize }}">{{ $value.Name }}</a>
+ <strong class="catcount">&nbsp;({{ $value.Count }})</strong>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+
+ {{ partial "footer.html" . }}
+</body>
+</html>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 9383a9a..22e596e 100755
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -3,8 +3,8 @@
<div class="tbar">
<div class="navbar"><a href="https://agora.p4g.club">agora</a></div>
-
<div class="navbar"><a href="https://bobinas.p4g.club">bobinas</a></div>
+ <div class="navbar"><a href="{{ .Site.BaseURL}}/categorias/">categorias</a></div>
<div class="tbar-title"><a href="{{ .Site.BaseURL}}/index.html">{{ .Site.Title }}</a>
<div class="tbar-subtitle">{{ .Site.Params.Subtitle }}</div>
</div>
diff --git a/static/css/styles.css b/static/css/styles.css
index 89415ac..79545a2 100755
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -301,6 +301,32 @@ a:hover {
position: relative;
left: 40%;
}
+
+ul {
+ list-style: none;
+}
+
+.catlist {
+ font-family: "Asimov", sans;
+ font-size: 1.15em;
+ line-height: 1.7em;
+ text-align: justify;
+ color: #ddd;
+ margin-left: 10px;
+}
+
+.catcount {
+ font-family: "Asimov", sans;
+ font-size: 1em;
+ color: #7fbebc;
+ text-align: left;
+ margin-top: 20px;
+ margin-bottom: 25px;
+ margin-left: 10px;
+}
+
+
+
/* --- End Container --- */
/* Responsiveness */