Skip to content

Commit 6cb132f

Browse files
committed
format list items
1 parent 38f80c7 commit 6cb132f

File tree

5 files changed

+38
-12
lines changed

5 files changed

+38
-12
lines changed

_includes/category-posts.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1+
<style>
2+
.forlast {
3+
margin-bottom: 0px !important;
4+
}
5+
</style>
6+
17
<!-- post list -->
28
<div class="archive-group">
39
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
410

511
<ul class="paginator-list">
612
<div id="container_out">
713
{% for post in site.categories[include.category] %}
8-
<li>
14+
{% if forloop.last %}
15+
<li class="list_item forlast">
16+
{% else %}
17+
<li class="list_item">
18+
{% endif %}
919
<div id="container_in">
1020
<a href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a>
11-
<span> {{ post.date | date: date_format }} </span>
21+
<span id="date"> {{ post.date | date: date_format }} </span>
1222
</div>
1323
</li>
1424
{% endfor %}

_includes/paginator-list.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
<!-- display all posts -->
2+
<style>
3+
.forlast {
4+
margin-bottom: 0px !important;
5+
}
6+
</style>
7+
28
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
39

410
<ul class="paginator-list">
511
<div id="container_out">
612
{% for post in include.src.posts %}
7-
<li>
13+
{% if forloop.last %}
14+
<li class="list_item forlast">
15+
{% else %}
16+
<li class="list_item">
17+
{% endif %}
818
<div id="container_in">
919
<div id="list_in">
1020
<a href="{{ post.url | relative_url }}"> {{ post.title | escape }} </a>

_includes/social.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{%- endif -%}
1313

1414
{%- if site.youtube_username -%}
15-
<a href="https://youtube.com/{{ site.youtube_username| cgi_escape | escape }}">
15+
<a href="https://m.youtube.com/@{{ site.youtube_username| cgi_escape | escape }}">
1616
<img class="svg-icon" src="/assets/icons/youtube-red.svg">
1717
</a>
1818
{%- endif -%}

_sass/pagination.scss

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
display: flex;
44
justify-content: center;
55

6+
list-style-type: circle;
7+
//list-style: none;
8+
69
#container_out {
710
width: 100%;
811
}
@@ -17,10 +20,10 @@
1720
display: flex;
1821
flex-direction: column;
1922
}
20-
21-
li {
22-
margin-bottom: 10px;
23-
margin-left: 10px;
23+
24+
.list_item {
25+
margin-bottom: 20px;
26+
//margin-left: 10px;
2427
}
2528

2629
#categories {
@@ -36,7 +39,7 @@
3639
}
3740

3841

39-
@media (max-width: $on-laptop) {
42+
@media (max-width: $on-palm) {
4043
.paginator-list {
4144
justify-content: left;
4245
#container_out {

_sass/projects.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.project-list {
2+
//list-style: none;
3+
24
#category {
35
font-size: 24px;
46
}
@@ -7,6 +9,7 @@
79
display: flex;
810
flex-direction: row;
911
justify-content: space-between;
12+
color: $grey-color-dark;
1013
}
1114

1215
.button {
@@ -36,12 +39,12 @@
3639
}
3740

3841
#list_out {
39-
padding-bottom: 10px;
40-
margin-left: 10px;
42+
padding-bottom: 20px;
43+
//margin-left: 10px;
4144
margin-right: 10px;
4245
}
4346

4447
#content {
45-
padding-top: 10px;
48+
padding-top: 15px;
4649
}
4750
}

0 commit comments

Comments
 (0)