소스 검색

Update 4 files

- /links.md
- /_layouts/post.html
- /_layouts/default.html
- /index.html
mayx 9 달 전
부모
커밋
e5e305f0f3
4개의 변경된 파일14개의 추가작업 그리고 14개의 파일을 삭제
  1. 1 1
      _layouts/default.html
  2. 5 5
      _layouts/post.html
  3. 7 7
      index.html
  4. 1 1
      links.md

+ 1 - 1
_layouts/default.html

@@ -82,7 +82,7 @@
         {% endif %}
       </ul>
     </header>
-    <section>
+    <section{% unless page.layout == "default" %} class="h-entry"{% endunless %}>
 
       {{ content }}
 

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 5 - 5
_layouts/post.html


+ 7 - 7
index.html

@@ -8,21 +8,21 @@ title: 首页 - 我的文章
 <hr />
 
 <!-- 遍历分页后的文章 -->
-<table class="entry-content">
+<table class="entry-content h-feed">
 {% 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>
-  <p class="author">
-    <span class="date">{{ post.date | date: "%-d %B %Y" }}</span>
+  <tr><td class="h-entry" onclick="location='{{ post.url }}'">
+    <h2 class="p-name"><a class="post-link u-url" href="{{ post.url }}">{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}</a></h2>
+  <p>
+    <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>
   </p>
-  <div class="content">
+  <div class="content p-summary">
     {{ post.excerpt | strip_html | strip_newlines }} 
   </div>
   {% if post.tags %}
   <span>
     {% 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 %}
   </span>
   {% endif %}

+ 1 - 1
links.md

@@ -8,7 +8,7 @@ tags: [links]
 
 | 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 %}
 
 订阅以上链接:[OPML](/blogroll.opml)