Skip to content

Commit

Permalink
Adjust site font
Browse files Browse the repository at this point in the history
  • Loading branch information
peng1999 committed Mar 2, 2024
1 parent c26d354 commit 9deb368
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 8 deletions.
36 changes: 30 additions & 6 deletions sass/custom.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,33 @@
main .post .hashtag {
color: gray;
font-size: 70%;
background: none;
#header .logo {
font-family: "Noto Serif Display", serif;
font-weight: 400;
font-style: normal;
}
main .post {
font-family: "Noto Serif SC", serif;
font-weight: 400;
font-style: normal;

main .post pre code {
color: unset;
.post-content h1 {
font-size: 24px;
}

h1, h2, h3, h4, h5, h6, h1.post__title {
font-family: "Noto Sans SC", sans-serif;
font-weight: 320;
font-style: normal;
}

.hashtag {
color: gray;
font-size: 70%;
background: none;
}

pre code {
color: unset;
}
}



4 changes: 4 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% extends "even/templates/index.html" %}

{% block css %}
{% include "style.html" %}
{% endblock css %}

{% block extra_head %}
<meta name='description' content="pg999w's blog">
{% endblock extra_head %}
3 changes: 1 addition & 2 deletions templates/page.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{% extends "even/templates/page.html" %}

{% block css %}
<link rel="stylesheet" href="{{ get_url(path="site.css", trailing_slash=false) }}">
<link rel="stylesheet" href="{{ get_url(path="custom.css", trailing_slash=false) }}">
{% include "style.html" %}
{% endblock css %}

{% block extra_head %}
Expand Down
7 changes: 7 additions & 0 deletions templates/style.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<link rel="stylesheet" href="{{ get_url(path="site.css", trailing_slash=false) }}">
<link rel="stylesheet" href="{{ get_url(path="custom.css", trailing_slash=false) }}">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:[email protected]&family=Noto+Serif+Display:ital,wght@0,100..900;1,100..900&family=Noto+Serif+SC:wght@400;700&display=swap" rel="stylesheet">

0 comments on commit 9deb368

Please sign in to comment.