Skip to content
Permalink
Browse files

feat: initial implementation

  • Loading branch information
vividvilla committed Apr 9, 2019
0 parents commit 0acbe2865da64b7db006d529339c6ece53e1a3c3
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2018 YOUR_NAME_HERE

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No changes.
@@ -0,0 +1,2 @@
+++
+++
No changes.
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}

<body>
<div class="container wrapper list">
{{ partial "head.html" . }}

{{ if isset .Data "Term" }}
<h1>Entries tagged - "{{.Data.Term}}"</h1>
{{ else }}
<h1 class="page-title">All articles</h1>
{{ end }}

<ul class="posts">
{{- range first .Site.Params.SidebarRecentLimit .Data.Pages -}}
<li class="post">
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}</span>
</li>
{{- end -}}
</ul>
</div>

{{ partial "footer.html" . }}
</body>

</html>
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="container wrapper post">
{{ partial "head.html" . }}

<div class="post-header">
<h1 class="title">{{ .Title }}</h1>
<div class="meta">Posted at &mdash; {{ dateFormat "Jan 2, 2006" .Date }}</div>
</div>

<div class="markdown">
{{ .Content }}
</div>
</div>

{{ partial "footer.html" . }}
</body>
</html>
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}

<body>
<div class="container wrapper tags">
{{ partial "head.html" . }}

<h1 class="page-title">All tags</h1>
</div>

{{ partial "footer.html" . }}
</body>

</html>
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}

<body>
<div class="container wrapper tags">
{{ partial "head.html" . }}

<h1 class="page-title">All tags</h1>

{{ $biggest := 1 }}
{{ $smallest := 1 }}
{{ $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>
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
{{ partial "header.html" . }}
<body>
<div class="container wrapper">
{{ partial "head.html" . }}

<div class="recent-posts section">
<h2 class="section-header">
Recent posts
</h2>
<div class="posts">
{{- range first .Site.Params.SidebarRecentLimit .Data.Pages -}}
<div class="post">
<div class="meta">{{ dateFormat "Jan 2, 2006" .Date }}</div>
<a class="title" href="{{ .RelPermalink }}">{{.Title}}</a> &mdash;
<span class="description">
{{ if isset .Params "description" }}
{{ .Description }}
{{ else if gt (len .RawContent) 120 }}
{{ slicestr .RawContent 0 120 }}...
{{ else }}
{{ .RawContent }}
{{ end }}
</span>
</div>
{{- end -}}

<a href="/posts">All articles →</a>
</div>
</div>
</div>
{{ partial "footer.html" . }}
</body>
</html>
@@ -0,0 +1,5 @@
<div class="footer wrapper">
<nav class="nav">
<div><a href="https://github.com/vividvilla/ezhil">Ezhil theme</a> | Built with <a href="gohugo.io">Hugo</a></div>
</nav>
</div>
@@ -0,0 +1,14 @@
<div class="header">
<h1>{{ .Site.Title }}</h1>
<h2>{{ .Site.Params.TitleTag | markdownify }}</h2>

<nav class="nav">
<ul class="flat">
{{ range $index, $key := .Site.Params.Nav }}
<li>
<a href="{{ $key.link }}">{{ $key.name }}</a>
</li>
{{ end }}
</ul>
</nav>
</div>
@@ -0,0 +1,20 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">

{{- $title := ( .Title ) -}}
{{- $siteTitle := ( .Site.Title ) -}}

{{- if .IsHome -}}
<title>{{ $siteTitle }}</title>
{{- else -}}
<title>{{ $title }} - {{ $siteTitle }}</title>
{{- end -}}

<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,300italic,400italic|Raleway:500,100,300" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen" href="/css/normalize.css" />
<link rel="stylesheet" type="text/css" media="screen" href="/css/main.css" />
<script src="main.js"></script>
</head>

0 comments on commit 0acbe28

Please sign in to comment.
You can’t perform that action at this time.