提交 c54cdc37 编写于 作者: J Joel Marcey

More Jekyll 3.3 updates

上级 2bcaf824
<div class="post">
<header class="post-header">
<h1 class="post-title">{% if include.truncate %}<a href="{{ absolute_url }}{{ page.url }}">{{ page.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
<h1 class="post-title">{% if include.truncate %}<a href="{{ page.url | absolute_url }}">{{ page.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
</header>
<article class="post-content">
......@@ -8,7 +8,7 @@
{% if page.content contains '<!--truncate-->' %}
{{ page.content | split:'<!--truncate-->' | first }}
<div class="read-more">
<a href="{{ absolute_url }}{{ page.url }}" >
<a href="{{ page.url | absolute_url }}" >
...Read More
</a>
</div>
......
......@@ -6,11 +6,11 @@
<meta property="og:url" content="{{ page.url | replace:'index.html','' | absolute_url }}" />
<meta property="og:site_name" content="{{ site.title }}"/>
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}" />
<meta property="og:image" content="{{ absolute_url }}/static/og_image.png" />
<meta property="og:image" content="{{ '/static/og_image.png' | absolute_url }}" />
<meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}" />
<link rel="stylesheet" href="{{ absolute_url }}/css/main.css" media="screen">
<link rel="icon" href="{{ absolute_url }}/static/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="{{ '/css/main.css' | absolute_url }}" media="screen">
<link rel="icon" href="{{ '/static/favicon.png' | absolute_url }}" type="image/x-icon">
{% if site.searchconfig %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" />
{% endif %}
......
......@@ -9,7 +9,7 @@
{% if author.full_name %}
<p class="post-authorName">{{ author.full_name }}</p>
{% endif %}
<h1 class="post-title">{% if include.truncate %}<a href="{{ absolute_url }}{{ page.url }}">{{ page.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
<h1 class="post-title">{% if include.truncate %}<a href="{{ page.url | absolute_url }}">{{ page.title }}</a>{% else %}{{ page.title }}{% endif %}</h1>
<p class="post-meta">Posted {{ page.date | date: '%B %d, %Y' }}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
</header>
......@@ -18,7 +18,7 @@
{% if page.content contains '<!--truncate-->' %}
{{ page.content | split:'<!--truncate-->' | first | markdownify }}
<div class="read-more">
<a href="{{ absolute_url }}{{ page.url }}" >
<a href="{{ page.url | absolute_url }}" >
Read More
</a>
</div>
......
......@@ -11,7 +11,7 @@ category: blog
{% assign author = site.data.authors[post.author] %}
<p>
<strong>
<a href="{{ relative_url }}{{ post.url }}">{{ post.title }}</a>
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
</strong>
on {{ post.date | date: "%B %e, %Y" }} by {{ author.display_name }}
</p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册