mirror of
				https://github.com/Mabbs/mabbs.github.io
				synced 2025-11-03 15:25:40 +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="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
 | 
				
			||||||
  <link rel="stylesheet" href="/Live2dHistoire/live2d/css/live2d.css" />
 | 
					  <link rel="stylesheet" href="/Live2dHistoire/live2d/css/live2d.css" />
 | 
				
			||||||
  <link rel="blogroll" type="text/xml" href="/blogroll.opml" />
 | 
					  <link rel="blogroll" type="text/xml" href="/blogroll.opml" />
 | 
				
			||||||
  <script src="/assets/js/jquery.min.js"></script>
 | 
					 | 
				
			||||||
  <!--[if lt IE 9]>
 | 
					  <!--[if lt IE 9]>
 | 
				
			||||||
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
 | 
					    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script>
 | 
				
			||||||
  <![endif]-->
 | 
					  <![endif]-->
 | 
				
			||||||
  <!--[if IE]>
 | 
					 | 
				
			||||||
    <script src="//cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?version=4.8.0"></script>
 | 
					 | 
				
			||||||
  <![endif]-->
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  <!--[if !IE]> -->
 | 
					  <!--[if !IE]> -->
 | 
				
			||||||
 | 
					  <script src="/assets/js/jquery.min.js"></script>
 | 
				
			||||||
  {% if site.google_analytics %}
 | 
					  {% if site.google_analytics %}
 | 
				
			||||||
  <!-- Global site tag (gtag.js) - Google Analytics -->
 | 
					  <!-- Global site tag (gtag.js) - Google Analytics -->
 | 
				
			||||||
  <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
 | 
					  <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
 | 
				
			||||||
