Fix layout

This commit is contained in:
panr 2019-01-29 19:24:36 +01:00
parent a98590b0ba
commit 15dbbc51ee
7 changed files with 14 additions and 20 deletions

View File

@ -11,7 +11,7 @@
<span class="post-date"> <span class="post-date">
{{ .Date.Format "2006-01-02" }} {{ .Date.Format "2006-01-02" }}
</span> </span>
<span class="post-author">{{ $.Site.Params.WrittenBy }} {{ .Params.Author }}</span> {{ with .Params.Author }}<span class="post-author">{{ $.Site.Params.WrittenBy }} {{ . }}</span>{{ end }}
</div> </div>
{{ if .Params.tags }} {{ if .Params.tags }}

View File

@ -5,7 +5,7 @@
<span class="post-date"> <span class="post-date">
{{ .Date.Format "2006-01-02" }} {{ .Date.Format "2006-01-02" }}
</span> </span>
<span class="post-author">{{ $.Site.Params.WrittenBy }} {{ .Params.Author }}</span> {{ with .Params.Author }}<span class="post-author">{{ $.Site.Params.WrittenBy }} {{ . }}</span>{{ end }}
</div> </div>
{{ if .Params.tags }} {{ if .Params.tags }}

View File

@ -1,11 +1,9 @@
<a href="{{ if $.Site.Params.Logo.LogoHomeLink }}{{ $.Site.Params.Logo.LogoHomeLink }}{{else}}{{ $.Site.BaseURL }}{{ end }}" style="text-decoration: none;"> <a href="{{ if $.Site.Params.Logo.LogoHomeLink }}{{ $.Site.Params.Logo.LogoHomeLink }}{{else}}{{ $.Site.BaseURL }}{{ end }}" class="logo" style="text-decoration: none;">
<div class="logo"> {{ if $.Site.Params.Logo.path }}
{{ if $.Site.Params.Logo.path }} <img src="{{ $.Site.Params.Logo.path }}" alt="{{ $.Site.Params.Logo.alt }}" />
<img src="{{ $.Site.Params.Logo.path }}" alt="{{ $.Site.Params.Logo.alt }}" /> {{ else }}
{{ else }} <span class="logo__mark">></span>
<span class="logo__mark">></span> <span class="logo__text">{{ with $.Site.Params.Logo.logoText }}{{ . }}{{ else }}hello friend{{ end }}</span>
<span class="logo__text">{{ with $.Site.Params.Logo.logoText }}{{ . }}{{ else }}hello friend{{ end }}</span> <span class="logo__cursor"></span>
<span class="logo__cursor"></span> {{ end }}
{{ end }}
</div>
</a> </a>

View File

@ -26,12 +26,6 @@
} }
} }
&-date {
&:after {
content: '—';
}
}
&-title { &-title {
font-size: 2.625rem; font-size: 2.625rem;
margin: 0 0 20px; margin: 0 0 20px;

View File

@ -1,6 +1,7 @@
.logo { .logo {
display: flex; display: flex;
align-items: center; align-items: center;
flex: 0 0 auto;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;

View File

@ -19,7 +19,8 @@
&__inner { &__inner {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-end;
flex-wrap: wrap;
max-width: 100%; max-width: 100%;
margin: 0 auto; margin: 0 auto;
padding: 0 15px; padding: 0 15px;

File diff suppressed because one or more lines are too long