File tree 3 files changed +40
-25
lines changed
3 files changed +40
-25
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,16 @@ main {
151
151
margin : 10px ;
152
152
}
153
153
154
+ .tag-title {
155
+ margin : 10px ;
156
+ padding : 2px 10px ;
157
+ color : # fff ;
158
+ background : # 9e9e9e ;
159
+ border-radius : 5px ;
160
+ display : inline-block;
161
+ }
162
+
163
+
154
164
/* FOOTER */
155
165
.site-footer {
156
166
max-width : 100% ;
Original file line number Diff line number Diff line change 7
7
< title > < ?= $vars-> {title} ?> </ title >
8
8
< link rel ="icon " href ="/img/favicon.ico ">
9
9
< link rel ="canonical " href ="<?= $vars->{url} ?> ">
10
- < link href ="TODO " rel ="stylesheet ">
10
+ < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css ">
11
+ < link rel ="stylesheet " href ="/css/main.css ">
11
12
</ head >
12
13
< body >
13
- < h1 > < ?= $vars-> {tag} ?> </ h1 >
14
- < ul >
14
+ < ?= $include-> ('./include/header.html') ?>
15
+ < main >
16
+ < h1 class ="tag-title "> #< ?= $vars-> {tag} ?> </ h1 >
15
17
? for (@{$vars-> {files}}) {
16
- < li >
17
- < a href ="<?= $_->{href} ?> ">
18
- < ?= $_-> {title} ?>
19
- </ a >
20
- </ li >
18
+ < div class ="card ">
19
+ ? if ($_-> {matter}-> exists && $_-> {matter}-> date ) {
20
+ < div class ="card-date "> < ?= $_-> {matter}-> date ?> </ div >
21
+ ? }
22
+ < a href ="<?= $_->{href} ?> ">
23
+ < div class ="card-title "> < ?= $_-> {title} ?> </ div >
24
+ </ a >
25
+ ? if ($_-> {matter}-> exists && $_-> {matter}-> author) {
26
+ < div class ="card-author "> < ?= $_-> {matter}-> author ?> </ div >
27
+ ? }
28
+ </ div >
21
29
? }
22
- </ ul >
23
-
24
- < a href ="/tag "> タグ一覧</ a >
25
- < a href ="/ "> HOME</ a >
26
-
30
+ </ main >
31
+ < ?= $include-> ('./include/footer.html') ?>
27
32
</ body >
28
33
</ html >
Original file line number Diff line number Diff line change 7
7
< title > タグ一覧</ title >
8
8
< link rel ="icon " href ="/img/favicon.ico ">
9
9
< link rel ="canonical " href ="<?= $vars->{url} ?> ">
10
- < link href ="TODO " rel ="stylesheet ">
10
+ < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/npm/water.css@2/out/water.min.css ">
11
+ < link rel ="stylesheet " href ="/css/main.css ">
11
12
</ head >
12
13
< body >
13
- < h1 > タグ一覧</ h1 >
14
- < ul >
14
+ < ?= $include-> ('./include/header.html') ?>
15
+ < main >
16
+ < h1 class ="category-title "> タグ一覧</ h1 >
15
17
? for my $tag (@{$vars-> {tags}}) {
16
- < li >
17
- < a href =< ?= $vars- > {tag_url_path}-> ($tag) ?> >
18
- < ?= $tag ?>
19
- </ a >
20
- </ li >
18
+ < div class =" card " >
19
+ < a href =" <?= $vars->{tag_url_path}->($tag) ?> " >
20
+ < div class =" card-title " > < ?= $tag ?> </ div >
21
+ </ a >
22
+ </ div >
21
23
? }
22
- </ ul >
23
-
24
- < a href ="/ "> HOME</ a >
25
-
24
+ </ main >
25
+ < ?= $include-> ('./include/footer.html') ?>
26
26
</ body >
27
27
</ html >
You can’t perform that action at this time.
0 commit comments