summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.html25
-rw-r--r--layouts/_default/single.html65
2 files changed, 90 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 00000000..8cc70a0d
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,25 @@
+{{ partial "snippets/document-start.html" . }}
+ <article class="posts">
+ {{ partial "header.html" . }}
+ <h1 class="taxonomy-term">{{.Data.Term}}</h1>
+ <div id="posts-list">
+ {{ range .Pages }}
+ <div class="row posts-line">
+ <div class="posts-date col-xs-2">
+ <time datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}">{{ .Date.Format "06/01/02"}}</time>
+ </div>
+ <div class="posts-title col-xs-10">
+ <div class="row">
+ <div class="col-xs-12">
+ <a href="{{ .RelPermalink }}" data-umami-event="Click Post Link from Category Page">
+ {{ .Title }}{{ with .Params.subtitle }}:<span class="posts-subtitle">{{. }}</span>
+ {{ end }}
+ </a>
+ </div>
+ </div>
+ </div>
+ </div>
+ {{ end }}
+ </div>
+ </article>
+{{ partial "snippets/document-end.html" . }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 00000000..a1b0b111
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,65 @@
+{{ partial "snippets/document-start.html" . }}
+ <article class="post {{ .Site.Language.LanguageName }}" id="article">
+
+ <!-- Site Header -->
+ <div class="site-header">
+ {{ partial "header.html" . }}
+ </div>
+ <!-- Post Header -->
+ <header class="post-header">
+ {{ if in .Site.Params.mainSections .Type }}
+ <!-- Title and Subtitle -->
+ <h1 class="post-title">
+ {{ .Title }}
+ {{ with .Params.subtitle }}
+ <small class="post-subtitle">{{ . }}</small>
+ {{ end }}
+ </h1>
+ <!-- Post Meta -->
+ <div class="row post-desc">
+ <div class="col-xs-6">
+ {{ if .Date }}
+ <time class="post-date" datetime="{{ .Date.Format "2006-01-02 15:04:05 MST" }}">
+ {{ .Date.Format "02 Jan 2006" }}
+ </time>
+ {{ end }}
+ <span> / </span>
+ <span><span class="waline-pageview-count">…</span> Views</span>
+ </div>
+ </div>
+ {{ end }}
+ </header>
+
+ <!-- Post Content -->
+ <div id="post-content" class="post-content markdown-body">
+ {{ .Site.Params.postHeaderContent | safeHTML }}
+ {{ .Content }}
+ </div>
+
+ <!-- Post Tags -->
+ <!-- <div class="row middle-xs">
+ <div class="col-xs-12">
+ {{ range .Params.tags }}
+ <div class="post-tags">
+ <a href="{{ site.LanguagePrefix }}/tags/{{ lower . | urlize }}/">
+ {{ . }}
+ </a>
+ </div>
+ {{ end }}
+ </div>
+ </div> -->
+
+ <!-- Post Comments -->
+ {{ if in .Site.Params.mainSections .Type }}
+ <!-- waline -->
+ <div style="height: 50px;"></div>
+ <div class="post-comments">
+ <div id="waline"></div>
+ </div>
+ {{ end }}
+
+ </article>
+ <!-- use fancybox -->
+ <!-- the reason it is replace here it that the fancybox.js is loaded after the swup.js -->
+ <script>Fancybox.bind("[data-fancybox]");</script>
+{{ partial "snippets/document-end.html" . }}