自定义文章字体大小未生效修复
This commit is contained in:
parent
daa7dcb900
commit
5c29cd2e94
@ -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">
|
<button class="btn btn-invisible circle" onclick="window.open('{{ blogBase["postSourceUrl"] }}')" title="Issue">
|
||||||
<svg class="octicon" width="16" height="16">
|
<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>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button id="changeTheme" class="btn btn-invisible circle" onclick="modeSwitch()" title="{{ i18n['switchTheme'] }}">
|
<button id="changeTheme" class="btn btn-invisible circle" onclick="modeSwitch()" title="{{ i18n['switchTheme'] }}">
|
||||||
<svg class="octicon" width="16" height="16" >
|
<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>
|
</svg>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ h1 a:not([href]){color:inherit;text-decoration:none;vertical-align: bottom;font-
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="markdown-body">
|
<div class="markdown-body" id="postBody">
|
||||||
{{ blogBase['postBody'] }}
|
{{ blogBase['postBody'] }}
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-block" type="button" onclick="openComments()" id="cmButton" value="{{ blogBase['repoName'] }}">{{ i18n['comments'] }}</button>
|
<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 %}
|
{% block script %}
|
||||||
<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(){
|
function openComments(){
|
||||||
cm=document.getElementById("comments");
|
cm=document.getElementById("comments");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user