diff --git a/src/main/kotlin/fr/spacefox/japon/Resource.kt b/src/main/kotlin/fr/spacefox/japon/Resource.kt index 8def5a2..a4e8608 100644 --- a/src/main/kotlin/fr/spacefox/japon/Resource.kt +++ b/src/main/kotlin/fr/spacefox/japon/Resource.kt @@ -14,6 +14,12 @@ import javax.ws.rs.core.MediaType @Path("/") class ListHtmlResource(val list: Template) { + + @GET + @Path("") + @Produces(MediaType.TEXT_HTML) + fun root(): TemplateInstance = accueil() + @GET @Path("accueil") @Produces(MediaType.TEXT_HTML) diff --git a/src/main/kotlin/fr/spacefox/japon/data/Page.kt b/src/main/kotlin/fr/spacefox/japon/data/Page.kt index feeac56..fc702e5 100644 --- a/src/main/kotlin/fr/spacefox/japon/data/Page.kt +++ b/src/main/kotlin/fr/spacefox/japon/data/Page.kt @@ -3,6 +3,7 @@ package fr.spacefox.japon.data import java.time.LocalDate import java.time.Month import java.time.format.DateTimeFormatter +import java.util.* enum class Page( val category: Category, @@ -205,7 +206,7 @@ enum class Page( content = arrayOf( Text( - """Depuis les bancs "pour admirer la vue" sur le pont"""), + """Depuis les bancs « pour admirer la vue » sur le pont"""), Image("quotidien", "Matsumoto 039", ""), Image("quotidien", "Matsumoto 040", ""), Text( @@ -1862,5 +1863,5 @@ enum class Page( fun imgCount(): Int = content.count { it is Image } } -private val machineFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd") -private val humanFormatter = DateTimeFormatter.ofPattern("EEEE dd MMMM yyyy") +private val machineFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd", Locale.FRANCE) +private val humanFormatter = DateTimeFormatter.ofPattern("EEEE dd MMMM yyyy", Locale.FRANCE) diff --git a/src/main/resources/templates/base.qute.html b/src/main/resources/templates/base.qute.html index 99412a7..0cee3d5 100644 --- a/src/main/resources/templates/base.qute.html +++ b/src/main/resources/templates/base.qute.html @@ -7,8 +7,8 @@ Un renard au Japon – {#insert title}Default Title{/} - - + +