Skip to content

Commit c9fb780

Browse files
committed
去除文章界面的多余装饰
1 parent 1a6b9c0 commit c9fb780

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎_layouts/default.html‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<header>
1818
<h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repository_name }}</a></h1>
1919

20-
{% if site.logo %}
20+
{% if site.logo and page.layout != "post" %}
2121
<img src="{{site.logo | relative_url}}" alt="Logo" />
2222
{% endif %}
2323

@@ -27,11 +27,11 @@ <h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repo
2727
<p class="view"><a href="{{ site.github.repository_url }}">View the Project on GitHub <small>{{ site.github.repository_nwo }}</small></a></p>
2828
{% endif %}
2929

30-
{% if site.github.is_user_page %}
30+
{% if site.github.is_user_page and page.layout != "post" %}
3131
<p class="view"><a href="{{ site.github.owner_url }}">View My GitHub Profile</a></p>
3232
{% endif %}
3333

34-
{% if site.show_downloads %}
34+
{% if site.show_downloads and page.layout != "post" %}
3535
<ul class="downloads">
3636
<li><a href="{{ site.github.zip_url }}">Download <strong>ZIP File</strong></a></li>
3737
<li><a href="{{ site.github.tar_url }}">Download <strong>TAR Ball</strong></a></li>

0 commit comments

Comments
 (0)