mirror of
				https://github.com/Mabbs/mabbs.github.io
				synced 2025-11-04 09:22:24 +08:00 
			
		
		
		
	Update 4 files
- /_layouts/default.html - /_layouts/post.html - /index.html - /assets/css/style.scss
This commit is contained in:
		@@ -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>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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">
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
}
 | 
			
		||||
@@ -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 %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user