summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html4
-rw-r--r--layouts/_default/archives.html17
-rw-r--r--layouts/_default/list.html20
-rw-r--r--layouts/_default/single.html8
-rw-r--r--layouts/_default/tag.html22
-rw-r--r--layouts/partials/comment-disqus.html2
-rw-r--r--layouts/partials/comment-utterances.html4
-rw-r--r--layouts/partials/header.html8
-rw-r--r--layouts/partials/scripts.html12
-rw-r--r--layouts/partials/sidebar.html10
10 files changed, 51 insertions, 56 deletions
diff --git a/layouts/404.html b/layouts/404.html
index 6dfd73f..eec3ded 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,3 +1,5 @@
{{ define "main" }}
-<span id="not-found">404 NOT FOUND</span>
+<div class="main-title" style="padding-top: 1.5rem;">
+ <span>404 NOT FOUND</span>
+</div>
{{ end }} \ No newline at end of file
diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html
index 348e6ac..cb4b911 100644
--- a/layouts/_default/archives.html
+++ b/layouts/_default/archives.html
@@ -1,36 +1,36 @@
{{ define "main" }}
<!-- page info section e.g. current tag & total archive pages -->
-<div id="page-info">
+<div class="page-info">
<span>{{ i18n "archivesTotalPages" }}{{ len (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}</span>
</div>
<!-- archives range in all posts -->
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) 50 }}
{{ range $paginator.Pages }}
-<div id="post-archive">
- <h2 id="post-title-archive">
+<div class="post-archive">
+ <h2 class="post-title-archive">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
- <div id="post-meta-archive">
+ <div class="post-meta-archive link-alter">
{{ partial "post-meta.html" . }}
</div>
</div>
{{ end }}
-<!-- START custom smart pagination -->
+<!-- custom smart pagination -->
{{ $offsetLinks := 2 }}
{{ $maxLinks := (add (mul $offsetLinks 2) 1) }}
{{ $lowerLimit := (add $offsetLinks 1) }}
{{ $upperLimit := (sub $paginator.TotalPages $offsetLinks) }}
{{ if gt $paginator.TotalPages 1 }}
-<ul id="pagination">
+<ul class="pagination">
{{ if ne $paginator.PageNumber 1 }}
<li class="pag-first">
- <a href="{{ $paginator.First.URL }}"><i class="fas fa-angle-double-left"></a>
+ <a href="{{ $paginator.First.URL }}"><i class="fas fa-angle-double-left"></i></a>
</li>
{{ end }}
{{ if $paginator.HasPrev }}
<li class="pag-previous">
- <a href="{{ $paginator.Prev.URL }}"><i class="fas fa-angle-left"></a>
+ <a href="{{ $paginator.Prev.URL }}"><i class="fas fa-angle-left"></i></a>
</li>
{{ end }}
{{ range $paginator.Pagers }}
@@ -70,6 +70,5 @@
{{ end }}
</ul>
{{ end }}
-<!-- END custom smart pagination -->
{{ end }} \ No newline at end of file
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 7f387f6..bcefcc2 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -2,37 +2,34 @@
<!-- homepage range in all posts -->
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
-<div id="post">
- <h2 id="post-title">
+<div class="post">
+ <h2 class="post-title">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
- <div id="post-meta">
+ <div class="post-meta link-alter">
{{ partial "post-meta.html" . }}
</div>
- <div class="markdown-body" id="post-summary">
+ <div class="post-summary markdown-body">
{{ .Summary }}
</div>
- <div id="post-exlink">
- {{ partial "post-exlink.html" . }}
- </div>
</div>
{{ end }}
-<!-- START custom smart pagination -->
+<!-- custom smart pagination -->
{{ $offsetLinks := 2 }}
{{ $maxLinks := (add (mul $offsetLinks 2) 1) }}
{{ $lowerLimit := (add $offsetLinks 1) }}
{{ $upperLimit := (sub $paginator.TotalPages $offsetLinks) }}
{{ if gt $paginator.TotalPages 1 }}
-<ul id="pagination">
+<ul class="pagination">
{{ if ne $paginator.PageNumber 1 }}
<li class="pag-first">
- <a href="{{ $paginator.First.URL }}"><i class="fas fa-angle-double-left"></a>
+ <a href="{{ $paginator.First.URL }}"><i class="fas fa-angle-double-left"></i></a>
</li>
{{ end }}
{{ if $paginator.HasPrev }}
<li class="pag-previous">
- <a href="{{ $paginator.Prev.URL }}"><i class="fas fa-angle-left"></a>
+ <a href="{{ $paginator.Prev.URL }}"><i class="fas fa-angle-left"></i></a>
</li>
{{ end }}
{{ range $paginator.Pagers }}
@@ -72,6 +69,5 @@
{{ end }}
</ul>
{{ end }}
-<!-- END custom smart pagination -->
{{ end }} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7ee7d25..87b6d62 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,23 +1,23 @@
{{ define "main" }}
<article>
<!-- post meta -->
- <h4 id="post-title">
+ <h4 class="post-title">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h4>
- <div id="post-meta">
+ <div class="post-meta link-alter">
{{ partial "post-meta.html" . }}
</div>
{{ with .Params.playerURL }}
<div id="post-aplayer"></div>
{{ end }}
<!-- post main content -->
- <div class="markdown-body" id="post-content">
+ <div class="post-content markdown-body">
{{ .Content }}
</div>
</article>
<!-- post license -->
{{ if ne .Params.noLicense true }}
-<div class="markdown-body" id="license">
+<div class="license markdown-body">
<blockquote>
<p>{{ i18n "postCopyrightFront" }}<a rel="license" href="{{ .Site.Params.licenseLink }}" target="_blank">{{ .Site.Params.license }}</a>{{ i18n "postCopyrightEnd" }}</p>
</blockquote>
diff --git a/layouts/_default/tag.html b/layouts/_default/tag.html
index b2860b2..97d6ead 100644
--- a/layouts/_default/tag.html
+++ b/layouts/_default/tag.html
@@ -1,42 +1,39 @@
{{ define "main" }}
<!-- page info section e.g. current tag & total archive pages -->
-<div id="page-info">
+<div class="page-info">
<span>{{ i18n "tagsCurrentTag" . }}</span>
</div>
<!-- tags page range in posts with current tag -->
{{ $paginator := .Paginator }}
{{ range $paginator.Pages }}
-<div id="post">
- <h2 id="post-title">
+<div class="post">
+ <h2 class="post-title">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h2>
- <div id="post-meta">
+ <div class="post-meta link-alter">
{{ partial "post-meta.html" . }}
</div>
- <div class="markdown-body" id="post-summary">
+ <div class="post-summary markdown-body">
{{ .Summary }}
</div>
- <div id="post-exlink">
- {{ partial "post-exlink.html" . }}
- </div>
</div>
{{ end }}
-<!-- START custom smart pagination -->
+<!-- custom smart pagination -->
{{ $offsetLinks := 2 }}
{{ $maxLinks := (add (mul $offsetLinks 2) 1) }}
{{ $lowerLimit := (add $offsetLinks 1) }}
{{ $upperLimit := (sub $paginator.TotalPages $offsetLinks) }}
{{ if gt $paginator.TotalPages 1 }}
-<ul id="pagination">
+<ul class="pagination">
{{ if ne $paginator.PageNumber 1 }}
<li class="pag-first">
- <a href="{{ $paginator.First.URL }}"><i class="fas fa-angle-double-left"></a>
+ <a href="{{ $paginator.First.URL }}"><i class="fas fa-angle-double-left"></i></a>
</li>
{{ end }}
{{ if $paginator.HasPrev }}
<li class="pag-previous">
- <a href="{{ $paginator.Prev.URL }}"><i class="fas fa-angle-left"></a>
+ <a href="{{ $paginator.Prev.URL }}"><i class="fas fa-angle-left"></i></a>
</li>
{{ end }}
{{ range $paginator.Pagers }}
@@ -76,6 +73,5 @@
{{ end }}
</ul>
{{ end }}
-<!-- END custom smart pagination -->
{{ end }} \ No newline at end of file
diff --git a/layouts/partials/comment-disqus.html b/layouts/partials/comment-disqus.html
index 81c9c68..539f8c7 100644
--- a/layouts/partials/comment-disqus.html
+++ b/layouts/partials/comment-disqus.html
@@ -1,5 +1,5 @@
{{ with .Site.Params.disqusShortname }}
-<div id="post-comment">
+<div class="post-comment">
<div id="disqus_thread"></div>
<script>
var disqus_config = function () {
diff --git a/layouts/partials/comment-utterances.html b/layouts/partials/comment-utterances.html
index b3edfbd..3e56201 100644
--- a/layouts/partials/comment-utterances.html
+++ b/layouts/partials/comment-utterances.html
@@ -1,9 +1,9 @@
{{ with .Site.Params.utterancesRepo }}
-<div id="post-loading">
+<div class="post-loading">
<i class="fas fa-circle-notch fa-spin"></i>
<p>{{ i18n "postCommentLoading" }}</p>
</div>
-<div id="post-comment">
+<div class="post-comment">
<script src="https://utteranc.es/client.js" repo="{{ . }}" issue-term="{{ $.Site.Params.utterancesIssueTerm }}" theme="{{ $.Site.Params.utterancesTheme }}" crossorigin="anonymous" async></script>
</div>
{{ end }} \ No newline at end of file
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index e4fcaae..3166a36 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,8 +1,10 @@
<header>
<div class="container-lg clearfix">
- <div class="col-12 p-3">
- <a id="main-title" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
- {{ with .Site.Params.subTitle }}<span id="sub-title">{{ . }}</span>{{ end }}
+ <div class="col-12 link-primary">
+ <a class="main-title" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
+ {{ with .Site.Params.subTitle }}
+ <span class="sub-title">{{ . }}</span>
+ {{ end }}
</div>
</div>
</header> \ No newline at end of file
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 894d5c3..839a87a 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -7,19 +7,19 @@
var commentCheckInterval = self.setInterval(checkUtterances, 500);
function checkUtterances() {
- commentStatus = $('#post-comment .utterances').attr('style');
+ commentStatus = $('.post-comment .utterances').attr('style');
if (commentStatus == undefined) {
commentLoadingTime += 1;
if (commentLoadingTime > 20) {
clearInterval(commentCheckInterval);
- $('#post-comment').hide();
- $('#post-loading p').text('{{ i18n "postCommentLoadingFailed" }}');
- $('#post-loading i').attr('class', 'far fa-times-circle');
+ $('.post-comment').hide();
+ $('.post-loading p').text('{{ i18n "postCommentLoadingFailed" }}');
+ $('.post-loading i').attr('class', 'far fa-times-circle');
}
return;
} else {
clearInterval(commentCheckInterval);
- $('#post-loading').hide();
+ $('.post-loading').hide();
}
}
});
@@ -29,7 +29,7 @@
<!-- toc smooth scroll & APlayer cjk html anchor fix -->
{{ if in .Site.Params.mainSections .Type }}
<script>
- $('#widget-toc a').click(function () {
+ $('.widget-toc a').click(function () {
$('html, body').animate({
scrollTop: $($(this).attr('href')).offset().top
});
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 1f6ce45..aa375f4 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,12 +1,12 @@
<!-- in-post toc -->
{{ if in .Site.Params.mainSections .Type }}
-<div id="widget-toc">
+<div class="widget-toc link-alter">
<h5>{{ i18n "sidebarToc" }}</h5>
{{.TableOfContents}}
</div>
{{ end }}
<!-- pages -->
-<div id="widget-pages">
+<div class="widget-pages link-alter">
<h5>{{ i18n "sidebarPages" }}</h5>
<ul>
{{ $currentPage := . }}
@@ -18,7 +18,7 @@
</ul>
</div>
<!-- tags -->
-<div id="widget-tags">
+<div class="widget-tags link-alter">
<h5>{{ i18n "sidebarTags" }}</h5>
<div>
{{ range .Site.Taxonomies.tags }}
@@ -29,7 +29,7 @@
</div>
</div>
<!-- links -->
-<div id="widget-links">
+<div class="widget-links link-alter">
<h5>{{ i18n "sidebarLinks" }}</h5>
<ul>
{{ range .Site.Menus.link }}
@@ -41,7 +41,7 @@
</div>
<!-- bgm.tv image chart -->
{{ with .Site.Params.bgmImageChart }}
-<div id="widget-bgm">
+<div class="widget-bgm">
<h5>{{ i18n "sidebarBangumiChart" }}</h5>
<img class="lazyload" src="{{ $.Site.Params.lazyPlaceholder }}" data-src="https://bgm.tv/chart/img/{{ . }}" />
</div>