Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
wh.huajieyu committed May 14, 2024
1 parent 57c3b36 commit 9d784c4
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 346 deletions.
6 changes: 3 additions & 3 deletions _includes/post_list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%-if include.category-%}
{%-assign posts = site.categories[include.category]-%}
{%-assign posts = site.categories[include.category]-%}
{%-else-%}
{%-assign posts = site.posts-%}
{%-endif-%}
Expand All @@ -15,11 +15,11 @@
{%- for post in posts limit: include.limit -%}
<li>
<span>{{- post.date | date: site.theme_config.date_format -}}</span>
<a href="{{ post.url | relative_url }}">{{ post.title | downcase }}</a>
<a class="post-title" href="{{ post.url | relative_url }}">{{ post.title | downcase }}</a>
</li>
{%- endfor -%}
{%- if include.show_more and limit_exceeded -%}
<li><a href="{{ include.show_more_url }}">{{ include.show_more_text | default: "Show more..." }}</a></li>
{%- endif -%}
</ul>
{%- endif -%}
{%- endif -%}
4 changes: 3 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
>
</p>

<h1>{{ page.title }}</h1>
<h1 class="post_title">
<a href="javascript:;">{{ page.title }}</a>
</h1>

{{ content }}
</article>
Expand Down
15 changes: 10 additions & 5 deletions _sass/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,24 @@ body {
font-size: 1.2rem;
}

a {
color: #3354AA;
text-decoration: none;
background: transparent;
}

code {
/* 更改code字体 */
font-family: 'JetBrains Mono', Times, Menlo, Monaco, Consolas, Andale Mono, lucida console, Courier New, monospace;
font-size: 1.05rem;
font-size: 0.9rem;
}


.post-meta { text-align: right; }

.language-plaintext {
color: #f92672;
/* color: #f92672; */
color: #B94A48;
font-weight: bold;
padding: 0 5px;
}
Expand Down Expand Up @@ -117,6 +125,3 @@ code {
}
}
/* end custom scss snippet */



Loading

0 comments on commit 9d784c4

Please sign in to comment.