@oktis-works/cms 0.13.22 → 0.13.24
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/dist/generated/app-versions.js +1 -1
- package/dist/scaffold.d.ts.map +1 -1
- package/dist/scaffold.js +80 -17
- package/dist/scaffold.js.map +1 -1
- package/dist/themes/default/404.astro +8 -0
- package/dist/themes/default/archive.astro +52 -0
- package/dist/themes/default/dist/theme.css +1015 -0
- package/dist/themes/default/index.astro +29 -0
- package/dist/themes/default/page-about.astro +52 -0
- package/dist/themes/default/page-blog.astro +52 -0
- package/dist/themes/default/page-contact.astro +56 -0
- package/dist/themes/default/page-home.astro +99 -0
- package/dist/themes/default/page.astro +31 -0
- package/dist/themes/default/post-first-post.astro +51 -0
- package/dist/themes/default/post-second-post.astro +51 -0
- package/dist/themes/default/screenshot.png +0 -0
- package/dist/themes/default/single.astro +51 -0
- package/dist/themes/default/src/theme.css +1014 -0
- package/dist/themes/default/theme.json +57 -0
- package/package.json +6 -5
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<main data-template="index" data-type="{{page.type}}" class="page">
|
|
2
|
+
<header class="page-header">
|
|
3
|
+
<div class="container">
|
|
4
|
+
<h1>{{settings.theme.siteTitle || page.title}}</h1>
|
|
5
|
+
{{#if settings.theme.siteDescription}}
|
|
6
|
+
<p class="page-description">{{settings.theme.siteDescription}}</p>
|
|
7
|
+
{{/if}}
|
|
8
|
+
</div>
|
|
9
|
+
</header>
|
|
10
|
+
|
|
11
|
+
<div class="page-content container">
|
|
12
|
+
{{#if (field "content")}}
|
|
13
|
+
<div class="entry-content">{{{field "content"}}}</div>
|
|
14
|
+
{{else if content.text}}
|
|
15
|
+
<p>{{content.text}}</p>
|
|
16
|
+
{{/if}}
|
|
17
|
+
|
|
18
|
+
{{#if items}}
|
|
19
|
+
<section class="listing">
|
|
20
|
+
{{#each items}}
|
|
21
|
+
<article class="card entry entry--item">
|
|
22
|
+
<h2 class="entry__title"><a href="/{{slug}}">{{title}}</a></h2>
|
|
23
|
+
{{#if excerpt}}<p class="entry__excerpt">{{excerpt}}</p>{{/if}}
|
|
24
|
+
</article>
|
|
25
|
+
{{/each}}
|
|
26
|
+
</section>
|
|
27
|
+
{{/if}}
|
|
28
|
+
</div>
|
|
29
|
+
</main>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<main data-template="page-about" data-type="page" class="page-about">
|
|
2
|
+
<header class="site-header">
|
|
3
|
+
<nav class="nav" role="navigation" aria-label="Main navigation">
|
|
4
|
+
<a href="/" class="site-brand" aria-label="Home">
|
|
5
|
+
{{site.title}}
|
|
6
|
+
</a>
|
|
7
|
+
<ul class="nav-menu">
|
|
8
|
+
<li><a href="/about">{{#if menus.header.bySlug.about}}{{menus.header.bySlug.about.label}}{{else}}About{{/if}}</a></li>
|
|
9
|
+
<li><a href="#contact">Contact</a></li>
|
|
10
|
+
<li><a href="/blog">{{#if menus.header.bySlug.blog}}{{menus.header.bySlug.blog.label}}{{else}}Blog{{/if}}</a></li>
|
|
11
|
+
</ul>
|
|
12
|
+
</nav>
|
|
13
|
+
</header>
|
|
14
|
+
|
|
15
|
+
<section class="page-header">
|
|
16
|
+
<div class="container">
|
|
17
|
+
<h1>{{field "title"}}</h1>
|
|
18
|
+
{{#if (field "excerpt")}}
|
|
19
|
+
<p class="page-excerpt">{{field "excerpt"}}</p>
|
|
20
|
+
{{/if}}
|
|
21
|
+
</div>
|
|
22
|
+
</header>
|
|
23
|
+
|
|
24
|
+
<div class="page-content container">
|
|
25
|
+
{{#if (field "content")}}
|
|
26
|
+
<div class="entry-content">{{{field "content"}}}</div>
|
|
27
|
+
{{else if (field "blocks")}}
|
|
28
|
+
<div class="entry-content">
|
|
29
|
+
{{#each fields.blocks}}
|
|
30
|
+
{{#if (eq type 'heading')}}
|
|
31
|
+
<h{{level}}>{{content}}</h{{level}}>
|
|
32
|
+
{{else if (eq type 'paragraph')}}
|
|
33
|
+
<p>{{content}}</p>
|
|
34
|
+
{{else if (eq type 'image')}}
|
|
35
|
+
<figure><img src="{{content.url}}" alt="{{content.alt}}" /></figure>
|
|
36
|
+
{{/if}}
|
|
37
|
+
{{/each}}
|
|
38
|
+
</div>
|
|
39
|
+
{{/if}}
|
|
40
|
+
</div>
|
|
41
|
+
</main>
|
|
42
|
+
|
|
43
|
+
<footer class="site-footer" role="contentinfo">
|
|
44
|
+
<div class="container">
|
|
45
|
+
<nav class="footer-nav" aria-label="Footer navigation">
|
|
46
|
+
{{#each menus.footer.items}}
|
|
47
|
+
<a href="{{url}}">{{label}}</a>
|
|
48
|
+
{{/each}}
|
|
49
|
+
</nav>
|
|
50
|
+
<p class="copyright">© {{new Date().getFullYear()}} {{site.title}}. All rights reserved.</p>
|
|
51
|
+
</div>
|
|
52
|
+
</footer>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<main data-template="page-blog" data-type="page" class="page-blog">
|
|
2
|
+
<header class="page-header">
|
|
3
|
+
<div class="container">
|
|
4
|
+
<h1>{{field "title"}}</h1>
|
|
5
|
+
{{#if (field "description")}}
|
|
6
|
+
<p class="page-description">{{field "description"}}</p>
|
|
7
|
+
{{/if}}
|
|
8
|
+
</div>
|
|
9
|
+
</header>
|
|
10
|
+
|
|
11
|
+
<section class="posts-section" aria-labelledby="posts-title">
|
|
12
|
+
<div class="container">
|
|
13
|
+
{{#if items}}
|
|
14
|
+
<div class="posts-grid">
|
|
15
|
+
{{#each items}}
|
|
16
|
+
<article class="post-card">
|
|
17
|
+
{{#if thumbnail.url}}
|
|
18
|
+
<figure class="post-card__image">
|
|
19
|
+
<a href="/blog/{{slug}}">
|
|
20
|
+
<img src="{{thumbnail.url}}" alt="{{thumbnail.alt}}" loading="lazy" />
|
|
21
|
+
</a>
|
|
22
|
+
</figure>
|
|
23
|
+
{{/if}}
|
|
24
|
+
<div class="post-card__content">
|
|
25
|
+
<header class="post-card__header">
|
|
26
|
+
<time class="post-card__date" datetime="{{published_at}}">
|
|
27
|
+
{{#if published_at}}
|
|
28
|
+
{{formatDate published_at}}
|
|
29
|
+
{{/if}}
|
|
30
|
+
</time>
|
|
31
|
+
</header>
|
|
32
|
+
<h2 class="post-card__title"><a href="/blog/{{slug}}">{{title}}</a></h2>
|
|
33
|
+
{{#if excerpt}}
|
|
34
|
+
<p class="post-card__excerpt">{{excerpt}}</p>
|
|
35
|
+
{{/if}}
|
|
36
|
+
<a href="/blog/{{slug}}" class="btn btn-outline">Continuar lendo</a>
|
|
37
|
+
</div>
|
|
38
|
+
</article>
|
|
39
|
+
{{/each}}
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
{{#if pagination}}
|
|
43
|
+
<nav class="pagination" aria-label="Paginação">
|
|
44
|
+
{{pagination}}
|
|
45
|
+
</nav>
|
|
46
|
+
{{/if}}
|
|
47
|
+
{{else}}
|
|
48
|
+
<p class="no-posts">Nenhum artigo publicado ainda.</p>
|
|
49
|
+
{{/if}}
|
|
50
|
+
</div>
|
|
51
|
+
</section>
|
|
52
|
+
</main>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<main data-template="page-contact" data-type="page" class="page-contact">
|
|
2
|
+
<header class="site-header">
|
|
3
|
+
<nav class="nav" role="navigation" aria-label="Main navigation">
|
|
4
|
+
<a href="/" class="site-brand" aria-label="Home">
|
|
5
|
+
{{site.title}}
|
|
6
|
+
</a>
|
|
7
|
+
<ul class="nav-menu">
|
|
8
|
+
<li><a href="/about">{{#if menus.header.bySlug.about}}{{menus.header.bySlug.about.label}}{{else}}About{{/if}}</a></li>
|
|
9
|
+
<li><a href="#contact">Contact</a></li>
|
|
10
|
+
<li><a href="/blog">{{#if menus.header.bySlug.blog}}{{menus.header.bySlug.blog.label}}{{else}}Blog{{/if}}</a></li>
|
|
11
|
+
</ul>
|
|
12
|
+
</nav>
|
|
13
|
+
</header>
|
|
14
|
+
|
|
15
|
+
<section class="page-header">
|
|
16
|
+
<div class="container">
|
|
17
|
+
<h1>{{field "title"}}</h1>
|
|
18
|
+
{{#if (field "excerpt")}}
|
|
19
|
+
<p class="page-excerpt">{{field "excerpt"}}</p>
|
|
20
|
+
{{/if}}
|
|
21
|
+
</div>
|
|
22
|
+
</section>
|
|
23
|
+
|
|
24
|
+
<section class="contact" id="contact" aria-labelledby="contact-title">
|
|
25
|
+
<div class="container">
|
|
26
|
+
<h2 id="contact-title">Get in Touch</h2>
|
|
27
|
+
<p class="contact-intro">{{settings.contactText || 'Fill out the form or send us an email at hello@example.com — we would love to hear from you.'}}</p>
|
|
28
|
+
<form class="contact-form" action="mailto:hello@example.com" method="POST" enctype="text/plain">
|
|
29
|
+
<div class="form-group">
|
|
30
|
+
<label for="contact-name">Name</label>
|
|
31
|
+
<input type="text" id="contact-name" name="name" required />
|
|
32
|
+
</div>
|
|
33
|
+
<div class="form-group">
|
|
34
|
+
<label for="contact-email">E-mail</label>
|
|
35
|
+
<input type="email" id="contact-email" name="email" required />
|
|
36
|
+
</div>
|
|
37
|
+
<div class="form-group">
|
|
38
|
+
<label for="contact-message">Message</label>
|
|
39
|
+
<textarea id="contact-message" name="message" rows="5" required></textarea>
|
|
40
|
+
</div>
|
|
41
|
+
<button type="submit" class="btn btn-primary">Send</button>
|
|
42
|
+
</form>
|
|
43
|
+
</div>
|
|
44
|
+
</section>
|
|
45
|
+
</main>
|
|
46
|
+
|
|
47
|
+
<footer class="site-footer" role="contentinfo">
|
|
48
|
+
<div class="container">
|
|
49
|
+
<nav class="footer-nav" aria-label="Footer navigation">
|
|
50
|
+
{{#each menus.footer.items}}
|
|
51
|
+
<a href="{{url}}">{{label}}</a>
|
|
52
|
+
{{/each}}
|
|
53
|
+
</nav>
|
|
54
|
+
<p class="copyright">© {{new Date().getFullYear()}} {{site.title}}. All rights reserved.</p>
|
|
55
|
+
</div>
|
|
56
|
+
</footer>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<main data-template="page-home" data-type="page" class="page-home">
|
|
2
|
+
<header class="site-header">
|
|
3
|
+
<nav class="nav" role="navigation" aria-label="Main navigation">
|
|
4
|
+
<a href="/" class="site-brand" aria-label="Home">
|
|
5
|
+
{{site.title}}
|
|
6
|
+
</a>
|
|
7
|
+
<ul class="nav-menu">
|
|
8
|
+
<li><a href="/about">{{#if menus.header.bySlug.about}}{{menus.header.bySlug.about.label}}{{else}}About{{/if}}</a></li>
|
|
9
|
+
<li><a href="#contact">Contact</a></li>
|
|
10
|
+
<li><a href="/blog">{{#if menus.header.bySlug.blog}}{{menus.header.bySlug.blog.label}}{{else}}Blog{{/if}}</a></li>
|
|
11
|
+
</ul>
|
|
12
|
+
</nav>
|
|
13
|
+
</header>
|
|
14
|
+
|
|
15
|
+
<section class="hero" id="hero" aria-labelledby="hero-title">
|
|
16
|
+
<div class="hero-content">
|
|
17
|
+
<h1 id="hero-title">{{field "title"}}</h1>
|
|
18
|
+
{{#if (field "subtitle")}}
|
|
19
|
+
<p class="hero-subtitle">{{field "subtitle"}}</p>
|
|
20
|
+
{{/if}}
|
|
21
|
+
<a href="/blog" class="btn btn-primary" role="button">View Blog</a>
|
|
22
|
+
</div>
|
|
23
|
+
</section>
|
|
24
|
+
|
|
25
|
+
<section class="about-preview" id="about" aria-labelledby="about-title">
|
|
26
|
+
<div class="container">
|
|
27
|
+
<h2 id="about-title">About Us</h2>
|
|
28
|
+
{{#if (field "aboutPreview.html")}}
|
|
29
|
+
<div class="about-content">{{{field "aboutPreview.html"}}}</div>
|
|
30
|
+
{{else}}
|
|
31
|
+
<p>About section content will appear here when configured.</p>
|
|
32
|
+
{{/if}}
|
|
33
|
+
<a href="/about" class="btn btn-secondary">Read more →</a>
|
|
34
|
+
</div>
|
|
35
|
+
</section>
|
|
36
|
+
|
|
37
|
+
<section class="latest-posts" aria-labelledby="latest-title">
|
|
38
|
+
<div class="container">
|
|
39
|
+
<header class="section-header">
|
|
40
|
+
<h2 id="latest-title">Latest Articles</h2>
|
|
41
|
+
</header>
|
|
42
|
+
{{#if items}}
|
|
43
|
+
<div class="posts-grid">
|
|
44
|
+
{{#each items}}
|
|
45
|
+
<article class="post-card">
|
|
46
|
+
{{#if thumbnail.url}}
|
|
47
|
+
<figure class="post-card__image">
|
|
48
|
+
<img src="{{thumbnail.url}}" alt="{{thumbnail.alt}}" loading="lazy" />
|
|
49
|
+
</figure>
|
|
50
|
+
{{/if}}
|
|
51
|
+
<div class="post-card__content">
|
|
52
|
+
<h3 class="post-card__title"><a href="/blog/{{slug}}">{{title}}</a></h3>
|
|
53
|
+
{{#if excerpt}}
|
|
54
|
+
<p class="post-card__excerpt">{{excerpt}}</p>
|
|
55
|
+
{{/if}}
|
|
56
|
+
<a href="/blog/{{slug}}" class="btn btn-outline">Continue reading</a>
|
|
57
|
+
</div>
|
|
58
|
+
</article>
|
|
59
|
+
{{/each}}
|
|
60
|
+
</div>
|
|
61
|
+
{{else}}
|
|
62
|
+
<p class="no-posts">No articles published yet.</p>
|
|
63
|
+
{{/if}}
|
|
64
|
+
</div>
|
|
65
|
+
</section>
|
|
66
|
+
|
|
67
|
+
<section class="contact" id="contact" aria-labelledby="contact-title">
|
|
68
|
+
<div class="container">
|
|
69
|
+
<h2 id="contact-title">Get in Touch</h2>
|
|
70
|
+
<p class="contact-intro">{{settings.contactText || 'Fill out the form or send us an email at hello@example.com — we would love to hear from you.'}}</p>
|
|
71
|
+
<form class="contact-form" action="mailto:hello@example.com" method="POST" enctype="text/plain">
|
|
72
|
+
<div class="form-group">
|
|
73
|
+
<label for="contact-name">Name</label>
|
|
74
|
+
<input type="text" id="contact-name" name="name" required />
|
|
75
|
+
</div>
|
|
76
|
+
<div class="form-group">
|
|
77
|
+
<label for="contact-email">E-mail</label>
|
|
78
|
+
<input type="email" id="contact-email" name="email" required />
|
|
79
|
+
</div>
|
|
80
|
+
<div class="form-group">
|
|
81
|
+
<label for="contact-message">Message</label>
|
|
82
|
+
<textarea id="contact-message" name="message" rows="5" required></textarea>
|
|
83
|
+
</div>
|
|
84
|
+
<button type="submit" class="btn btn-primary">Send</button>
|
|
85
|
+
</form>
|
|
86
|
+
</div>
|
|
87
|
+
</section>
|
|
88
|
+
</main>
|
|
89
|
+
|
|
90
|
+
<footer class="site-footer" role="contentinfo">
|
|
91
|
+
<div class="container">
|
|
92
|
+
<nav class="footer-nav" aria-label="Footer navigation">
|
|
93
|
+
{{#each menus.footer.items}}
|
|
94
|
+
<a href="{{url}}">{{label}}</a>
|
|
95
|
+
{{/each}}
|
|
96
|
+
</nav>
|
|
97
|
+
<p class="copyright">© {{new Date().getFullYear()}} {{site.title}}. All rights reserved.</p>
|
|
98
|
+
</div>
|
|
99
|
+
</footer>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<main data-template="page" data-type="{{page.type}}" class="page">
|
|
2
|
+
<header class="page-header">
|
|
3
|
+
<div class="container">
|
|
4
|
+
<h1>{{field "title"}}</h1>
|
|
5
|
+
{{#if (field "excerpt")}}
|
|
6
|
+
<p class="page-excerpt">{{field "excerpt"}}</p>
|
|
7
|
+
{{/if}}
|
|
8
|
+
{{#if settings.theme.siteDescription}}
|
|
9
|
+
<p class="site-description">{{settings.theme.siteDescription}}</p>
|
|
10
|
+
{{/if}}
|
|
11
|
+
</div>
|
|
12
|
+
</header>
|
|
13
|
+
|
|
14
|
+
<div class="page-content container">
|
|
15
|
+
{{#if (field "content")}}
|
|
16
|
+
<div class="entry-content">{{{field "content"}}}</div>
|
|
17
|
+
{{else if (field "blocks")}}
|
|
18
|
+
<div class="entry-content">
|
|
19
|
+
{{#each fields.blocks}}
|
|
20
|
+
{{#if (eq type 'heading')}}
|
|
21
|
+
<h{{level}}>{{content}}</h{{level}}>
|
|
22
|
+
{{else if (eq type 'paragraph')}}
|
|
23
|
+
<p>{{content}}</p>
|
|
24
|
+
{{else if (eq type 'image')}}
|
|
25
|
+
<figure><img src="{{content.url}}" alt="{{content.alt}}" /></figure>
|
|
26
|
+
{{/if}}
|
|
27
|
+
{{/each}}
|
|
28
|
+
</div>
|
|
29
|
+
{{/if}}
|
|
30
|
+
</div>
|
|
31
|
+
</main>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<article data-template="post-first-post" data-type="post" class="post post-single">
|
|
2
|
+
<header class="post-header">
|
|
3
|
+
<div class="container">
|
|
4
|
+
<h1 class="post-title">{{field "title"}}</h1>
|
|
5
|
+
<div class="post-meta">
|
|
6
|
+
<time datetime="{{content.published_at}}" class="post-date">
|
|
7
|
+
{{#if content.published_at}}
|
|
8
|
+
{{formatDate content.published_at}}
|
|
9
|
+
{{/if}}
|
|
10
|
+
</time>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</header>
|
|
14
|
+
|
|
15
|
+
<div class="post-body container">
|
|
16
|
+
{{#if (field "content")}}
|
|
17
|
+
<div class="entry-content">{{{field "content"}}}</div>
|
|
18
|
+
{{else if (field "blocks")}}
|
|
19
|
+
<div class="entry-content">
|
|
20
|
+
{{#each fields.blocks}}
|
|
21
|
+
{{#if (eq type 'heading')}}
|
|
22
|
+
<h{{level}}>{{content}}</h{{level}}>
|
|
23
|
+
{{else if (eq type 'paragraph')}}
|
|
24
|
+
<p>{{content}}</p>
|
|
25
|
+
{{else if (eq type 'image')}}
|
|
26
|
+
<figure><img src="{{content.url}}" alt="{{content.alt}}" /></figure>
|
|
27
|
+
{{/if}}
|
|
28
|
+
{{/each}}
|
|
29
|
+
</div>
|
|
30
|
+
{{/if}}
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<footer class="post-footer">
|
|
34
|
+
<div class="container">
|
|
35
|
+
<nav class="post-nav" aria-label="Post navigation">
|
|
36
|
+
{{#if prevPost}}
|
|
37
|
+
<a href="/{{page.type}}/{{prevPost.slug}}" class="post-nav__prev" rel="prev">
|
|
38
|
+
<span class="post-nav__label">Previous article</span>
|
|
39
|
+
<span class="post-nav__title">{{prevPost.title}}</span>
|
|
40
|
+
</a>
|
|
41
|
+
{{/if}}
|
|
42
|
+
{{#if nextPost}}
|
|
43
|
+
<a href="/{{page.type}}/{{nextPost.slug}}" class="post-nav__next" rel="next">
|
|
44
|
+
<span class="post-nav__label">Next article</span>
|
|
45
|
+
<span class="post-nav__title">{{nextPost.title}}</span>
|
|
46
|
+
</a>
|
|
47
|
+
{{/if}}
|
|
48
|
+
</nav>
|
|
49
|
+
</div>
|
|
50
|
+
</footer>
|
|
51
|
+
</article>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<article data-template="post-second-post" data-type="post" class="post post-single">
|
|
2
|
+
<header class="post-header">
|
|
3
|
+
<div class="container">
|
|
4
|
+
<h1 class="post-title">{{field "title"}}</h1>
|
|
5
|
+
<div class="post-meta">
|
|
6
|
+
<time datetime="{{content.published_at}}" class="post-date">
|
|
7
|
+
{{#if content.published_at}}
|
|
8
|
+
{{formatDate content.published_at}}
|
|
9
|
+
{{/if}}
|
|
10
|
+
</time>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</header>
|
|
14
|
+
|
|
15
|
+
<div class="post-body container">
|
|
16
|
+
{{#if (field "content")}}
|
|
17
|
+
<div class="entry-content">{{{field "content"}}}</div>
|
|
18
|
+
{{else if (field "blocks")}}
|
|
19
|
+
<div class="entry-content">
|
|
20
|
+
{{#each fields.blocks}}
|
|
21
|
+
{{#if (eq type 'heading')}}
|
|
22
|
+
<h{{level}}>{{content}}</h{{level}}>
|
|
23
|
+
{{else if (eq type 'paragraph')}}
|
|
24
|
+
<p>{{content}}</p>
|
|
25
|
+
{{else if (eq type 'image')}}
|
|
26
|
+
<figure><img src="{{content.url}}" alt="{{content.alt}}" /></figure>
|
|
27
|
+
{{/if}}
|
|
28
|
+
{{/each}}
|
|
29
|
+
</div>
|
|
30
|
+
{{/if}}
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<footer class="post-footer">
|
|
34
|
+
<div class="container">
|
|
35
|
+
<nav class="post-nav" aria-label="Post navigation">
|
|
36
|
+
{{#if prevPost}}
|
|
37
|
+
<a href="/{{page.type}}/{{prevPost.slug}}" class="post-nav__prev" rel="prev">
|
|
38
|
+
<span class="post-nav__label">Previous article</span>
|
|
39
|
+
<span class="post-nav__title">{{prevPost.title}}</span>
|
|
40
|
+
</a>
|
|
41
|
+
{{/if}}
|
|
42
|
+
{{#if nextPost}}
|
|
43
|
+
<a href="/{{page.type}}/{{nextPost.slug}}" class="post-nav__next" rel="next">
|
|
44
|
+
<span class="post-nav__label">Next article</span>
|
|
45
|
+
<span class="post-nav__title">{{nextPost.title}}</span>
|
|
46
|
+
</a>
|
|
47
|
+
{{/if}}
|
|
48
|
+
</nav>
|
|
49
|
+
</div>
|
|
50
|
+
</footer>
|
|
51
|
+
</article>
|
|
Binary file
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<article data-template="single" data-type="{{page.type}}" class="post post-single">
|
|
2
|
+
<header class="post-header">
|
|
3
|
+
<div class="container">
|
|
4
|
+
<h1 class="post-title">{{field "title"}}</h1>
|
|
5
|
+
<div class="post-meta">
|
|
6
|
+
<time datetime="{{content.published_at}}" class="post-date">
|
|
7
|
+
{{#if content.published_at}}
|
|
8
|
+
{{formatDate content.published_at}}
|
|
9
|
+
{{/if}}
|
|
10
|
+
</time>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</header>
|
|
14
|
+
|
|
15
|
+
<div class="post-body container">
|
|
16
|
+
{{#if (field "content")}}
|
|
17
|
+
<div class="entry-content">{{{field "content"}}}</div>
|
|
18
|
+
{{else if (field "blocks")}}
|
|
19
|
+
<div class="entry-content">
|
|
20
|
+
{{#each fields.blocks}}
|
|
21
|
+
{{#if (eq type 'heading')}}
|
|
22
|
+
<h{{level}}>{{content}}</h{{level}}>
|
|
23
|
+
{{else if (eq type 'paragraph')}}
|
|
24
|
+
<p>{{content}}</p>
|
|
25
|
+
{{else if (eq type 'image')}}
|
|
26
|
+
<figure><img src="{{content.url}}" alt="{{content.alt}}" /></figure>
|
|
27
|
+
{{/if}}
|
|
28
|
+
{{/each}}
|
|
29
|
+
</div>
|
|
30
|
+
{{/if}}
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<footer class="post-footer">
|
|
34
|
+
<div class="container">
|
|
35
|
+
<nav class="post-nav" aria-label="Navegação entre posts">
|
|
36
|
+
{{#if prevPost}}
|
|
37
|
+
<a href="/{{page.type}}/{{prevPost.slug}}" class="post-nav__prev" rel="prev">
|
|
38
|
+
<span class="post-nav__label">Artigo anterior</span>
|
|
39
|
+
<span class="post-nav__title">{{prevPost.title}}</span>
|
|
40
|
+
</a>
|
|
41
|
+
{{/if}}
|
|
42
|
+
{{#if nextPost}}
|
|
43
|
+
<a href="/{{page.type}}/{{nextPost.slug}}" class="post-nav__next" rel="next">
|
|
44
|
+
<span class="post-nav__label">Próximo artigo</span>
|
|
45
|
+
<span class="post-nav__title">{{nextPost.title}}</span>
|
|
46
|
+
</a>
|
|
47
|
+
{{/if}}
|
|
48
|
+
</nav>
|
|
49
|
+
</div>
|
|
50
|
+
</footer>
|
|
51
|
+
</article>
|