@terrymooreii/sia 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_config.yml +3 -1
- package/docs/README.md +132 -0
- package/docs/creating-themes.md +772 -0
- package/docs/front-matter.md +557 -0
- package/docs/markdown-guide.md +536 -0
- package/docs/template-reference.md +581 -0
- package/lib/assets.js +1 -1
- package/lib/config.js +3 -1
- package/lib/content.js +74 -2
- package/lib/templates.js +3 -2
- package/package.json +1 -1
- package/readme.md +2 -1
- package/themes/developer/includes/hero.njk +6 -0
- package/themes/developer/pages/index.njk +1 -4
- package/themes/magazine/includes/hero.njk +8 -0
- package/themes/magazine/pages/index.njk +4 -9
- package/themes/main/includes/hero.njk +6 -0
- package/themes/main/pages/index.njk +1 -4
- package/themes/minimal/includes/hero.njk +6 -0
- package/themes/minimal/pages/index.njk +2 -5
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
{% block content %}
|
|
4
4
|
<div class="home-page">
|
|
5
|
-
|
|
6
|
-
<h1 class="hero-title">{{ site.title }}</h1>
|
|
7
|
-
<p class="hero-description">{{ site.description }}</p>
|
|
8
|
-
</section>
|
|
5
|
+
{% include "hero.njk" %}
|
|
9
6
|
|
|
10
7
|
<section class="posts-section">
|
|
11
8
|
<div class="section-header">
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
{% extends "base.njk" %}
|
|
2
2
|
|
|
3
3
|
{% block content %}
|
|
4
|
-
|
|
5
|
-
<div class="hero-content">
|
|
6
|
-
<h1 class="hero-title">{{ site.title }}</h1>
|
|
7
|
-
<p class="hero-subtitle">{{ site.description }}</p>
|
|
8
|
-
</div>
|
|
9
|
-
</section>
|
|
4
|
+
{% include "hero.njk" %}
|
|
10
5
|
|
|
11
6
|
{% set featuredPost = collections.posts[0] %}
|
|
12
7
|
{% if featuredPost %}
|
|
@@ -17,7 +12,7 @@
|
|
|
17
12
|
<span class="featured-category">{{ featuredPost.tags[0] }}</span>
|
|
18
13
|
{% endif %}
|
|
19
14
|
<h2 class="featured-title">
|
|
20
|
-
<a href="{{ featuredPost.url }}">{{ featuredPost.title }}</a>
|
|
15
|
+
<a href="{{ featuredPost.url | url }}">{{ featuredPost.title }}</a>
|
|
21
16
|
</h2>
|
|
22
17
|
<p class="featured-excerpt">{{ featuredPost.excerpt | excerpt(200) }}</p>
|
|
23
18
|
<div class="featured-meta">
|
|
@@ -44,7 +39,7 @@
|
|
|
44
39
|
<span class="card-category">{{ post.tags[0] }}</span>
|
|
45
40
|
{% endif %}
|
|
46
41
|
<h3 class="card-title">
|
|
47
|
-
<a href="{{ post.url }}">{{ post.title }}</a>
|
|
42
|
+
<a href="{{ post.url | url }}">{{ post.title }}</a>
|
|
48
43
|
</h3>
|
|
49
44
|
<p class="card-excerpt">{{ post.excerpt | excerpt(100) }}</p>
|
|
50
45
|
<div class="card-meta">
|
|
@@ -70,7 +65,7 @@
|
|
|
70
65
|
<article class="note-preview">
|
|
71
66
|
<time datetime="{{ note.date | date('iso') }}">{{ note.date | date('short') }}</time>
|
|
72
67
|
<p>{{ note.excerpt | excerpt(150) }}</p>
|
|
73
|
-
<a href="{{ note.url }}" class="note-link">Read note →</a>
|
|
68
|
+
<a href="{{ note.url | url }}" class="note-link">Read note →</a>
|
|
74
69
|
</article>
|
|
75
70
|
{% endfor %}
|
|
76
71
|
</div>
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
{% extends "base.njk" %}
|
|
2
2
|
|
|
3
3
|
{% block content %}
|
|
4
|
-
|
|
5
|
-
<h1 class="hero-title">{{ site.title }}</h1>
|
|
6
|
-
<p class="hero-description">{{ site.description }}</p>
|
|
7
|
-
</section>
|
|
4
|
+
{% include "hero.njk" %}
|
|
8
5
|
|
|
9
6
|
<section class="section">
|
|
10
7
|
<div class="section-header">
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
{% extends "base.njk" %}
|
|
2
2
|
|
|
3
3
|
{% block content %}
|
|
4
|
-
|
|
5
|
-
<h1 class="hero-title">{{ site.title }}</h1>
|
|
6
|
-
<p class="hero-description">{{ site.description }}</p>
|
|
7
|
-
</section>
|
|
4
|
+
{% include "hero.njk" %}
|
|
8
5
|
|
|
9
6
|
<section class="section">
|
|
10
7
|
<div class="section-header">
|
|
@@ -47,7 +44,7 @@
|
|
|
47
44
|
<div class="notes-grid">
|
|
48
45
|
{% for note in collections.notes | limit(3) %}
|
|
49
46
|
<article class="note-card">
|
|
50
|
-
<div class="note-card-content">{{ note.
|
|
47
|
+
<div class="note-card-content">{{ note.excerptHtml | safe }}</div>
|
|
51
48
|
<footer class="note-card-footer">
|
|
52
49
|
<time datetime="{{ note.date | date('iso') }}">{{ note.date | date('full_time') }}</time>
|
|
53
50
|
<a href="{{ note.url }}" class="note-card-link">View →</a>
|