chore: add screenshot to README

This commit is contained in:
Vivek R 2019-04-20 14:19:04 +05:30
parent 6c755e82df
commit 74e9ee7758
3 changed files with 2 additions and 30 deletions

View File

@ -1,6 +1,8 @@
# Ezhil
Clean and minimal personal blog and portfolio theme for Hugo.
.. image:: https://raw.githubusercontent.com/vividvilla/ezhil/master/media/ezhil.png
# Features
* Clean and minimal
* Supports tags

View File

@ -1,30 +0,0 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="container wrapper tags">
{{ partial "head.html" . }}
<h1 class="page-title">All tags</h1>
{{ $biggest := (index .Data.Terms.ByCount 0).Count }}
{{ $smallest := (index .Data.Terms.ByCount (sub (len .Data.Terms.ByCount) 1)).Count }}
{{ $max := 3 }}
{{ $min := 1 }}
{{ $size := $min }}
{{ $data := .Data }}
<div class="tag-cloud">
{{ range $key, $value := .Data.Terms.ByCount }}
{{ $size := (add (mul (div $value.Count $biggest) (sub $max $min)) $min) }}
{{ $size := (cond (eq $biggest $smallest) $min $size) }}
<a style="font-size: {{ $size }}rem;" href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a>
{{ end }}
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>

BIN
media/ezhil.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 KiB