support default example site
This commit is contained in:
parent
7c5e438af0
commit
fec458c871
3 changed files with 16 additions and 4 deletions
|
@ -2,7 +2,8 @@
|
||||||
{{if ne .Site.Params.displayRecent false}}
|
{{if ne .Site.Params.displayRecent false}}
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<div class="section-title">recent</div>
|
<div class="section-title">recent</div>
|
||||||
{{range first (default 4 .Site.Params.recentMax) (where .Site.RegularPages "Section" "ne" "posts")}}
|
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
|
||||||
|
{{range first (default 4 .Site.Params.recentMax) (where $pages "Section" "ne" "posts")}}
|
||||||
<div class="list-item">
|
<div class="list-item">
|
||||||
<a class="entry-title" href="{{ .URL }}">{{ .Title }}</a>
|
<a class="entry-title" href="{{ .URL }}">{{ .Title }}</a>
|
||||||
{{$page := .}}
|
{{$page := .}}
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
<aside id="sidenav">
|
<aside id="sidenav">
|
||||||
<header>
|
<header>
|
||||||
<a href="{{ .Site.BaseURL }}"><img src="/avatar.png" alt="avatar"></a>
|
{{if eq .Site.Params.useAvatar true}}
|
||||||
|
<a href="{{ .Site.BaseURL }}"><img src="/avatar.png" alt="avatar"></a>
|
||||||
|
{{end}}
|
||||||
<a id="branding" href="{{ .Site.BaseURL }}">{{ .Site.Title | safeHTML }}</a>
|
<a id="branding" href="{{ .Site.BaseURL }}">{{ .Site.Title | safeHTML }}</a>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
@ -12,10 +14,19 @@
|
||||||
target="_blanck"
|
target="_blanck"
|
||||||
{{end}}
|
{{end}}
|
||||||
>
|
>
|
||||||
{{ .Pre }}
|
{{with .Pre}}
|
||||||
|
{{ .}}
|
||||||
|
{{else}}
|
||||||
|
<i class="far fa-file far-sm"></i>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
<span>{{ .Name }}</span>
|
<span>{{ .Name }}</span>
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
<a href="/tags" >
|
||||||
|
<i class="fas fa-tags"></i>
|
||||||
|
<span>tags</span>
|
||||||
|
</a>
|
||||||
<a href="/contact" >
|
<a href="/contact" >
|
||||||
<i class="far fa-envelope"></i>
|
<i class="far fa-envelope"></i>
|
||||||
<span>contact</span>
|
<span>contact</span>
|
||||||
|
|
|
@ -130,7 +130,7 @@ aside nav a:hover {
|
||||||
border: 1px solid #3D3D3D;
|
border: 1px solid #3D3D3D;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color:#181B1C;
|
background-color:rgb(39, 41, 43);
|
||||||
}
|
}
|
||||||
.list-item+.list-item{
|
.list-item+.list-item{
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
Loading…
Reference in a new issue