forked from athul/archie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
81 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
{{- partial "head.html" . -}} | ||
{{- partial "header.html" . -}} | ||
<body> | ||
{{- partial "header.html" . -}} | ||
<div id="content"> | ||
<div class="content"> | ||
{{- partial "head.html" . -}} | ||
{{- block "main" . }}{{- end }} | ||
</div> | ||
{{- partial "footer.html" . -}} | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
{{ partial "header.html" . }} | ||
{{ define "main" }} | ||
{{ if isset .Data "Term" }} | ||
<h1>Entries tagged - "{{ .Data.Term }}"</h1> | ||
{{ else }} | ||
<h1 class="page-title">All articles</h1> | ||
{{ end }} | ||
|
||
<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 .Data.Pages -}} | ||
{{- if (in (.Site.Params.excludedTypes | default (slice "page")) .Type) -}} | ||
{{- else -}} | ||
<li class="post"> | ||
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span> | ||
</li> | ||
{{- end -}} | ||
{{- end -}} | ||
</ul> | ||
{{ partial "footer.html" . }} | ||
</div> | ||
|
||
|
||
</body> | ||
|
||
</html> | ||
<ul class="posts"> | ||
{{- range .Data.Pages -}} | ||
{{- if (not (in (.Site.Params.excludedTypes | default (slice "page")) .Type)) -}} | ||
<li class="post"> | ||
<a href="{{ .RelPermalink }}">{{.Title}}</a> <span class="meta">{{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</span> | ||
</li> | ||
{{- end -}} | ||
{{- end -}} | ||
</ul> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
{{ partial "header.html" . }} | ||
<body> | ||
<div class="content"> | ||
{{ partial "head.html" . }} | ||
{{ define "main" }} | ||
<main> | ||
<article> | ||
<article> | ||
<div class="title"> | ||
<h1 class="title">{{ .Title }}</h1> | ||
<div class="meta">Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div> | ||
</div> | ||
<div> | ||
{{ if isset .Params "tldr" }} | ||
<div class="tldr"> | ||
<strong>tl;dr:</strong> | ||
{{ .Params.tldr }} | ||
</div>{{ end }} | ||
</div> | ||
{{ if isset .Params "tldr" }} | ||
<div class="tldr"> | ||
<strong>tl;dr:</strong> | ||
{{ .Params.tldr }} | ||
</div>{{ end }} | ||
|
||
<section class="body"> | ||
{{ .Content }} | ||
</section> | ||
|
||
<div class="post-tags"> | ||
{{ if ne .Type "page" }} | ||
{{ if gt .Params.tags 0 }} | ||
<nav class="nav tags"> | ||
<ul class="tags"> | ||
{{ range .Params.tags }} | ||
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li> | ||
{{ end }} | ||
</ul> | ||
</nav> | ||
{{ end }} | ||
{{ if gt .Params.tags 0 }} | ||
<nav class="nav tags"> | ||
<ul class="tags"> | ||
{{ range .Params.tags }} | ||
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li> | ||
{{ end }} | ||
</ul> | ||
</nav> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
|
||
|
||
{{ partial "footer.html" . }} | ||
</div> | ||
</body> | ||
</html> | ||
</article> | ||
</main> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
{{ partial "header.html" . }} | ||
{{ define "main" }} | ||
<h1 class="page-title">All tags</h1> | ||
|
||
<body> | ||
<div class="container wrapper tags"> | ||
{{ partial "head.html" . }} | ||
{{ $biggest := 1 }} | ||
{{ $smallest := 1 }} | ||
{{ $max := 3 }} | ||
{{ $min := 1 }} | ||
{{ $size := $min }} | ||
|
||
<h1 class="page-title">All tags</h1> | ||
|
||
{{ $biggest := 1 }} | ||
{{ $smallest := 1 }} | ||
{{ $max := 3 }} | ||
{{ $min := 1 }} | ||
{{ $size := $min }} | ||
|
||
{{ $data := .Data }} | ||
<div class="tag-cloud"> | ||
<ul> | ||
{{ $data := .Data }} | ||
<div class="tag-cloud"> | ||
<ul class="tags"> | ||
{{ range $key, $value := .Data.Terms.ByCount }} | ||
{{ $size := (add (mul (div $value.Count $biggest) (sub $max $min)) $min) }} | ||
{{ $size := (cond (eq $biggest $smallest) $min $size) }} | ||
<li><a style="font-size: {{ $size }}rem;" href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a></li> | ||
{{ $size := (add (mul (div $value.Count $biggest) (sub $max $min)) $min) }} | ||
{{ $size := (cond (eq $biggest $smallest) $min $size) }} | ||
<li><a style="font-size: {{ $size }}rem;" href="{{ $.Site.LanguagePrefix | absURL }}{{ $data.Plural }}/{{ $value.Name | urlize }}/">{{ $value.Name }}</a></li> | ||
{{ end }} | ||
</ul> | ||
</div> | ||
{{ partial "footer.html" . }} | ||
</div> | ||
</body> | ||
|
||
</html> | ||
</ul> | ||
</div> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
<div class="content"> | ||
<header> | ||
<div class="main"> | ||
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> | ||
</div> | ||
<nav> | ||
{{ range .Site.Menus.main }} | ||
<a href="{{ .URL }}">{{ .Name }}</a> | ||
{{ end }} | ||
</nav> | ||
</header> | ||
<div class="main"> | ||
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> | ||
</div> | ||
<nav> | ||
{{ range .Site.Menus.main }} | ||
<a href="{{ .URL }}">{{ .Name }}</a> | ||
{{ end }} | ||
</nav> | ||
</header> |