Skip to content

Commit 895f4f6

Browse files
committed
[e2e magazine] Remove « and » from prev/next post links in default post template
1 parent 8174f04 commit 895f4f6

File tree

1 file changed

+75
-0
lines changed
  • src/e2e-tests/magazine/fixtures/fs/theme/keep/templates/pages/post

1 file changed

+75
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{{#>base page="post"}}
2+
<h1>{{settings.site.title}}</h1>
3+
4+
{{#with post}}
5+
6+
<h2>{{title}}</h2>
7+
8+
<div>{{> @partial-block .. }}</div>
9+
10+
<div>
11+
{{#each context.items as |layer|}}
12+
{{#if layer.title}}
13+
<a href="{{layer.permalink}}">{{layer.title}}</a> &raquo;
14+
{{/if}}
15+
{{/each}}
16+
</div>
17+
18+
<div>
19+
{{#if date}}
20+
Date: {{dateMedium date}}
21+
{{/if}}
22+
</div>
23+
24+
<div>
25+
{{#if tags}}
26+
Tags: {{tags}}
27+
{{/if}}
28+
</div>
29+
30+
<div>
31+
{{#if links.relations}}
32+
Relations:
33+
<ul>
34+
{{#each relation.entries as |entry|}}
35+
<li><a href="{{entry.permalink}}">{{entry.title}}</a></li>
36+
{{/each}}
37+
</ul>
38+
{{else}}
39+
no relations
40+
{{/if}}
41+
</div>
42+
43+
<div>
44+
{{#if links.mentionedBy}}
45+
Mentions:
46+
<ul>
47+
{{#each links.mentionedBy as |mentioner|}}
48+
<li><a href="{{mentioner.permalink}}">{{mentioner.title}}</a></li>
49+
{{/each}}
50+
</ul>
51+
{{else}}
52+
no mentions
53+
{{/if}}
54+
</div>
55+
56+
<div>
57+
{{#if links.previousPost}}
58+
Previous post:
59+
<a href="{{links.previousPost.permalink}}">{{links.previousPost.title}}</a>
60+
{{else}}
61+
this is the first post!
62+
{{/if}}
63+
</div>
64+
65+
<div>
66+
{{#if links.nextPost}}
67+
Next post:
68+
<a href="{{links.nextPost.permalink}}">{{links.nextPost.title}}</a>
69+
{{else}}
70+
this is the last post!
71+
{{/if}}
72+
</div>
73+
74+
{{/with}}
75+
{{/base}}

0 commit comments

Comments
 (0)