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-09 16:33:16 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-10-09 16:33:16 +0700
commit11745452714f525fd7cebc429bd242022672c590 (patch)
tree8716dfb61368a6db3a1efa7fa7247c05d3b47a36 /layouts
parentd19d362bc82440ba8b9125b4c1eccee42b29a601 (diff)
downloadblog-11745452714f525fd7cebc429bd242022672c590.tar.gz
Remove redundant custom layout
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/books.html2
-rw-r--r--layouts/_default/comic.html2
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/_default/project.html2
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/_default/wiki.html2
-rw-r--r--layouts/partials/footer-extra.html17
-rw-r--r--layouts/partials/footer.html28
-rw-r--r--layouts/partials/head-extra.html1
-rw-r--r--layouts/partials/languageSelect.html10
-rw-r--r--layouts/partials/postInfo.html34
11 files changed, 6 insertions, 96 deletions
diff --git a/layouts/_default/books.html b/layouts/_default/books.html
index d574cbf..d3044c9 100644
--- a/layouts/_default/books.html
+++ b/layouts/_default/books.html
@@ -33,7 +33,7 @@
     <hr>
     {{ i18n "BookShare" }}
   </div>
-  {{ partial "postInfo.html" . }}
+  {{ partial "post-info.html" . }}
 </article>
 
 {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
diff --git a/layouts/_default/comic.html b/layouts/_default/comic.html
index ef86c7c..508df3c 100644
--- a/layouts/_default/comic.html
+++ b/layouts/_default/comic.html
@@ -32,7 +32,7 @@
       {{ .Content }}
     </details>
   </section>
-  {{ partial "postInfo.html" . }}
+  {{ partial "post-info.html" . }}
 </article>
 
 {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 855ed91..33bd8b5 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -11,7 +11,7 @@
                 <header class="post-header"> 
                     <h2 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}"><a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a></h2>
                 </header>
-                {{ partial "postInfo.html" . }}
+                {{ partial "post-info.html" . }}
             </div>
         {{ end }}
         {{ end}}
diff --git a/layouts/_default/project.html b/layouts/_default/project.html
index 1761cbb..6b6b14d 100644
--- a/layouts/_default/project.html
+++ b/layouts/_default/project.html
@@ -55,7 +55,7 @@
     </p>
     {{ end }}
   </div>
-  {{ partial "postInfo.html" . }}
+  {{ partial "post-info.html" . }}
 </article>
 
 {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7ba428d..c8e594a 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -14,7 +14,7 @@
 	<div class="content e-content">
 		{{ .Content }}
 	</div>
-	{{ partial "postInfo.html" . }}
+	{{ partial "post-info.html" . }}
 </article>
 
 {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
diff --git a/layouts/_default/wiki.html b/layouts/_default/wiki.html
index 5175dad..0e933b5 100644
--- a/layouts/_default/wiki.html
+++ b/layouts/_default/wiki.html
@@ -19,7 +19,7 @@
 			huyngo+{{ .Params.wiki }}@disroot.org
 		</a>
 	</div>
-	{{ partial "postInfo.html" . }}
+	{{ partial "post-info.html" . }}
 </article>
 
 {{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }}
diff --git a/layouts/partials/footer-extra.html b/layouts/partials/footer-extra.html
deleted file mode 100644
index ef2108b..0000000
--- a/layouts/partials/footer-extra.html
+++ /dev/null
@@ -1,17 +0,0 @@
-  <ul class="social-media-list">
-    <li>
-      <a rel="me" href="https://fosstodon.org/@huy_ngo">Mastodon: @huy_ngo@fosstodon.org</a>
-    </li>
-    <li>
-      <a href="https://matrix.to/#/@huyngo:envs.net" rel="me">Matrix.org: @huyngo:envs.net</a>
-    </li>
-    <li>
-      <a href="https://sr.ht/~huyngo/" rel="me">SourceHut: ~huyngo</a>
-    </li>
-    <li>
-      <a href="https://github.com/Huy-Ngo" rel="me">GitHub: @Huy-Ngo</a>
-    </li>
-    <li>
-      <a href="mailto:huyngo@disroot.org" rel="me">Email: huyngo@disroot.org</a>
-    </li>
-  </ul>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
deleted file mode 100644
index ca9bb40..0000000
--- a/layouts/partials/footer.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<footer class="common-footer">
-    {{ $languagesCount := $.Site.Home.AllTranslations }}
-    {{ if gt $languagesCount 1 }}
-        {{ partial "languageSelect.html" . }}
-    {{ end }}
-
-    <div class="common-footer-bottom">
-        {{ if .Site.Menus.footer }}
-            {{ $currentPage := . }}
-            <ul class="footer-menu">
-            {{ range .Site.Menus.footer }}
-            <li><a class="{{if or ($currentPage.IsMenuCurrent "footer" .) ($currentPage.HasMenuCurrent "footer" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a></li>
-            {{ end }}
-            </ul>
-        {{ end }}
-        <div class="copyright">
-            <p>© {{ if isset .Site.Params "author"}}{{ .Site.Params.author }}, {{end}}{{ now.Year }}<br>
-            {{ i18n "powered" | humanize }} <a target="_blank" rel="noopener noreferrer" href="https://gohugo.io/">Hugo</a>, {{ i18n "theme" }} <a target="_blank" rel="noopener noreferrer" href="https://github.com/mitrichius/hugo-theme-anubis">Anubis</a>.<br>
-            {{ partial "copyright.html" . }}
-            </p>  
-        </div> 
-        <div>
-            {{ partial "footer-extra.html" . }}
-        </div>
-    </div>
-
-    {{ partial "h-card.html" . }}
-</footer>
diff --git a/layouts/partials/head-extra.html b/layouts/partials/head-extra.html
index 71a7579..6d60ecd 100644
--- a/layouts/partials/head-extra.html
+++ b/layouts/partials/head-extra.html
@@ -1,4 +1,3 @@
-<link rel="stylesheet" href={{ "/css/custom.css?v=20210912" }}>
 <link rel="apple-touch-icon" sizes="180x180" href={{ "/apple-touch-icon.png" }}>
 <link rel="icon" type="image/png" sizes="32x32" href={{ "/favicon-32x32.png" }}>
 <link rel="icon" type="image/png" sizes="16x16" href={{ "/favicon-16x16.png" }}>
diff --git a/layouts/partials/languageSelect.html b/layouts/partials/languageSelect.html
deleted file mode 100644
index ce67210..0000000
--- a/layouts/partials/languageSelect.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{{ if .IsTranslated }}
-<h4>{{ i18n "translations" }}</h4>
-<ul>
-  {{ range .Translations }}
-  <li>
-    <a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
-  </li>
-  {{ end }}
-</ul>
-{{ end }}
diff --git a/layouts/partials/postInfo.html b/layouts/partials/postInfo.html
deleted file mode 100644
index f9052b0..0000000
--- a/layouts/partials/postInfo.html
+++ /dev/null
@@ -1,34 +0,0 @@
-{{ $dateFormat := "2006-01-02" }}
-{{ if .Site.Params.dateFormat }}
-    {{ $dateFormat = .Site.Params.dateFormat }}
-{{ end }}
-
-<div class="post-info">
-    {{ if .Params.date }}
-        <div class="post-date dt-published">{{ .Params.date.Format $dateFormat }}</div>
-    {{ end }}
-    
-    <a class="post-hidden-url u-url" href="{{ .Permalink }}">{{ .Permalink }}</a>
-    <a href={{ .Site.BaseURL }} class="p-name p-author post-hidden-author h-card" rel="me">{{ .Params.author | default .Site.Params.author }}</a>
-
-
-    <div class="post-taxonomies">
-        {{ if .Params.categories }}
-        categories:
-        <ul class="post-categories">
-            {{ range .Params.categories }}
-            <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li>
-            {{ end }}
-        </ul>
-        {{ end }}
-        <br>
-        {{ if .Params.tags }}
-        tagged:
-        <ul class="post-tags">
-            {{ range .Params.tags }}
-            <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li>
-            {{ end }}
-        </ul>
-        {{ end }}
-    </div>
-</div>