質問編集履歴

1

文法の修正

2019/09/02 06:31

投稿

aya_rin
aya_rin

スコア5

test CHANGED
File without changes
test CHANGED
@@ -16,15 +16,15 @@
16
16
 
17
17
  このように日付と時刻が書かれており、
18
18
 
19
+ <p>投稿日</p>
19
20
 
20
-
21
- <p>{{post.date}}</p>
21
+ <time :datetime="post.date">{{post.date}}</time>
22
22
 
23
23
 
24
24
 
25
25
  上記を記述すると、
26
26
 
27
-
27
+ 投稿日
28
28
 
29
29
  2018-09-04T14:57:36
30
30
 
@@ -38,7 +38,9 @@
38
38
 
39
39
 
40
40
 
41
+ 投稿日
42
+
41
-  2018-09-04
43
+ 2018-09-04
42
44
 
43
45
 
44
46
 
@@ -52,7 +54,11 @@
52
54
 
53
55
  ```
54
56
 
57
+ 投稿日
58
+
55
59
  2018-09-04T14:57:36
60
+
61
+
56
62
 
57
63
  上記のように日付と時刻が表示されてしまう
58
64
 
@@ -70,7 +76,9 @@
70
76
 
71
77
  <h2 class="title">{{ post.title.rendered }}</h2>
72
78
 
73
- <p>{{post.date}}</p>
79
+ <p>投稿日</p>
80
+
81
+ <time :datetime="post.date">{{post.date}}</time>
74
82
 
75
83
  <figure><img :src="post._embedded['wp:featuredmedia'][0].source_url" alt=""></figure>
76
84