~jmehne/website-theme-hugo-coder unlisted

c17d2ae711afb5507b3bd162ab24cd6cd20d8e74 — Julian Mehne a month ago d196bda
Add proper title line breaks to post listing.
2 files changed, 9 insertions(+), 2 deletions(-)

M assets/scss/_base.scss
M layouts/posts/li.html
M assets/scss/_base.scss => assets/scss/_base.scss +4 -0
@@ 9,6 9,10 @@ html {
    font-size: 62.5%;
}

.post-row-flex {
  display: flex;
}

body {
  color: $fg-color;
  background-color: $bg-color;

M layouts/posts/li.html => layouts/posts/li.html +5 -2
@@ 1,4 1,7 @@
<li>
  <span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
  <a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
    <div class="post-row-flex">
        <!-- for debugging: assign a different class for both diffs and use  a different background-color -->
        <div style="flex-grow: 1 flex-shrink: 0"><span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span></div>
        <div style="flex-grow: 8"><a class="title" href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a></div>
    </div>
</li>