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

github.com/AngeloStavrow/indigo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelo Stavrow <angelo@fogcreek.com>2018-08-14 16:20:29 +0300
committerAngelo Stavrow <angelo@fogcreek.com>2018-08-14 16:20:29 +0300
commit994fd986bab1cf0baa4c7cfde62929e5f2a0772e (patch)
tree5680b3d479307936138924385fa3fadae29cd4f1 /layouts/_default
parent40f121ec52d1edbfff39470dee7a0c3c9ac36061 (diff)
Initial commit
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/li.html18
-rw-r--r--layouts/_default/list.html8
-rw-r--r--layouts/_default/single.html30
3 files changed, 56 insertions, 0 deletions
diff --git a/layouts/_default/li.html b/layouts/_default/li.html
new file mode 100644
index 0000000..40e229e
--- /dev/null
+++ b/layouts/_default/li.html
@@ -0,0 +1,18 @@
+ <article>
+ <header>
+ {{ if .Title }}
+ <h2 class="list-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
+ {{ end }}
+ <p class="list-post-date">
+ <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
+ {{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
+ </time>
+ </p>
+ </header>
+ <div>
+ {{ .Summary | plainify | safeHTML }}
+ </div>
+ {{ if .Truncated }}
+ <p><a class="read-more" href="{{ .Permalink }}">Read more &rarr;</a></p>
+ {{ end }}
+ </article> \ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..9125770
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,8 @@
+{{ partial "header.html" . }}
+<h2>{{ .Title }}</h2>
+{{ range $index, $page := (.Paginate (where .Data.Pages "Type" "post")).Pages }}
+{{ if ne $index 0 }}
+{{ end }}
+{{ .Render "li" }}
+{{ end }}
+{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..c921521
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,30 @@
+{{ partial "header.html" . }}
+{{ $baseurl := .Site.BaseURL | sanitizeurl }}
+<article class="h-entry">
+ <header>
+ <h1 class="post-title p-name">{{ .Title }}</h1>
+ {{ if .Param "static" }}
+ {{ else }}
+ <p class="post-date">Posted on
+ <time class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
+ {{ .PublishDate.Format "2 January, 2006 at 15:04 MST" }}
+ </time> by <a href="{{ .Site.Home }}" class="p-author">{{ .Site.Params.AuthorName }}</a>
+ </p>
+ {{ end }}
+ </header>
+ <section class="content e-content">
+ {{ .Content }}
+ </section>
+ <footer>
+ <a class="permalink u-url" href="{{ .Permalink }}">⏳</a>
+ {{ if .Params.tags }}
+ <hr class="post-underline">
+ <p class="post-tag">Tags for this post:
+ {{ range .Params.tags }}
+ <a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="post-tag">{{ . }}</a>
+ {{ end }}
+ </p>
+ {{ end }}
+ </footer>
+</article>
+{{ partial "footer.html" . }}