diff --git a/README.adoc b/README.adoc index fb587b1..fa24b4e 100644 --- a/README.adoc +++ b/README.adoc @@ -528,6 +528,8 @@ We update the "blog" Mustache templates. ---- {{> header}} +

{{title}}

+
{{#articles}} @@ -671,7 +673,8 @@ class IntegrationTests(@Autowired val restTemplate: TestRestTemplate) { println(">> Assert article page title, content and status code") val entity = restTemplate.getForEntity("/article/2") assertThat(entity.statusCode).isEqualTo(HttpStatus.OK) - assertThat(entity.body).contains("https://projectreactor.io/") + assertThat(entity.body).contains("Reactor Aluminium has landed",, + "https://projectreactor.io/") } diff --git a/src/main/resources/templates/blog.mustache b/src/main/resources/templates/blog.mustache index 0795ba0..512013a 100644 --- a/src/main/resources/templates/blog.mustache +++ b/src/main/resources/templates/blog.mustache @@ -1,5 +1,7 @@ {{> header}} +

{{title}}

+
{{#banner.title}} diff --git a/src/main/resources/templates/header.mustache b/src/main/resources/templates/header.mustache index 7c38147..b5efbf3 100644 --- a/src/main/resources/templates/header.mustache +++ b/src/main/resources/templates/header.mustache @@ -3,4 +3,3 @@ {{title}} -

{{title}}

diff --git a/src/test/kotlin/blog/IntegrationTests.kt b/src/test/kotlin/blog/IntegrationTests.kt index 3894233..9ae06df 100644 --- a/src/test/kotlin/blog/IntegrationTests.kt +++ b/src/test/kotlin/blog/IntegrationTests.kt @@ -35,7 +35,8 @@ class IntegrationTests(@Autowired val restTemplate: TestRestTemplate) { println(">> Assert article page title, content and status code") val entity = restTemplate.getForEntity("/article/2") assertThat(entity.statusCode).isEqualTo(HttpStatus.OK) - assertThat(entity.body).contains("https://projectreactor.io/") + assertThat(entity.body).contains("Reactor Aluminium has landed", + "https://projectreactor.io/") }