diff --git a/_layouts/post.html b/_layouts/post.html index 1febea8..d3b1982 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -75,7 +75,7 @@ layout: default {% include toc.html html=content sanitize=true h_max=3 %} -{% if post.layout == "encrypt" %} {{content}} {% else %}
{% include anchor_headings.html html=content beforeHeading=true anchorBody="" %}
{% endif %} +{% if post.layout == "encrypt" %} {{content}} {% else %}
{% capture a_post_content %}{% include anchor_headings.html html=content beforeHeading=true anchorBody="" %}{% endcapture %}{{ a_post_content | replace: '
', '

' }}

{% endif %} {% if page.tags %} tags: {% for tag in page.tags %}{{ tag }}{% unless forloop.last %} - {% endunless %}{% endfor %} 查看原始文件 diff --git a/assets/css/style.scss b/assets/css/style.scss index 780af18..fe8d18c 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -58,6 +58,11 @@ a:hover { text-indent: -2px; } +.post-content p { + text-indent: 2em; + margin-bottom: 5px; +} + h1 .octicon, h2 .octicon, h3 .octicon, @@ -94,8 +99,8 @@ div.highlight:hover button { div.highlight button { opacity: 0; position: absolute; - top: 0.5rem; - right: 1rem; + top: 0.5em; + right: 1em; height: 2em; transition: all 0.2s ease-out } diff --git a/assets/js/main_new.js b/assets/js/main_new.js index fd0170f..4f14c78 100644 --- a/assets/js/main_new.js +++ b/assets/js/main_new.js @@ -48,7 +48,9 @@ $(function () { $('section').each(function () { highlightTextNodes(this); }); +}); +$(function () { var codeBlocks = document.querySelectorAll('div.highlight'); codeBlocks.forEach(function (codeBlock) { diff --git a/search.html b/search.html index d1bd342..f485ede 100644 --- a/search.html +++ b/search.html @@ -6,7 +6,7 @@ title: 搜索

搜索

-

Keyword: Loading...

+

Loading...