mirror of
				https://github.com/Mabbs/mabbs.github.io
				synced 2025-11-04 15:44:43 +00:00 
			
		
		
		
	Update 4 files
- /_layouts/default.html - /_layouts/post.html - /index.html - /search.html
This commit is contained in:
		@@ -11,15 +11,12 @@
 | 
			
		||||
  <link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
 | 
			
		||||
  <link rel="stylesheet" href="/Live2dHistoire/live2d/css/live2d.css" />
 | 
			
		||||
  <link rel="blogroll" type="text/xml" href="/blogroll.opml" />
 | 
			
		||||
  <script src="/assets/js/jquery.min.js"></script>
 | 
			
		||||
  <!--[if lt IE 9]>
 | 
			
		||||
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
 | 
			
		||||
  <![endif]-->
 | 
			
		||||
  <!--[if IE]>
 | 
			
		||||
    <script src="//cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?version=4.8.0"></script>
 | 
			
		||||
  <![endif]-->
 | 
			
		||||
 | 
			
		||||
  <!--[if !IE]> -->
 | 
			
		||||
  <script src="/assets/js/jquery.min.js"></script>
 | 
			
		||||
  {% 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>
 | 
			
		||||
@@ -99,6 +96,7 @@
 | 
			
		||||
      {{ content }}
 | 
			
		||||
 | 
			
		||||
    </section>
 | 
			
		||||
    <!--[if !IE]> -->
 | 
			
		||||
    <div id="landlord" style="left:5px;bottom:0px;">
 | 
			
		||||
      <div class="message" style="opacity:0"></div>
 | 
			
		||||
      <canvas id="live2d" width="500" height="560" class="live2d"></canvas>
 | 
			
		||||
@@ -128,6 +126,7 @@
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div id="open_live2d">召唤伊斯特瓦尔</div>
 | 
			
		||||
    <!-- <![endif]-->
 | 
			
		||||
    <footer>
 | 
			
		||||
      <p>
 | 
			
		||||
        <small>Made with ❤ by Mayx<br />Last updated at {{ site.time | date: "%F %T" }}<br /> 总字数:{% include_cached word_count.html %} - 文章数:{{ site.posts.size }} - <a href="{{ site.feed.path | relative_url }}" >Atom</a> - <a href="{{ "/README.html" | relative_url }}" >About</a></small>
 | 
			
		||||
@@ -135,10 +134,11 @@
 | 
			
		||||
    </footer>
 | 
			
		||||
  </div>
 | 
			
		||||
  <script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></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>
 | 
			
		||||
 | 
			
		||||
</html>
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
layout: default
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
<small>{{ page.date | date: "%-d %B %Y" }} - 字数统计:{% if page.layout == "encrypt" %}God Knows {% else %}{{ page.content | strip_html | strip_newlines | remove: " " | size }} - 阅读大约需要{{ page.content | strip_html | strip_newlines | remove: "" | size | divided_by: 350 | plus: 1 }}分钟{% endif %} - Hits: <span id="{{ page.url }}" class="visitors">Loading...</span></small>
 | 
			
		||||
<small>{{ page.date | date: "%-d %B %Y" }} - 字数统计:{% if page.layout == "encrypt" %}God Knows {% else %}{{ page.content | strip_html | strip_newlines | remove: " " | size }} - 阅读大约需要{{ page.content | strip_html | strip_newlines | remove: "" | size | divided_by: 350 | plus: 1 }}分钟{% endif %} <!--[if !IE]> --> - Hits: <span id="{{ page.url }}" class="visitors">Loading...</span> <!-- <![endif]--> </small>
 | 
			
		||||
<h1>{{ page.title }}</h1>
 | 
			
		||||
 | 
			
		||||
<p class="view">by <a href="//github.com/{{ page.author | default: "Mabbs" }}">{{ page.author | default: site.author }}</a></p>
 | 
			
		||||
@@ -29,6 +29,10 @@ layout: default
 | 
			
		||||
<b>AI摘要</b>
 | 
			
		||||
<p id="ai-output">{% assign ai_cache = site.data.ai-cache[page.url] %}{% if ai_cache %}{{ ai_cache }}{% else %}正在生成中……{% endif %}</p>
 | 
			
		||||
{% unless ai_cache %}
 | 
			
		||||
<!--[if IE]>
 | 
			
		||||
  <script>document.getElementById("ai-output").innerHTML="这个文章的AI摘要还没有缓存……IE看不了哦~";</script>
 | 
			
		||||
<![endif]-->
 | 
			
		||||
<!--[if !IE]> -->
 | 
			
		||||
<script>
 | 
			
		||||
  async function sha(str) {
 | 
			
		||||
    const encoder = new TextEncoder();
 | 
			
		||||
@@ -69,6 +73,7 @@ layout: default
 | 
			
		||||
  }
 | 
			
		||||
  ai_gen();
 | 
			
		||||
</script>
 | 
			
		||||
<!-- <![endif]-->
 | 
			
		||||
{% endunless %}
 | 
			
		||||
<hr />
 | 
			
		||||
{% endif %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user