回答編集履歴
1
回答のコメントをもとに、テンプレートの不備追記
answer
CHANGED
@@ -1,6 +1,18 @@
|
|
1
|
+
いくつかのテンプレートで書き方が間違っています。
|
1
|
-
`index.html`で
|
2
|
+
特に、`index.html`では詳細リンクのURLの記述が間違っているため、正しいリンクになっていません。
|
2
3
|
|
4
|
+
detail.html
|
3
5
|
```diff
|
6
|
+
-<h2>{( post.title )}</h2>
|
7
|
+
-<p>{( post.detail )}</p>
|
8
|
+
-<p>{( post.due.date() )}</p>
|
9
|
+
+<h2>{{ post.title }}</h2>
|
10
|
+
+<p>{{ post.detail }}</p>
|
11
|
+
+<p>{{ post.due.date() }}</p>
|
12
|
+
```
|
13
|
+
|
14
|
+
index.html
|
15
|
+
```diff
|
4
16
|
- <a href="detail/{(post.id)}" role="button">Detail</a>
|
5
17
|
+ <a href="detail/{{post.id}}" role="button">Detail</a>
|
6
18
|
```
|