@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terrymooreii/sia",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "A simple, powerful static site generator with markdown, front matter, and Nunjucks templates",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
package/readme.md CHANGED
@@ -105,7 +105,8 @@ site:
105
105
  url: "https://example.com"
106
106
  author: "Your Name"
107
107
 
108
- theme: main # 'main' or 'minimal'
108
+ theme:
109
+ name: main # Options: main, minimal, developer, magazine
109
110
 
110
111
  input: src
111
112
  output: dist
@@ -0,0 +1,6 @@
1
+ {% if config.theme.showHero %}
2
+ <section class="hero-section">
3
+ <h1 class="hero-title">{{ site.title }}</h1>
4
+ <p class="hero-description">{{ site.description }}</p>
5
+ </section>
6
+ {% endif %}
@@ -2,10 +2,7 @@
2
2
 
3
3
  {% block content %}
4
4
  <div class="home-page">
5
- <section class="hero-section">
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">
@@ -0,0 +1,8 @@
1
+ {% if config.theme.showHero %}
2
+ <section class="hero">
3
+ <div class="hero-content">
4
+ <h1 class="hero-title">{{ site.title }}</h1>
5
+ <p class="hero-subtitle">{{ site.description }}</p>
6
+ </div>
7
+ </section>
8
+ {% endif %}
@@ -1,12 +1,7 @@
1
1
  {% extends "base.njk" %}
2
2
 
3
3
  {% block content %}
4
- <section class="hero">
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>
@@ -0,0 +1,6 @@
1
+ {% if config.theme.showHero %}
2
+ <section class="hero">
3
+ <h1 class="hero-title">{{ site.title }}</h1>
4
+ <p class="hero-description">{{ site.description }}</p>
5
+ </section>
6
+ {% endif %}
@@ -1,10 +1,7 @@
1
1
  {% extends "base.njk" %}
2
2
 
3
3
  {% block content %}
4
- <section class="hero">
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">
@@ -0,0 +1,6 @@
1
+ {% if config.theme.showHero %}
2
+ <section class="hero">
3
+ <h1 class="hero-title">{{ site.title }}</h1>
4
+ <p class="hero-description">{{ site.description }}</p>
5
+ </section>
6
+ {% endif %}
@@ -1,10 +1,7 @@
1
1
  {% extends "base.njk" %}
2
2
 
3
3
  {% block content %}
4
- <section class="hero">
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.excerpt }}</div>
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>