Skip to content

Commit 15bab08

Browse files
committed
Polish website
1 parent b6d3594 commit 15bab08

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/main/kotlin/mixit/web/handler/BlogHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fun Post.toDto(author: User, language: Language) = PostDto(
6363
addedAt.formatDate(language),
6464
title[language] ?: "",
6565
headline[language] ?: "",
66-
if (content != null) content[language] else "")
66+
if (content != null) content[language] else null)
6767

6868
class Feed(
6969
val title: String,

src/main/resources/templates/post.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
<div class="column large-8 large-offset-2">
1616
<div class="callout">
1717
<p>{{#markdown}}{{post.headline}}{{/markdown}}</p>
18+
{{#post.content}}
1819
<hr />
1920
<p>{{#markdown}}{{post.content}}{{/markdown}}</p>
21+
{{/post.content}}
2022
</div>
2123
</div>
2224
</div>

src/main/resources/templates/talk.mustache

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
<h1 class="text-center mxt-title--talk">{{talk.title}}</h1>
2323
<hr />
2424
<p>{{#markdown}}{{talk.summary}}{{/markdown}}</p>
25-
<hr />
26-
{{#talk.description}}<p>{{#markdown}}{{talk.description}}{{/markdown}}</p>{{/talk.description}}
25+
{{#talk.description}}
26+
<hr />
27+
<p>{{#markdown}}{{talk.description}}{{/markdown}}</p>
28+
{{/talk.description}}
2729
<p class="subheader"><strong>
2830
{{#talk.video}}
2931
<hr />

src/main/resources/templates/talks.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
{{/speakers}}
6060
</ul>
6161
<hr />
62-
<a href="{{localePrefix}}/{{event}}/{{slug}}" class="button hollow" target="_blank">{{#i18n}}talks.readmore{{/i18n}}</a>
62+
<a href="{{localePrefix}}/{{event}}/{{slug}}" class="button hollow">{{#i18n}}talks.readmore{{/i18n}}</a>
6363
</div>
6464
</div>
6565
</div>

0 commit comments

Comments
 (0)