diff options
author | mayx | 2025-05-17 05:03:00 +0000 |
---|---|---|
committer | mayx | 2025-05-17 05:03:00 +0000 |
commit | d00e310673bfeb94cdbef30c4eeb2a25b7ae772f (patch) | |
tree | 1c6c8c24419a39cacde799cccea662336f10f942 | |
parent | 368f1eb0d716c544d1a9d230535a5701f4cbe7e2 (diff) |
Update 2 files
- /_layouts/post.html - /_layouts/encrypt.html
-rw-r--r-- | _layouts/encrypt.html | 4 | ||||
-rw-r--r-- | _layouts/post.html | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/_layouts/encrypt.html b/_layouts/encrypt.html index b740135..98bc401 100644 --- a/_layouts/encrypt.html +++ b/_layouts/encrypt.html @@ -49,7 +49,7 @@ function onbtnDecrypto() { document.getElementById("pwinput").style.display = "none"; } </script> -<div id="pwinput">{{ page.tips | default: "请输入密码:" }}<br/> +<div id="pwinput">{{ page.tips | default: "请输入密码:" }}<br /> <input id="inputkey" type="password" /> <button onclick="onbtnDecrypto()">解密</button> </div> -<div id="output"></div> <br/> +<div id="output"></div> <br /> diff --git a/_layouts/post.html b/_layouts/post.html index a456cd6..88e4552 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -75,12 +75,12 @@ layout: default {% include toc.html html=content sanitize=true h_max=3 %} -{% if post.layout == "encrypt" %} {{content}} {% else %} <main class="post-content" role="main">{% capture a_post_content %}{% include anchor_headings.html html=content beforeHeading=true anchorBody="<svg class='octicon' viewBox='0 0 16 16' version='1.1' width='16' height='32' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>" %}{% endcapture %}{{ a_post_content | replace: '<br />', '</p><p>' }}</main> {% endif %} +{% if page.layout == "encrypt" %} {{content}} {% else %} <main class="post-content" role="main">{% capture a_post_content %}{% include anchor_headings.html html=content beforeHeading=true anchorBody="<svg class='octicon' viewBox='0 0 16 16' version='1.1' width='16' height='32' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>" %}{% endcapture %}{{ a_post_content | replace: '<br />', '</p><p>' }}</main> {% endif %} {% if page.tags %} <small style="display: block">tags: {% for tag in page.tags %}<a href="/search.html?keyword={{ tag | url_encode }}"><em>{{ tag }}</em></a>{% unless forloop.last %} - {% endunless %}{% endfor %} <span style="float: right;"><a href="{% if site.github %}{{ site.github.repository_url }}{% else %}https://gitlab.com/mayx/mayx.gitlab.io{% endif %}/tree/master/{{ page.path }}">查看原始文件</a></span></small> {% endif %} -{% unless post.layout == "encrypt" %} +{% if page.layout != "encrypt" %} <!--[if !IE]> --> <h4 style="border-bottom: 1px solid #e5e5e5;margin: 2em 0 5px;">推荐文章</h4> <p id="suggest-container">Loading...</p> @@ -107,7 +107,7 @@ $.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), fu }); </script> <!-- <![endif]--> -{% endunless %} +{% endif %} <div class="pagination"> {% if page.previous.url %} <span class="prev"> |