summary refs log tree commit diff
diff options
context:
space:
mode:
authormayx2025-04-22 06:01:34 +0000
committermayx2025-04-22 06:01:34 +0000
commit2f59a946db55972c70fd093db1555db2b613ba25 (patch)
tree0d30db1893cf49a3ba204abe48f60d186001a4a5
parent1f5ef5079cd53751d41589a09b0140ee52103194 (diff)
Update 4 files
- /_layouts/default.html
- /_layouts/post.html
- /index.html
- /assets/css/style.scss
-rw-r--r--_layouts/default.html5
-rw-r--r--_layouts/post.html5
-rw-r--r--assets/css/style.scss8
-rw-r--r--index.html6
4 files changed, 17 insertions, 7 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
index 303c26f..d707b4d 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -18,6 +18,7 @@
     <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
     <![endif]-->
 
+  <!--[if !IE]> -->
   {% if site.google_analytics %}
   <!-- Global site tag (gtag.js) - Google Analytics -->
   <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
@@ -51,6 +52,7 @@
     }
   </script>
   <script src="/assets/js/instant.page.js" type="module"></script>
+  <!-- <![endif]-->
 </head>
 
 <body>
@@ -135,11 +137,10 @@
   </div>
   <script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
 
-  <script src="/assets/js/main.js"></script>
   <!--[if !IE]> -->
+  <script src="/assets/js/main.js"></script>
   <script src="/Live2dHistoire/live2d/js/live2d.js"></script>
   <script src="/Live2dHistoire/live2d/js/message.js"></script>
-
   <!-- <![endif]-->
 </body>
 
diff --git a/_layouts/post.html b/_layouts/post.html
index a1e72b5..7e02853 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -82,12 +82,12 @@ layout: default
 {% endif %}
 <br />
 <br />
+<!--[if !IE]> -->
 <p id="suggest-container"></p>
 <script>
-var blogurl = "{{ page.url }}";
 var suggest = $("#suggest-container")[0];
 suggest.innerHTML = "Loading...";
-$.get(BlogAPI + "/suggest?id=" + blogurl + "&update=" + lastUpdated.valueOf(), function (data) {
+$.get(BlogAPI + "/suggest?id={{ page.url }}&update=" + lastUpdated.valueOf(), function (data) {
     if (data.length) {
         getSearchJSON(function (search) {
             suggest.innerHTML = '<b>推荐文章</b><hr style="margin: 0 0 5px"/>';
@@ -107,6 +107,7 @@ $.get(BlogAPI + "/suggest?id=" + blogurl + "&update=" + lastUpdated.valueOf(), f
     }
 });
 </script>
+<!-- <![endif]-->
 <div class="pagination">
   {% if page.previous.url %}
   <span class="prev">
diff --git a/assets/css/style.scss b/assets/css/style.scss
index b59d669..1a58e09 100644
--- a/assets/css/style.scss
+++ b/assets/css/style.scss
@@ -99,4 +99,12 @@ div.highlight button:active,
 div.highlight button:focus,
 div.highlight button:hover {
     opacity: 1
+}
+
+.footnotes {
+    font-size: 14px;
+    line-height: 1.4;
+}
+.footnotes p {
+    margin: 0;
 }
\ No newline at end of file
diff --git a/index.html b/index.html
index 85243d5..c705b75 100644
--- a/index.html
+++ b/index.html
@@ -8,15 +8,15 @@ title: 首页 - 我的文章
 <hr />
 
 <!-- 遍历分页后的文章 -->
-<table>
+<table {% if paginator.previous_page == 1 %}class="hslice"{% endif %}>
 {% for post in paginator.posts %}
   <tr><td onclick="location='{{ post.url }}'">
-    <h2><a class="post-link" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
+    <h2 class="entry-title"><a class="post-link" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
   <p class="author">
     <span class="date">{{ post.date | date: "%-d %B %Y" }}</span>
     | Hits: <span id="{{ post.url }}" class="visitors-index" >Loading...</span>
   </p>
-  <div class="content">
+  <div class="content entry-content">
     {{ post.excerpt | strip_html | strip_newlines }} 
   </div>
   {% if post.tags %}