show posts on homepage
This commit is contained in:
parent
3b2ea39b8f
commit
bc66a27cc0
@ -19,12 +19,15 @@
|
|||||||
# in the templates via {{ site.myvariable }}.
|
# in the templates via {{ site.myvariable }}.
|
||||||
|
|
||||||
title: Digital Garden
|
title: Digital Garden
|
||||||
email: project.digitalgarden@hypha.coop
|
email: hello@hypha.coop
|
||||||
description: >- # this means to ignore newlines until "baseurl:"
|
description: >- # this means to ignore newlines until "baseurl:"
|
||||||
A digital garden or public notebook for The Bentway’s Digital and/as Public Space Micro-Residency.
|
A digital garden or public notebook for The Bentway’s Digital and/as Public Space Micro-Residency.
|
||||||
baseurl: "/" # the subpath of your site, e.g. /blog
|
baseurl: "/" # the subpath of your site, e.g. /blog
|
||||||
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
||||||
|
|
||||||
|
# Layout
|
||||||
|
excerpt_separator: "<!--more-->"
|
||||||
|
|
||||||
# Build settings
|
# Build settings
|
||||||
plugins:
|
plugins:
|
||||||
- jekyll-feed
|
- jekyll-feed
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
---
|
---
|
||||||
|
|
||||||
|
{{ content }}
|
||||||
|
28
index.md
28
index.md
@ -1,6 +1,28 @@
|
|||||||
---
|
---
|
||||||
# Feel free to add content and custom Front Matter to this file.
|
|
||||||
# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults
|
|
||||||
|
|
||||||
layout: home
|
layout: home
|
||||||
---
|
---
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
{% for post in site.posts %}
|
||||||
|
<li>
|
||||||
|
<a href="{{ post.url }}">{{ post.title }}</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
{% for post in site.posts %}
|
||||||
|
<div class="post_excerpt">
|
||||||
|
<article>
|
||||||
|
<h2 itemprop="headline">
|
||||||
|
<a href="{{ post.url | relative_url }}" rel="permalink">{{ post.title }}</a>
|
||||||
|
</h2>
|
||||||
|
<p class="excerpt" itemprop="description"><em>{% if post.excerpt %}
|
||||||
|
{{ post.excerpt | markdownify | strip_html }}
|
||||||
|
{% else %}
|
||||||
|
{{ post.content | markdownify | strip_html | truncate: 160 }}
|
||||||
|
{% endif %}</em></p>
|
||||||
|
</article>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user