-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplifying cover page configuration for different layout types
- Loading branch information
Showing
7 changed files
with
67 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{{$coverImage := or .Params.image .Params.cover .Site.Params.cover}} | ||
|
||
{{if not $coverImage}} | ||
<header class="main-header no-cover"> | ||
{{else}} | ||
<header class="main-header" style="background-image: url({{$coverImage}})"> | ||
{{end}} | ||
|
||
{{partial "nav.html" .}} | ||
|
||
<div class="vertical"> | ||
<div class="main-header-content inner"> | ||
|
||
{{partial "social.html" .}} | ||
|
||
<h1 class="page-title">{{.Site.Title}}</h1> | ||
<h2 class="page-description">{{.Site.Params.description}}</h2> | ||
</div> | ||
</div> | ||
|
||
<a class="scroll-down icon-arrow-left" href="#content"> | ||
<span class="hidden">Scroll Down</span> | ||
</a> | ||
|
||
</header> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{$coverImage := or .Params.image .Params.cover .Site.Params.cover}} | ||
|
||
{{if not $coverImage}} | ||
<header class="main-header tag-head no-cover"> | ||
{{else}} | ||
<header class="main-header tag-head" style="background-image: url({{$coverImage}})"> | ||
{{end}} | ||
|
||
{{partial "nav.html" .}} | ||
|
||
<div class="vertical"> | ||
<div class="main-header-content inner"> | ||
<h1 class="page-title">{{.Title}}</h1> | ||
{{with .Params.description}} | ||
<h2 class="page-description">{{.}}</h2> | ||
{{end}} | ||
</div> | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{$coverImage := or .Params.image .Params.cover .Site.Params.cover}} | ||
|
||
{{if not $coverImage}} | ||
<header class="main-header tag-head no-cover"> | ||
{{else}} | ||
<header class="main-header post-head" style="background-image: url({{$coverImage}})"> | ||
{{end}} | ||
|
||
{{partial "nav.html" .}} | ||
|
||
<div class="vertical"> | ||
<div class="main-header-content inner"> | ||
<h1 class="page-title">{{.Title}}</h1> | ||
</div> | ||
</div> | ||
</header> |