Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored Jan 30, 2024
1 parent d037239 commit f6255ee
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
5 changes: 4 additions & 1 deletion layouts/partials/custom/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
.pre-summary {
border-bottom: none;
color: #fff;
display: flex;
justify-content: flex-end;
padding-bottom: 25px;
}

.pre-summary a {
.pre-summary a:visited {
border-bottom: none;
}
</style>
32 changes: 32 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{ if .Site.Params.enableCustomHTML }}
{{ partial "custom/above-header" . }}
{{ end }}

{{ if .Site.Params.useLargeHeaderDesign }}
<div class="header header--large">
<div class="contain contain--more center">
<a href="{{ .Site.BaseURL }}" class="header__logo">
{{ if .Site.Params.useLogo }}
<img src="{{ relURL .Site.Params.logo }}" alt="{{ .Site.Title }}">
{{ else }}
<h1>{{ .Site.Title }}</h1>
{{ end }}
</a>
</div>
</div>
{{ else }}
<div class="header">
<div class="contain">
<a href="{{ .Site.BaseURL }}" class="header__logo header__logo--small">
{{ if .Site.Params.useLogo }}
<img src="{{ relURL .Site.Params.logo }}" alt="{{ .Site.Title }}">
<h1>{{ .Site.Title }}</h1>
{{ end }}
</a>
</div>
</div>
{{ end }}

{{ if .Site.Params.enableCustomHTML }}
{{ partial "custom/below-header" . }}
{{ end }}

0 comments on commit f6255ee

Please sign in to comment.