aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-04-24 22:17:39 +0900
committernsfisis <nsfisis@gmail.com>2022-04-24 22:17:39 +0900
commit5b55bdeeac3c6cf112f9b1f4a34748f87cc1a850 (patch)
tree2ef608b387ef84ec6dc4e45ae8e3b0a7c86b1f9e
parentbea3b8b1785390077c041d7a8d77a079650d42a8 (diff)
downloadnsfisis.github.io-5b55bdeeac3c6cf112f9b1f4a34748f87cc1a850.tar.gz
nsfisis.github.io-5b55bdeeac3c6cf112f9b1f4a34748f87cc1a850.tar.zst
nsfisis.github.io-5b55bdeeac3c6cf112f9b1f4a34748f87cc1a850.zip
style: remove style "first-entry"
-rw-r--r--docs/index.html2
-rw-r--r--docs/style.css26
-rw-r--r--themes/mypaper/layouts/_default/list.html4
-rw-r--r--themes/mypaper/static/style.css26
4 files changed, 2 insertions, 56 deletions
diff --git a/docs/index.html b/docs/index.html
index 960a5f5..7f4ae07 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -28,7 +28,7 @@
</header>
<main class="main">
-<article class="first-entry">
+<article class="post-entry">
<header class="entry-header">
<h2>term-banner: ターミナルにバナーを表示するツールを書いた</h2>
</header>
diff --git a/docs/style.css b/docs/style.css
index dd7407a..3430aaf 100644
--- a/docs/style.css
+++ b/docs/style.css
@@ -198,32 +198,6 @@ img {
}
/* Post entry
-------------------------------------------------- */
-.first-entry {
- position: relative;
- display: flex;
- flex-direction: column;
- justify-content: center;
- height: 320px;
- margin-bottom: var(--header-height);
-}
-.first-entry .entry-header {
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
-}
-.first-entry .entry-header h2 {
- font-size: 40px;
-}
-.first-entry .entry-content {
- margin-top: 14px;
- margin-bottom: 14px;
- font-size: 16px;
- -webkit-line-clamp: 3;
-}
-.first-entry .entry-footer {
- font-size: 14px;
-}
.post-entry {
position: relative;
margin-bottom: var(--gap);
diff --git a/themes/mypaper/layouts/_default/list.html b/themes/mypaper/layouts/_default/list.html
index f632c09..7cf7cd0 100644
--- a/themes/mypaper/layouts/_default/list.html
+++ b/themes/mypaper/layouts/_default/list.html
@@ -10,9 +10,7 @@
{{- range $index, $page := $paginator.Pages }}
{{- $class := "post-entry" }}
-{{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }}
-{{- $class = "first-entry" }}
-{{- else if .Data.Term }}
+{{- if .Data.Term }}
{{- $class = "post-entry tag-entry" }}
{{- end }}
<article class="{{ $class }}">
diff --git a/themes/mypaper/static/style.css b/themes/mypaper/static/style.css
index dd7407a..3430aaf 100644
--- a/themes/mypaper/static/style.css
+++ b/themes/mypaper/static/style.css
@@ -198,32 +198,6 @@ img {
}
/* Post entry
-------------------------------------------------- */
-.first-entry {
- position: relative;
- display: flex;
- flex-direction: column;
- justify-content: center;
- height: 320px;
- margin-bottom: var(--header-height);
-}
-.first-entry .entry-header {
- overflow: hidden;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
-}
-.first-entry .entry-header h2 {
- font-size: 40px;
-}
-.first-entry .entry-content {
- margin-top: 14px;
- margin-bottom: 14px;
- font-size: 16px;
- -webkit-line-clamp: 3;
-}
-.first-entry .entry-footer {
- font-size: 14px;
-}
.post-entry {
position: relative;
margin-bottom: var(--gap);