Update post.html
This commit is contained in:
parent
a1d6eeeb71
commit
1db7bb30bb
@ -41,14 +41,16 @@ h1 a:not([href]){color:inherit;text-decoration:none;vertical-align: bottom;font-
|
||||
<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>
|
||||
<button class="btn btn-block" type="button" onclick="openComments()" id="cmButton">{{ i18n['comments'] }}</button>
|
||||
<div class="comments" id="comments"></div>
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
<script>
|
||||
|
||||
if(blogBase["fontSize"]!=""){document.getElementById("postBody").setAttribute("style","font-size:"+blogBase["fontSize"])}
|
||||
{% if blogBase['fontSize']!="" -%}
|
||||
document.getElementById("postBody").setAttribute("style","font-size:{{ blogBase['fontSize'] }}");
|
||||
{%- endif %}
|
||||
|
||||
function openComments(){
|
||||
cm=document.getElementById("comments");
|
||||
@ -60,7 +62,7 @@ function openComments(){
|
||||
|
||||
script=document.createElement("script");
|
||||
script.setAttribute("src","https://utteranc.es/client.js");
|
||||
script.setAttribute("repo",cmButton.value);
|
||||
script.setAttribute("repo","{{ blogBase['repoName'] }}");
|
||||
script.setAttribute("issue-term","title");
|
||||
if(localStorage.getItem("meek_theme")=="dark"){script.setAttribute("theme","dark-blue");}
|
||||
else{script.setAttribute("theme","github-light");}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user