Skip to content

Commit

Permalink
change layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ynrng committed Jun 4, 2024
1 parent 618995b commit 974a524
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 2 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ plugins:
# If you want to link only specific pages in your header, use this and add the path to the pages
# in order as they should show up.
header_pages:
- post-list.md
- douvk.md


Expand Down
61 changes: 61 additions & 0 deletions _layouts/dict.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
layout: base
---

<div class="home">
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}

{{ content }}


{% if site.paginate %}
{% assign posts = paginator.posts %}
{% else %}
{% assign posts = site.posts %}
{% endif %}


{%- if posts.size > 0 -%}
{%- if page.list_title -%}
<h2 class="post-list-heading">{{ page.list_title }}</h2>
{%- endif -%}
<ul class="post-list">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- for post in posts -%}
<li>
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</li>
{%- endfor -%}
</ul>

{% if site.paginate %}
<div class="pager">
<ul class="pagination">
{%- if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
{%- else %}
<li><div class="pager-edge"></div></li>
{%- endif %}
<li><div class="current-page">{{ paginator.page }}</div></li>
{%- if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
{%- else %}
<li><div class="pager-edge"></div></li>
{%- endif %}
</ul>
</div>
{%- endif %}

{%- endif -%}

</div>
61 changes: 61 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
layout: base
---

<div class="home">
{%- if page.title -%}
<h1 class="page-heading">{{ page.title }}</h1>
{%- endif -%}

{{ content }}


<!-- {% if site.paginate %}
{% assign posts = paginator.posts %}
{% else %}
{% assign posts = site.posts %}
{% endif %}
{%- if posts.size > 0 -%}
{%- if page.list_title -%}
<h2 class="post-list-heading">{{ page.list_title }}</h2>
{%- endif -%}
<ul class="post-list">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{%- for post in posts -%}
<li>
<span class="post-meta">{{ post.date | date: date_format }}</span>
<h3>
<a class="post-link" href="{{ post.url | relative_url }}">
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</li>
{%- endfor -%}
</ul>
{% if site.paginate %}
<div class="pager">
<ul class="pagination">
{%- if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li>
{%- else %}
<li><div class="pager-edge">•</div></li>
{%- endif %}
<li><div class="current-page">{{ paginator.page }}</div></li>
{%- if paginator.next_page %}
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li>
{%- else %}
<li><div class="pager-edge">•</div></li>
{%- endif %}
</ul>
</div>
{%- endif %}
{%- endif -%} -->

</div>
2 changes: 1 addition & 1 deletion _posts/2024-06-04-memos.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ categories:
<!-- > updated 04/Jun/2024 -->

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


### TAMP w/ mujoco :
Expand Down
1 change: 0 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ layout: home
- [Homebrew](envs/homebrew.md)
- [ROS 2](envs/ros.md)

-[test](_posts/2024-06-04-memos.md)
<!-- ```
.
├── _config.yml
Expand Down
5 changes: 5 additions & 0 deletions post-list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: dict
title: "All posts"
# categories: commands
---

0 comments on commit 974a524

Please sign in to comment.