Skip to content

Commit 7924dd6

Browse files
authored
Merge pull request #408 from ipfs/automatic-listing
feat: use frontmatter title and description, automatic lists
2 parents 675403b + c6e8718 commit 7924dd6

26 files changed

+103
-116
lines changed

.markdownlint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"fenced-code-language": false,
88
"blanks-around-lists": false,
99
"single-trailing-newline": false,
10+
"link-fragments": false,
1011
"line-length": false
1112
}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SPEC_GENERATOR_VER=v1.2.0
1+
SPEC_GENERATOR_VER=v1.3.1
22

33
all: website
44

src/_includes/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width">
66
<title>{% if title != 'Home' %}{{ title }} | {% endif %}IPFS Standards</title>
7+
{% if description %}<meta name="description" content="{{ description | singleLine }}">{% endif %}
78
<link rel="canonical" href="{{ page.url | permalink }}">
89
<link rel="stylesheet" href="/css/index.css">
910
<link rel="stylesheet" href="/css/ipseity.min.css">

src/_includes/list.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<dl>
2+
{% assign sortedPosts = posts | sortByOrder %}
3+
{%- for post in sortedPosts -%}
4+
<dt><a href="{{ post.url }}">{{ post.data.title }}</a></dt>
5+
<dd>{{ post.data.description }}</dd>
6+
{%- endfor -%}
7+
</dl>

src/_includes/specs/architecture.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/_includes/specs/http-gateways/http.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/_includes/specs/http-gateways/web.html

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/_includes/specs/ipns.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/_includes/specs/meta.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/architecture/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% include 'header.html' %}
99

1010
<main>
11-
{% include 'specs/architecture.html' %}
11+
{% include 'list.html', posts: collections.architecture %}
1212
</main>
1313

1414
{% include 'footer.html' %}

0 commit comments

Comments
 (0)