@ -99,6 +96,7 @@
 | 
				
			|||||||
      {{ content }}
 | 
					      {{ content }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    </section>
 | 
					    </section>
 | 
				
			||||||
 | 
					    <!--[if !IE]> -->
 | 
				
			||||||
    <div id="landlord" style="left:5px;bottom:0px;">
 | 
					    <div id="landlord" style="left:5px;bottom:0px;">
 | 
				
			||||||
      <div class="message" style="opacity:0"></div>
 | 
					      <div class="message" style="opacity:0"></div>
 | 
				
			||||||
      <canvas id="live2d" width="500" height="560" class="live2d"></canvas>
 | 
					      <canvas id="live2d" width="500" height="560" class="live2d"></canvas>
 | 
				
			||||||
@ -128,6 +126,7 @@
 | 
				
			|||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id="open_live2d">召唤伊斯特瓦尔</div>
 | 
					    <div id="open_live2d">召唤伊斯特瓦尔</div>
 | 
				
			||||||
 | 
					    <!-- <![endif]-->
 | 
				
			||||||
    <footer>
 | 
					    <footer>
 | 
				
			||||||
      <p>
 | 
					      <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>
 | 
					        <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>
 | 
					    </footer>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
  <script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
 | 
					  <script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
 | 
				
			||||||
 | 
					  <!--[if !IE]> -->
 | 
				
			||||||
  <script src="/assets/js/main.js"></script>
 | 
					  <script src="/assets/js/main.js"></script>
 | 
				
			||||||
  <script src="/Live2dHistoire/live2d/js/live2d.js"></script>
 | 
					  <script src="/Live2dHistoire/live2d/js/live2d.js"></script>
 | 
				
			||||||
  <script src="/Live2dHistoire/live2d/js/message.js"></script>
 | 
					  <script src="/Live2dHistoire/live2d/js/message.js"></script>
 | 
				
			||||||
 | 
					  <!-- <![endif]-->
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
@ -2,7 +2,7 @@
 | 
				
			|||||||
layout: default
 | 
					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>
 | 
					<h1>{{ page.title }}</h1>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<p class="view">by <a href="//github.com/{{ page.author | default: "Mabbs" }}">{{ page.author | default: site.author }}</a></p>
 | 
					<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>
 | 
					<b>AI摘要</b>
 | 
				
			||||||
<p id="ai-output">{% assign ai_cache = site.data.ai-cache[page.url] %}{% if ai_cache %}{{ ai_cache }}{% else %}正在生成中……{% endif %}</p>
 | 
					<p id="ai-output">{% assign ai_cache = site.data.ai-cache[page.url] %}{% if ai_cache %}{{ ai_cache }}{% else %}正在生成中……{% endif %}</p>
 | 
				
			||||||
{% unless ai_cache %}
 | 
					{% unless ai_cache %}
 | 
				
			||||||
 | 
					<!--[if IE]>
 | 
				
			||||||
 | 
					  <script>document.getElementById("ai-output").innerHTML="这个文章的AI摘要还没有缓存……IE看不了哦~";</script>
 | 
				
			||||||
 | 
					<![endif]-->
 | 
				
			||||||
 | 
					<!--[if !IE]> -->
 | 
				
			||||||
<script>
 | 
					<script>
 | 
				
			||||||
  async function sha(str) {
 | 
					  async function sha(str) {
 | 
				
			||||||
    const encoder = new TextEncoder();
 | 
					    const encoder = new TextEncoder();
 | 
				
			||||||
@ -69,6 +73,7 @@ layout: default
 | 
				
			|||||||
  }
 | 
					  }
 | 
				
			||||||
  ai_gen();
 | 
					  ai_gen();
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					<!-- <![endif]-->
 | 
				
			||||||
{% endunless %}
 | 
					{% endunless %}
 | 
				
			||||||
<hr />
 | 
					<hr />
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,7 @@ layout: default
 | 
				
			|||||||
title: 首页 - 我的文章
 | 
					title: 首页 - 我的文章
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
{% if paginator.page == 1 %}<div class="hslice" id="LatestPost">{% endif %}
 | 
					{% if paginator.page == 1 %}<div class="hslice" id="LatestPost">{% endif %}
 | 
				
			||||||
<h1 class="entry-title" style="display:inline"> 首页 - 我的文章 </h1><small><a href="/archives.html">Archives</a> | <a href="javascript:getSearchJSON(function(data){window.location = data[Math.floor(Math.random()*data.length)].url})">Random</a></small><br /><br />
 | 
					<h1 class="entry-title" style="display:inline"> 首页 - 我的文章 </h1><small><a href="/archives.html">Archives</a> <!--[if !IE]> --> | <a href="javascript:getSearchJSON(function(data){window.location = data[Math.floor(Math.random()*data.length)].url})">Random</a> <!-- <![endif]--> </small><br /><br />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<hr />
 | 
					<hr />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -14,7 +14,9 @@ title: 首页 - 我的文章
 | 
				
			|||||||
    <h2><a class="post-link" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
 | 
					    <h2><a class="post-link" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
 | 
				
			||||||
  <p class="author">
 | 
					  <p class="author">
 | 
				
			||||||
    <span class="date">{{ post.date | date: "%-d %B %Y" }}</span>
 | 
					    <span class="date">{{ post.date | date: "%-d %B %Y" }}</span>
 | 
				
			||||||
 | 
					    <!--[if !IE]> -->
 | 
				
			||||||
    | Hits: <span id="{{ post.url }}" class="visitors-index" >Loading...</span>
 | 
					    | Hits: <span id="{{ post.url }}" class="visitors-index" >Loading...</span>
 | 
				
			||||||
 | 
					    <!-- <![endif]-->
 | 
				
			||||||
  </p>
 | 
					  </p>
 | 
				
			||||||
  <div class="content">
 | 
					  <div class="content">
 | 
				
			||||||
    {{ post.excerpt | strip_html | strip_newlines }} 
 | 
					    {{ post.excerpt | strip_html | strip_newlines }} 
 | 
				
			||||||
 | 
				
			|||||||
@ -4,6 +4,10 @@ title: 搜索
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<h1>搜索</h1>
 | 
					<h1>搜索</h1>
 | 
				
			||||||
 | 
					<!--[if IE]>
 | 
				
			||||||
 | 
					  <p>很遗憾,IE搜不了捏~</p>
 | 
				
			||||||
 | 
					<![endif]-->
 | 
				
			||||||
 | 
					<!--[if !IE]> -->
 | 
				
			||||||
<p>Keyword: <input type="text" id="search-input" placeholder="Search blog posts.."> <img src="/images/loading.svg" id="search-loading" style="width:22px;vertical-align: bottom"></p>
 | 
					<p>Keyword: <input type="text" id="search-input" placeholder="Search blog posts.."> <img src="/images/loading.svg" id="search-loading" style="width:22px;vertical-align: bottom"></p>
 | 
				
			||||||
<ul id="results-container"></ul>
 | 
					<ul id="results-container"></ul>
 | 
				
			||||||
<script src="/assets/js/simple-jekyll-search.min.js"></script>
 | 
					<script src="/assets/js/simple-jekyll-search.min.js"></script>
 | 
				
			||||||
@ -26,3 +30,4 @@ getSearchJSON(function(json){
 | 
				
			|||||||
  document.getElementById('search-loading').style.display = "none";
 | 
					  document.getElementById('search-loading').style.display = "none";
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					<!-- <![endif]-->
 | 
				
			||||||
		Reference in New Issue
	
	Block a user