fixing link issues with news feature
This commit is contained in:
@ -29,5 +29,4 @@
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
@ -13,10 +13,10 @@ folder: news
|
||||
{% for post in site.posts limit:10 %}
|
||||
|
||||
|
||||
<h2><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
|
||||
<h2><a class="post-link" href="{{ post.url }}">{{ post.title }}</a></h2>
|
||||
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }} /
|
||||
{% for tag in post.tags %}
|
||||
<a href="{{ "/tag_" | prepend: site.baseurl | append: {{tag}}/">{{tag}}</a>{% unless forloop.last %}, {% endunless%}
|
||||
<a href="{{ "/tag_" | append: {{tag}}/">{{tag}}</a>{% unless forloop.last %}, {% endunless%}
|
||||
{% endfor %}</span>
|
||||
<p>{% if page.summary %} {{ page.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ post.content | truncatewords: 50 | strip_html }} {% endif %}</p>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Test post from last year"
|
||||
categories: jekyll update
|
||||
permalink: test-post-from-last-year/
|
||||
permalink: test-post-from-last-year
|
||||
tags: [news]
|
||||
---
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Welcome to Jekyll!"
|
||||
categories: jekyll update
|
||||
permalink: myupdate/
|
||||
permalink: myupdate
|
||||
tags: [news]
|
||||
---
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
title: "Sample post"
|
||||
published: true
|
||||
permalink: samplepost/
|
||||
permalink: samplepost
|
||||
summary: "This is some summary frontmatter for my sample post."
|
||||
tags: [news, getting_started]
|
||||
---
|
||||
|
Reference in New Issue
Block a user