about summary refs log tree commit diff
path: root/layouts
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-10-21 09:39:37 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-10-21 09:39:37 +0700
commit3ec418d2d29608b90f5ae4645e1663c558991ca7 (patch)
tree5c264be5b50efee8ed704b27278746e83de2e66f /layouts
parent9e40d170473bfd68a98d7047985422adb5d6691f (diff)
downloadblog-3ec418d2d29608b90f5ae4645e1663c558991ca7.tar.gz
Update theme and layout
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html27
-rw-r--r--layouts/partials/single-extra.html1
2 files changed, 1 insertions, 27 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
deleted file mode 100644
index c8e594a..0000000
--- a/layouts/_default/single.html
+++ /dev/null
@@ -1,27 +0,0 @@
-{{ define "main" }}
-{{ if .Menus }}
-<nav class="post-navigation">
-	{{ range .Menus }}
-	<a href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>
-	{{ end }}
-</nav>
-{{ end }}
-
-<article class="post h-entry">
-	<header class="post-header">
-		<h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title  " " }}</h1>
-	</header>
-	<div class="content e-content">
-		{{ .Content }}
-	</div>
-	{{ partial "post-info.html" . }}
-</article>
-
-{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
-	{{ partial "paginationPost.html" . }}
-{{ end }}
-
-
-{{ partial "custom-webring.html" }}
-
-{{ end }}
diff --git a/layouts/partials/single-extra.html b/layouts/partials/single-extra.html
new file mode 100644
index 0000000..0d3b101
--- /dev/null
+++ b/layouts/partials/single-extra.html
@@ -0,0 +1 @@
+{{ partial "custom-webring.html" }}