File tree Expand file tree Collapse file tree 5 files changed +10
-16
lines changed
fixtures/fs/theme/keep/templates/pages/post Expand file tree Collapse file tree 5 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 6464 <div >
6565 {{ #if links.previousPost }}
6666 Previous post:
67- <a href =" {{ links.previousPost.permalink }} " >« {{ links.previousPost.title }} </a >
67+ <a href =" {{ links.previousPost.permalink }} " >{{ links.previousPost.title }} </a >
6868 {{ else }}
6969 this is the first post!
7070 {{ /if }}
7373 <div >
7474 {{ #if links.nextPost }}
7575 Next post:
76- <a href =" {{ links.nextPost.permalink }} " >{{ links.nextPost.title }} » </a >
76+ <a href =" {{ links.nextPost.permalink }} " >{{ links.nextPost.title }} </a >
7777 {{ else }}
7878 this is the last post!
7979 {{ /if }}
Original file line number Diff line number Diff line change 6464 <div >
6565 {{ #if links.previousPost }}
6666 Previous post:
67- <a href =" {{ links.previousPost.permalink }} " >« {{ links.previousPost.title }} </a >
67+ <a href =" {{ links.previousPost.permalink }} " >{{ links.previousPost.title }} </a >
6868 {{ else }}
6969 this is the first post!
7070 {{ /if }}
7373 <div >
7474 {{ #if links.nextPost }}
7575 Next post:
76- <a href =" {{ links.nextPost.permalink }} " >{{ links.nextPost.title }} » </a >
76+ <a href =" {{ links.nextPost.permalink }} " >{{ links.nextPost.title }} </a >
7777 {{ else }}
7878 this is the last post!
7979 {{ /if }}
Original file line number Diff line number Diff line change 6464 <div >
6565 {{ #if links.previousPost }}
6666 Previous post:
67- <a href =" {{ links.previousPost.permalink }} " >« {{ links.previousPost.title }} </a >
67+ <a href =" {{ links.previousPost.permalink }} " >{{ links.previousPost.title }} </a >
6868 {{ else }}
6969 this is the first post!
7070 {{ /if }}
7373 <div >
7474 {{ #if links.nextPost }}
7575 Next post:
76- <a href =" {{ links.nextPost.permalink }} " >{{ links.nextPost.title }} » </a >
76+ <a href =" {{ links.nextPost.permalink }} " >{{ links.nextPost.title }} </a >
7777 {{ else }}
7878 this is the last post!
7979 {{ /if }}
Original file line number Diff line number Diff line change 9494 <div >
9595 {{ #if links.previousPost }}
9696 Previous post:
97- <a href =" {{ links.previousPost.permalink }} " >« {{ links.previousPost.title }} </a >
97+ <a href =" {{ links.previousPost.permalink }} " >{{ links.previousPost.title }} </a >
9898 {{ else }}
9999 this is the first post!
100100 {{ /if }}
103103 <div >
104104 {{ #if links.nextPost }}
105105 Next post:
106- <a href =" {{ links.nextPost.permalink }} " >{{ links.nextPost.title }} » </a >
106+ <a href =" {{ links.nextPost.permalink }} " >{{ links.nextPost.title }} </a >
107107 {{ else }}
108108 this is the last post!
109109 {{ /if }}
Original file line number Diff line number Diff line change @@ -129,10 +129,7 @@ test('E2E Magazine - Post Pages', async t => {
129129
130130 if ( post . links . previousPost ) {
131131 const hasPrevLink = allLinks . some ( link => {
132- const linkText = $ ( link ) . text ( )
133- . replace ( / ^ « \s * / , '' )
134- . replace ( / \s * « \s * $ / , '' )
135- . trim ( )
132+ const linkText = $ ( link ) . text ( ) . trim ( )
136133 return (
137134 linkText === post . links . previousPost . title &&
138135 $ ( link ) . attr ( 'href' ) === post . links . previousPost . permalink
@@ -147,10 +144,7 @@ test('E2E Magazine - Post Pages', async t => {
147144
148145 if ( post . links . nextPost ) {
149146 const hasNextLink = allLinks . some ( link => {
150- const linkText = $ ( link ) . text ( )
151- . replace ( / \s * » \s * $ / , '' )
152- . replace ( / ^ » \s * / , '' )
153- . trim ( )
147+ const linkText = $ ( link ) . text ( ) . trim ( )
154148 return (
155149 linkText === post . links . nextPost . title &&
156150 $ ( link ) . attr ( 'href' ) === post . links . nextPost . permalink
You can’t perform that action at this time.
0 commit comments