Handling tags
This commit is contained in:
parent
3e7f4f07d0
commit
b9020351c1
8 changed files with 84 additions and 16 deletions
2
layouts/partials/category.html
Normal file
2
layouts/partials/category.html
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
{{ $paginator := .Paginate (where .Data.Pages "Section" "post") }}
|
||||
{{ partial "posts.html" . }}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<div class="row">
|
||||
<!-- USE SIDEBAR -->
|
||||
<!-- Post Container -->
|
||||
<div class="
|
||||
<div class="
|
||||
col-xl-8 offset-xl-1
|
||||
col-lg-8 offset-lg-1
|
||||
col-12
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@
|
|||
{{ $featured_condition_size := .Site.Params.featured_condition_size }}
|
||||
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
|
||||
{{ if gt (len $taxonomy.Pages) $featured_condition_size }}
|
||||
<a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}" title="{{ $name }}">
|
||||
{{ $name }}
|
||||
<a class="badge badge-pill badge-secondary" href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}" title="{{ $name }}">
|
||||
#{{ $name }}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue