File tree 3 files changed +55
-16
lines changed
3 files changed +55
-16
lines changed Original file line number Diff line number Diff line change 5
5
< article class ="post ">
6
6
< header >
7
7
< h1 > {{ page.title }}</ h1 >
8
+ < div class ="subtitle ">
9
+ < time pubdate datetime ="{{ page.date | date_to_xmlschema }} ">
10
+ {{ page.date | date: "%B %-d, %Y" }}
11
+ </ time >
8
12
9
- < time pubdate datetime ="{{ page.date | date_to_xmlschema }} "> {{ page.date | date: "%B %-d, %Y" }}</ time >
13
+ < div class ="tags ">
14
+ {% for tag in page.tag %}
15
+ < div class ="tag "> < span > {{ tag }}</ span > </ div >
16
+ {% endfor %}
17
+ </ div >
18
+ </ div >
10
19
{% include authors.html authors=page.author compact=true %}
11
20
</ header >
12
21
Original file line number Diff line number Diff line change @@ -570,21 +570,41 @@ article {
570
570
padding-top : 0em ;
571
571
}
572
572
573
- time {
574
- display : block ;
575
- text-transform : uppercase ;
576
- font-size : 14px ;
577
- font-weight : 400 ;
578
- color : var (--color-figure-gray-tertiary );
579
- margin-right : 3em ;
580
- margin-bottom : 1.25em ;
581
- }
573
+ .subtitle {
574
+ display : flex ;
575
+ justify-content : space-between ;
576
+ margin-bottom : 1em ;
582
577
583
- .tags {
584
- display : block ;
585
- font-size : 12px ;
586
- font-weight : 400 ;
587
- margin-top : 0 ;
578
+ time {
579
+ flex-shrink : 0 ;
580
+ margin-top : 0.2em + 0.15em ;
581
+ text-transform : uppercase ;
582
+ font-size : 0.8em ;
583
+ font-weight : 400 ;
584
+ color : var (--color-figure-gray-tertiary );
585
+ }
586
+
587
+ .tags {
588
+ display : flex ;
589
+ flex-direction : row ;
590
+ /* Allow tags to wrap to additional lines */
591
+ flex-wrap : wrap ;
592
+ /* Add a small gap between additional lines */
593
+ gap : 0.4em ;
594
+ /* Align to trailing edge */
595
+ justify-content : flex-end ;
596
+
597
+ .tag {
598
+ text-transform : uppercase ;
599
+ font-size : 0.8em ;
600
+ font-weight : 400 ;
601
+ margin-left : 0.5em ; /* Adjust margin as needed for spacing between tags */
602
+ color : var (--color-figure-gray-tertiary );
603
+ border : 0.15em solid var (--color-nav-rule );
604
+ border-radius : 0.5rem ;
605
+ padding : 0.15em 0.4em ;
606
+ }
607
+ }
588
608
}
589
609
}
590
610
Original file line number Diff line number Diff line change 8
8
< article id ="{{ post.id }} " class ="summary ">
9
9
< header >
10
10
< h2 class ="title "> < a href ="{{ post.url }} "> {{ post.title }}</ a > </ h2 >
11
- < time pubdate datetime ="{{ post.date | date_to_xmlschema }} "> {{ post.date | date: "%B %-d, %Y" }}</ time >
11
+ < div class ="subtitle ">
12
+ < time pubdate datetime ="{{ post.date | date_to_xmlschema }} ">
13
+ {{ post.date | date: "%B %-d, %Y" }}
14
+ </ time >
15
+
16
+ < div class ="tags ">
17
+ {% for tag in post.tag %}
18
+ < div class ="tag "> < span > {{ tag }}</ span > </ div >
19
+ {% endfor %}
20
+ </ div >
21
+ </ div >
12
22
</ header >
13
23
< section class ="excerpt ">
14
24
{{ post.excerpt }}
You can’t perform that action at this time.
0 commit comments