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">
{{ .Date.Format "2006-01-02" }}
</span>
<span class="post-author">{{ $.Site.Params.WrittenBy }} {{ .Params.Author }}</span>
{{ with .Params.Author }}<span class="post-author">{{ $.Site.Params.WrittenBy }} {{ . }}</span>{{ end }}
</div>
{{ if .Params.tags }}

View File

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

View File

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

View File

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

View File

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

View File

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

File diff suppressed because one or more lines are too long