Skip to content

Commit

Permalink
更新样式
Browse files Browse the repository at this point in the history
  • Loading branch information
movsb committed Mar 9, 2024
1 parent bebb066 commit ce6c432
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions theme/blog/styles/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,11 @@ blockquote {
border-bottom: 1px solid var(--border-color);
}
}

.entry {
h2::before { content: "## ";}
h3::before { content: "### ";}
h4::before { content: "#### ";}
h5::before { content: "##### ";}
h6::before { content: "###### ";}
}
4 changes: 2 additions & 2 deletions theme/blog/templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ <h1 class="title clearfix"><a href="{{ .Link }}">{{ .Title }}</a></h1>
<span class="date" title="发表时间:{{.DateString}}
修改时间:{{.ModifiedString}}">{{ .DateString }}</span>
{{ with (index .Metas "weixin") }}
<span class="weixin"><a class="no-external" href="https://mp.weixin.qq.com/s/{{.}}" target="_blank">微信</a></span>上查看
<span><span class="weixin"><a class="no-external" href="https://mp.weixin.qq.com/s/{{.}}" target="_blank">微信</a></span>上查看</span>
{{ end }}
阅读次数:<span class="view">{{ .PageView }}</span>
<span>阅读次数:<span class="view">{{ .PageView }}</span></span>
</div>
{{raw `<!--article begins here-->`}}
{{ .Content }}
Expand Down

0 comments on commit ce6c432

Please sign in to comment.