mirror of
				https://github.com/Mabbs/mabbs.github.io
				synced 2025-11-03 15:25:40 +00:00 
			
		
		
		
	Update 4 files
- /links.md - /_layouts/post.html - /_layouts/default.html - /index.html
This commit is contained in:
		@ -82,7 +82,7 @@
 | 
				
			|||||||
        {% endif %}
 | 
					        {% endif %}
 | 
				
			||||||
      </ul>
 | 
					      </ul>
 | 
				
			||||||
    </header>
 | 
					    </header>
 | 
				
			||||||
    <section>
 | 
					    <section{% unless page.layout == "default" %} class="h-entry"{% endunless %}>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      {{ content }}
 | 
					      {{ content }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -2,10 +2,10 @@
 | 
				
			|||||||
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><time class="date dt-published" datetime="{{ post.date | date_to_xmlschema }}">{{ page.date | date: "%-d %B %Y" }}</time> - 字数统计:{% 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>
 | 
				
			||||||
<h1>{{ page.title }}</h1>
 | 
					<h1 class="p-name">{{ 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 class="p-author h-card" href="//github.com/{{ page.author | default: "Mabbs" }}">{{ page.author | default: site.author }}</a></p>
 | 
				
			||||||
<div id="outdate" style="display:none;">
 | 
					<div id="outdate" style="display:none;">
 | 
				
			||||||
  <hr />
 | 
					  <hr />
 | 
				
			||||||
  这是一篇创建于 <span id="outime"></span> 天前的文章,其中的信息可能已经有所发展或是发生改变。
 | 
					  这是一篇创建于 <span id="outime"></span> 天前的文章,其中的信息可能已经有所发展或是发生改变。
 | 
				
			||||||
@ -75,10 +75,10 @@ layout: default
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% include toc.html html=content sanitize=true h_max=3 %}
 | 
					{% include toc.html html=content sanitize=true h_max=3 %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% if page.layout == "encrypt" %} {{content}} {% else %} <main class="post-content" role="main">{% capture a_post_content %}{% include anchor_headings.html html=content beforeHeading=true anchorBody="<svg class='octicon' viewBox='0 0 16 16' version='1.1' width='16' height='32' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>" %}{% endcapture %}{{ a_post_content | replace: '<br />', '</p><p>' }}</main> {% endif %}
 | 
					{% if page.layout == "encrypt" %} {{content}} {% else %} <main class="post-content e-content" role="main">{% capture a_post_content %}{% include anchor_headings.html html=content beforeHeading=true anchorBody="<svg class='octicon' viewBox='0 0 16 16' version='1.1' width='16' height='32' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>" %}{% endcapture %}{{ a_post_content | replace: '<br />', '</p><p>' }}</main> {% endif %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% if page.tags %}
 | 
					{% if page.tags %}
 | 
				
			||||||
<small style="display: block">tags: {% for tag in page.tags %}<a 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>
 | 
					<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 %}
 | 
					{% endif %}
 | 
				
			||||||
{% if page.layout != "encrypt" %}
 | 
					{% if page.layout != "encrypt" %}
 | 
				
			||||||
<!--[if !IE]> -->
 | 
					<!--[if !IE]> -->
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										14
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								index.html
									
									
									
									
									
								
							@ -8,21 +8,21 @@ title: 首页 - 我的文章
 | 
				
			|||||||
<hr />
 | 
					<hr />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<!-- 遍历分页后的文章 -->
 | 
					<!-- 遍历分页后的文章 -->
 | 
				
			||||||
<table class="entry-content">
 | 
					<table class="entry-content h-feed">
 | 
				
			||||||
{% for post in paginator.posts %}
 | 
					{% for post in paginator.posts %}
 | 
				
			||||||
  <tr><td onclick="location='{{ post.url }}'">
 | 
					  <tr><td class="h-entry" onclick="location='{{ post.url }}'">
 | 
				
			||||||
    <h2><a class="post-link" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
 | 
					    <h2 class="p-name"><a class="post-link u-url" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
 | 
				
			||||||
  <p class="author">
 | 
					  <p>
 | 
				
			||||||
    <span class="date">{{ post.date | date: "%-d %B %Y" }}</span>
 | 
					    <time class="date dt-published" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%-d %B %Y" }}</span>
 | 
				
			||||||
    | Hits: <span id="{{ post.url }}" class="visitors-index" >Loading...</span>
 | 
					    | Hits: <span id="{{ post.url }}" class="visitors-index" >Loading...</span>
 | 
				
			||||||
  </p>
 | 
					  </p>
 | 
				
			||||||
  <div class="content">
 | 
					  <div class="content p-summary">
 | 
				
			||||||
    {{ post.excerpt | strip_html | strip_newlines }} 
 | 
					    {{ post.excerpt | strip_html | strip_newlines }} 
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
  {% if post.tags %}
 | 
					  {% if post.tags %}
 | 
				
			||||||
  <span>
 | 
					  <span>
 | 
				
			||||||
    {% for tag in post.tags %}
 | 
					    {% for tag in post.tags %}
 | 
				
			||||||
    <a href="/search.html?keyword={{ tag | url_encode }}"><code style="white-space: nowrap">#{{ tag }}</code></a>
 | 
					    <a rel="category tag" class="p-category" href="/search.html?keyword={{ tag | url_encode }}"><code style="white-space: nowrap">#{{ tag }}</code></a>
 | 
				
			||||||
    {% endfor %}
 | 
					    {% endfor %}
 | 
				
			||||||
  </span>
 | 
					  </span>
 | 
				
			||||||
  {% endif %}
 | 
					  {% endif %}
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								links.md
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								links.md
									
									
									
									
									
								
							@ -8,7 +8,7 @@ tags: [links]
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
| Link | Description |
 | 
					| Link | Description |
 | 
				
			||||||
| - | - |
 | 
					| - | - |
 | 
				
			||||||
{% for item in site.data.links %}| <a href="{{ item.link }}" target="_blank" rel="noopener" {% if item.feed_url %}data-feed="{{ item.feed_url }}"{% endif %}>{{ item.title }}</a> | {% if item.description %}{{ item.description }}{% else %}*No description*{% endif %} |
 | 
					{% for item in site.data.links %}| <a href="{{ item.link }}" target="_blank" rel="noopener nofollow" {% if item.feed_url %}data-feed="{{ item.feed_url }}"{% endif %}>{{ item.title }}</a> | {% if item.description %}{{ item.description }}{% else %}*No description*{% endif %} |
 | 
				
			||||||
{% endfor %}
 | 
					{% endfor %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
订阅以上链接:[OPML](/blogroll.opml)   
 | 
					订阅以上链接:[OPML](/blogroll.opml)   
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user