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

github.com/rafed/ramium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/index/tag-bullet.html')
-rw-r--r--layouts/partials/index/tag-bullet.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/layouts/partials/index/tag-bullet.html b/layouts/partials/index/tag-bullet.html
new file mode 100644
index 0000000..d5ebf5f
--- /dev/null
+++ b/layouts/partials/index/tag-bullet.html
@@ -0,0 +1,32 @@
+{{ if ne .Site.Params.TagsInHome 0 }}
+
+{{ $randTags := (slice)}}
+{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
+{{ $randTags = $randTags | append $name }}
+{{ end }}
+{{ $randTags = sort (first .Site.Params.TagsInHome (shuffle $randTags)) }}
+
+{{ if gt (len $randTags) 1 }}
+
+<div class="columns is-centered has-text-centered">
+ <div class="column is-10">
+ <div class="content">
+ <a href="{{ "/tags/" | relURL }}">
+ <h1>Read articles by tags</h1>
+ </a>
+ <p class="tags-summary">
+ {{ range $name := $randTags }}
+ <a href="{{ "/tags/" | relURL }}{{ $name | urlize }}">
+ <span class="tag is-dark is-large is-rounded">
+ {{ $name | humanize }}
+ </span>
+ </a>
+ {{ end }}
+ </p>
+ </div>
+ </div>
+</div>
+<br>
+
+{{ end }}
+{{ end }} \ No newline at end of file