Commit df542ea7 authored by Francisco Jesús Acién Pérez's avatar Francisco Jesús Acién Pérez
Browse files

adding tags

parent d0df292c
......@@ -6,14 +6,22 @@
</div>
<div class="main" role="main">
<section class="terms">
<ul>
{{- range .Data.Terms.Alphabetical }}
<li>
<a href="{{ "/" | relURL }}{{ $data.Plural | urlize }}/{{ .Name | urlize }}/">{{ .Name | humanize }}({{ .Count }})</a>
<time>{{((index .Pages.ByDate.Reverse 0).Date.Format (default "January 2, 2006" $.Site.Params.dateFormat))}}</time>
</li>
{{- end}}
</ul>
{{ if eq .Data.Plural "tags" }}
{{ range .Data.Terms.ByCount }}
<a href="{{ "/" | relURL }}{{ $data.Plural | urlize }}/{{ .Name | urlize }}/" role="button" class="btn btn-primary tag-button">
{{ .Name | humanize}} <span class="badge badge-light">{{ .Count }}</span>
<span class="sr-only">unread messages</span>
</a>
{{ end}}
{{ else }}
<ul>
{{- range .Data.Terms.Alphabetical }}
<li>
<a href="{{ "/" | relURL }}{{ $data.Plural | urlize }}/{{ .Name | urlize }}/">{{ .Name | humanize }}({{ .Count }})</a>
</li>
{{- end}}
</ul>
{{ end }}
</section>
</div>
{{ end }}
......@@ -94,6 +94,10 @@
max-width: 100%;
}
.tag-button {
margin: 5px 10px 5px 5px;
}
/* Efecto al situar el curso encima de los divs principales */
.main-box:hover{
/*background-color: #73888E;*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment