summary refs log tree commit diff
diff options
context:
space:
mode:
authormayx2025-06-16 11:42:07 +0000
committermayx2025-06-16 11:42:07 +0000
commit7fbeaffac33ae2d60299b6f5485bf2004fe46ada (patch)
tree2ab278a2dd6ab9fe46d2331478ec126d06c1f601
parent6030f3c83c1448a74f6cfe4a5147e7ad9a64eb21 (diff)
Update 2 files
- /Gemfile
- /_layouts/post.html
-rw-r--r--Gemfile1
-rw-r--r--_layouts/post.html2
2 files changed, 1 insertions, 2 deletions
diff --git a/Gemfile b/Gemfile
index a03b635..1299947 100644
--- a/Gemfile
+++ b/Gemfile
@@ -9,6 +9,7 @@ group :jekyll_plugins do
   gem "jekyll-include-cache", "~> 0.2.1"
   gem "jekyll-readme-index", "~> 0.3.0"
   gem "jekyll-default-layout", "~> 0.1.5"
+  gem "jekyll-titles-from-headings", "~> 0.5.3"
   gem "jekyll-theme-minimal"
   gem "jekyll-paginate", "~> 1.1.0"
   gem "kramdown-parser-gfm", "~> 1.1.0"
diff --git a/_layouts/post.html b/_layouts/post.html
index 8dae177..dca7641 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -84,7 +84,6 @@ layout: default
 <small style="display: block">tags: {% for tag in page.tags %}<a rel="category tag" class="p-category" 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 %}
 {% if page.layout != "encrypt" %}
-<!--[if !IE]> -->
 <h4 style="border-bottom: 1px solid #e5e5e5;margin: 2em 0 5px;">推荐文章</h4>
 <p id="suggest-container">Loading...</p>
 <script>
@@ -110,7 +109,6 @@ $.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), fu
     }
 });
 </script>
-<!-- <![endif]-->
 {% endif %}
 <br />
 <div class="pagination">