自定义文章字体大小未生效修复

This commit is contained in:
Meekdai 2023-08-12 21:01:11 +08:00
parent daa7dcb900
commit 5c29cd2e94

View File

@ -23,13 +23,13 @@ h1 a:not([href]){color:inherit;text-decoration:none;vertical-align: bottom;font-
<button class="btn btn-invisible circle" onclick="window.open('{{ blogBase["postSourceUrl"] }}')" title="Issue">
<svg class="octicon" width="16" height="16">
<path id="pathIssue" fill-rule="evenodd"></path>
<path id="pathIssue" fill-rule="evenodd" d="{{ IconList['github'] }}"></path>
</svg>
</button>
<button id="changeTheme" class="btn btn-invisible circle" onclick="modeSwitch()" title="{{ i18n['switchTheme'] }}">
<svg class="octicon" width="16" height="16" >
<path id="themeSwitch" fill-rule="evenodd"></path>
<path id="themeSwitch" fill-rule="evenodd" d="{{ IconList['home'] }}"></path>
</svg>
</button>
@ -37,7 +37,7 @@ h1 a:not([href]){color:inherit;text-decoration:none;vertical-align: bottom;font-
{% endblock %}
{% block content %}
<div class="markdown-body">
<div class="markdown-body" id="postBody">
{{ blogBase['postBody'] }}
</div>
<button class="btn btn-block" type="button" onclick="openComments()" id="cmButton" value="{{ blogBase['repoName'] }}">{{ i18n['comments'] }}</button>
@ -46,8 +46,8 @@ h1 a:not([href]){color:inherit;text-decoration:none;vertical-align: bottom;font-
{% block script %}
<script>
document.getElementById("pathHome").setAttribute("d",IconList["home"]);
document.getElementById("pathIssue").setAttribute("d",IconList["github"]);
if(blogBase["fontSize"]!=""){document.getElementById("postBody").setAttribute("style","font-size:"+blogBase["fontSize"])}
function openComments(){
cm=document.getElementById("comments");