Skip to content

Commit 974a524

Browse files
committed
change layouts
1 parent 618995b commit 974a524

File tree

6 files changed

+129
-2
lines changed

6 files changed

+129
-2
lines changed

Diff for: _config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ plugins:
2828
# If you want to link only specific pages in your header, use this and add the path to the pages
2929
# in order as they should show up.
3030
header_pages:
31+
- post-list.md
3132
- douvk.md
3233

3334

Diff for: _layouts/dict.html

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
layout: base
3+
---
4+
5+
<div class="home">
6+
{%- if page.title -%}
7+
<h1 class="page-heading">{{ page.title }}</h1>
8+
{%- endif -%}
9+
10+
{{ content }}
11+
12+
13+
{% if site.paginate %}
14+
{% assign posts = paginator.posts %}
15+
{% else %}
16+
{% assign posts = site.posts %}
17+
{% endif %}
18+
19+
20+
{%- if posts.size > 0 -%}
21+
{%- if page.list_title -%}
22+
<h2 class="post-list-heading">{{ page.list_title }}</h2>
23+
{%- endif -%}
24+
<ul class="post-list">
25+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
26+
{%- for post in posts -%}
27+
<li>
28+
<span class="post-meta">{{ post.date | date: date_format }}</span>
29+
<h3>
30+
<a class="post-link" href="{{ post.url | relative_url }}">
31+
{{ post.title | escape }}
32+
</a>
33+
</h3>
34+
{%- if site.show_excerpts -%}
35+
{{ post.excerpt }}
36+
{%- endif -%}
37+
</li>
38+
{%- endfor -%}
39+
</ul>
40+
41+
{% if site.paginate %}
42+
<div class="pager">
43+
<ul class="pagination">
44+
{%- if paginator.previous_page %}
45+
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
46+
{%- else %}
47+
<li><div class="pager-edge"></div></li>
48+
{%- endif %}
49+
<li><div class="current-page">{{ paginator.page }}</div></li>
50+
{%- if paginator.next_page %}
51+
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
52+
{%- else %}
53+
<li><div class="pager-edge"></div></li>
54+
{%- endif %}
55+
</ul>
56+
</div>
57+
{%- endif %}
58+
59+
{%- endif -%}
60+
61+
</div>

Diff for: _layouts/home.html

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
layout: base
3+
---
4+
5+
<div class="home">
6+
{%- if page.title -%}
7+
<h1 class="page-heading">{{ page.title }}</h1>
8+
{%- endif -%}
9+
10+
{{ content }}
11+
12+
13+
<!-- {% if site.paginate %}
14+
{% assign posts = paginator.posts %}
15+
{% else %}
16+
{% assign posts = site.posts %}
17+
{% endif %}
18+
19+
20+
{%- if posts.size > 0 -%}
21+
{%- if page.list_title -%}
22+
<h2 class="post-list-heading">{{ page.list_title }}</h2>
23+
{%- endif -%}
24+
<ul class="post-list">
25+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
26+
{%- for post in posts -%}
27+
<li>
28+
<span class="post-meta">{{ post.date | date: date_format }}</span>
29+
<h3>
30+
<a class="post-link" href="{{ post.url | relative_url }}">
31+
{{ post.title | escape }}
32+
</a>
33+
</h3>
34+
{%- if site.show_excerpts -%}
35+
{{ post.excerpt }}
36+
{%- endif -%}
37+
</li>
38+
{%- endfor -%}
39+
</ul>
40+
41+
{% if site.paginate %}
42+
<div class="pager">
43+
<ul class="pagination">
44+
{%- if paginator.previous_page %}
45+
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
46+
{%- else %}
47+
<li><div class="pager-edge">•</div></li>
48+
{%- endif %}
49+
<li><div class="current-page">{{ paginator.page }}</div></li>
50+
{%- if paginator.next_page %}
51+
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
52+
{%- else %}
53+
<li><div class="pager-edge">•</div></li>
54+
{%- endif %}
55+
</ul>
56+
</div>
57+
{%- endif %}
58+
59+
{%- endif -%} -->
60+
61+
</div>

Diff for: _posts/2024-06-04-memos.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ categories:
99
<!-- > updated 04/Jun/2024 -->
1010

1111
### install nvidia driver on self compiled rt ubuntu kernel:
12-
https://gist.github.com/ynrng/cb0de1bd397e8ec90e22ea3e0bbd202e
12+
[gist](https://gist.github.com/ynrng/cb0de1bd397e8ec90e22ea3e0bbd202e)
1313

1414

1515
### TAMP w/ mujoco :

Diff for: index.md

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ layout: home
3535
- [Homebrew](envs/homebrew.md)
3636
- [ROS 2](envs/ros.md)
3737

38-
-[test](_posts/2024-06-04-memos.md)
3938
<!-- ```
4039
.
4140
├── _config.yml

Diff for: post-list.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: dict
3+
title: "All posts"
4+
# categories: commands
5+
---

0 commit comments

Comments
 (0)