Skip to content

Commit

Permalink
ui 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
JiYouMCC committed Sep 26, 2024
1 parent c40ecd4 commit c302da7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 29 deletions.
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="/guestbook"><i data-feather="message-circle"></i>&nbsp;留言</a>
<a class="nav-link" href="/guestbook"><i data-feather="message-square"></i>&nbsp;留言</a>
</li>
</ul>
<form class="d-flex" role="search" action="/search/" method="get">
Expand Down
3 changes: 1 addition & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ <h1 data-pagefind-meta="title" class="mb-4">{{ page.title }}</h1>
<i data-feather="calendar"></i>{{ page.date | date: "%Y-%m-%d %H:%M:%S" }}
</span>
{% if page.categories.size > 0 %}&nbsp;
<i data-feather="folder"></i>
{% for cat in page.categories %}{% if cat != 'sticky' %}&nbsp;<a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="/type#{{ cat }}">{{ cat }}{% endif %}</a>{% endfor %}{% endif %}
<i data-feather="folder"></i>{% for cat in page.categories %}{% if cat != 'sticky' %}<a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="/type#{{ cat }}">{{ cat }}{% endif %}</a>{% endfor %}{% endif %}
{% if page.tags.size > 0 %}&nbsp;<i data-feather="tag"></i>&nbsp;{% for tag in page.tags %}<a href="/tag#{{ tag }}"><span class="badge text-bg-primary">{{ tag }}</span></a>
{% endfor %}{% endif %}
<article id="blog_content" class="p-2 mt-2" data-bs-spy="scroll">
Expand Down
22 changes: 6 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ <h2 class="mb-0 d-inline">
</a>
</h2>
<span class="fw-bold text-nowrap">
<i data-feather="calendar"></i>&nbsp;
{{ post.date | date: "%Y-%m-%d %H:%M:%S"}}
<i data-feather="calendar"></i>{{ post.date | date: "%Y-%m-%d %H:%M:%S"}}
</span>
</div>
<article class="card-body">
Expand All @@ -26,17 +25,13 @@ <h2 class="mb-0 d-inline">
<div class="card-footer">
{% if post.issue %}
<span>
<i data-feather="message-circle"></i>&nbsp;
<a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ post.url | prepend: site.baseurl }}#comments">评论</a>
<i data-feather="message-square"></i><a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ post.url | prepend: site.baseurl }}#comments">评论</a>
<span post-id="{{ post.id }}" comments-count="{{ post.issue }}" class="badge rounded-pill text-bg-primary"></span>&nbsp;
</span>
{% endif %}
{% if post.categories.size > 0 %}
<span>
<i data-feather="folder"></i>
{% for cat in post.categories %}
{% if cat != 'sticky' %}
&nbsp;<a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="/type#{{ cat }}">{{ cat }}</a>
<i data-feather="folder"></i>{% for cat in post.categories %}{% if cat != 'sticky' %}<a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="/type#{{ cat }}">{{ cat }}</a>
{% endif %}
{% endfor %}
</span>&nbsp;
Expand All @@ -63,8 +58,7 @@ <h2 class="mb-0 d-inline">
</a>
</h2>
<span class="fw-bold text-nowrap">
<i data-feather="calendar"></i>&nbsp;
{{ post.date | date: "%Y-%m-%d %H:%M:%S"}}
<i data-feather="calendar"></i>{{ post.date | date: "%Y-%m-%d %H:%M:%S"}}
</span>
</div>
<div class="card-body">
Expand All @@ -75,17 +69,13 @@ <h2 class="mb-0 d-inline">
<div class="card-footer">
{% if post.issue %}
<span>
<i data-feather="message-circle"></i>&nbsp;
<a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ post.url | prepend: site.baseurl }}#comments">评论</a>
<i data-feather="message-square"></i><a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ post.url | prepend: site.baseurl }}#comments">评论</a>
<span post-id="{{ post.id }}" comments-count="{{ post.issue }}" class="badge rounded-pill text-bg-primary"></span>&nbsp;
</span>
{% endif %}
{% if post.categories.size > 0 %}
<span>
<i data-feather="folder"></i>
{% for cat in post.categories %}
{% if cat != 'sticky' %}
&nbsp;<a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="/type#{{ cat }}">{{ cat }}</a>
<i data-feather="folder"></i>{% for cat in post.categories %}{% if cat != 'sticky' %}<a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="/type#{{ cat }}">{{ cat }}</a>
{% endif %}
{% endfor %}
</span>&nbsp;
Expand Down
6 changes: 2 additions & 4 deletions tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@
<tr>
<td><a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></td>
<td class="fw-bold">
<i data-feather="calendar"></i>&nbsp;
{{ post.date | date: "%Y-%m-%d"}}
<i data-feather="calendar"></i>{{ post.date | date: "%Y-%m-%d"}}
</td>
<td class="text-center">
{% for cat in post.categories %}
<i data-feather="folder"></i>&nbsp;
<a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="/type#{{ cat }}">{{ cat }}</a>
<i data-feather="folder"></i><a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="/type#{{ cat }}">{{ cat }}</a>
{% endfor %}</td>
</tr>
{% endfor %}
Expand Down
9 changes: 3 additions & 6 deletions type.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
<a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ post.url }}">{{ post.title }}</a>
</td>
<td class="fw-bold">
<i data-feather="calendar"></i>&nbsp;
{{ post.date | date: "%Y-%m-%d"}}
<i data-feather="calendar"></i>{{ post.date | date: "%Y-%m-%d"}}
</td>
</tr>
{% endif %}
Expand All @@ -44,8 +43,7 @@
<td class="text-center"></td>
<td><a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ post.url }}">{{ post.title }}</a></td>
<td class="fw-bold">
<i data-feather="calendar"></i>&nbsp;
{{ post.date | date: "%Y-%m-%d"}}
<i data-feather="calendar"></i>{{ post.date | date: "%Y-%m-%d"}}
</td>
</tr>
{% endunless %}
Expand All @@ -67,8 +65,7 @@
<td class="text-center">{% if post.is_sticky %}<span class="label label-default">置顶</span>{% endif %}</td>
<td><a class="link-underline link-underline-opacity-0 link-underline-opacity-100-hover" href="{{ post.url }}">{{ post.title }}</a></td>
<td class="fw-bold">
<i data-feather="calendar"></i>&nbsp;
{{ post.date | date: "%Y-%m-%d"}}
<i data-feather="calendar"></i>{{ post.date | date: "%Y-%m-%d"}}
</td>
</tr>
{% endfor %}
Expand Down

0 comments on commit c302da7

Please sign in to comment.