fixing link issues with news feature
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
<p>The following pages and posts are tagged with <button type="button" style="cursor: default" class="btn btn-default navbar-btn">{{page.tagName}}</button></p>
|
<p>The following pages and posts are tagged with <button type="button" style="cursor: default" class="btn btn-default navbar-btn">{{page.tagName}}</button></p>
|
||||||
<table><thead><tr><th>Title</th><th>Type</th><th>Excerpt</th></tr></thead>
|
<table><thead><tr><th>Title</th><th>Type</th><th>Excerpt</th></tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% assign thisTag = page.tagName %}
|
{% assign thisTag = page.tagName %}
|
||||||
{% for page in site.pages %}
|
{% for page in site.pages %}
|
||||||
@ -27,7 +27,6 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -13,10 +13,10 @@ folder: news
|
|||||||
{% for post in site.posts limit:10 %}
|
{% 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" }} /
|
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }} /
|
||||||
{% for tag in post.tags %}
|
{% 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>
|
{% endfor %}</span>
|
||||||
<p>{% if page.summary %} {{ page.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ post.content | truncatewords: 50 | strip_html }} {% endif %}</p>
|
<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"
|
title: "Test post from last year"
|
||||||
categories: jekyll update
|
categories: jekyll update
|
||||||
permalink: test-post-from-last-year/
|
permalink: test-post-from-last-year
|
||||||
tags: [news]
|
tags: [news]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: "Welcome to Jekyll!"
|
title: "Welcome to Jekyll!"
|
||||||
categories: jekyll update
|
categories: jekyll update
|
||||||
permalink: myupdate/
|
permalink: myupdate
|
||||||
tags: [news]
|
tags: [news]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: "Sample post"
|
title: "Sample post"
|
||||||
published: true
|
published: true
|
||||||
permalink: samplepost/
|
permalink: samplepost
|
||||||
summary: "This is some summary frontmatter for my sample post."
|
summary: "This is some summary frontmatter for my sample post."
|
||||||
tags: [news, getting_started]
|
tags: [news, getting_started]
|
||||||
---
|
---
|
||||||
|
Reference in New Issue
Block a user