support default example site
This commit is contained in:
parent
1bff7cc487
commit
7c5e438af0
5 changed files with 23 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
|||
{{define "main"}}
|
||||
{{if .Site.Params.displayRecent }}
|
||||
{{if ne .Site.Params.displayRecent false}}
|
||||
<div class="section">
|
||||
<div class="section-title">recent</div>
|
||||
{{range first .Site.Params.recentMax (where .Site.RegularPages "Section" "ne" "posts")}}
|
||||
{{range first (default 4 .Site.Params.recentMax) (where .Site.RegularPages "Section" "ne" "posts")}}
|
||||
<div class="list-item">
|
||||
<a class="entry-title" href="{{ .URL }}">{{ .Title }}</a>
|
||||
{{$page := .}}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<aside id="sidenav">
|
||||
<header>
|
||||
<a href="{{ .Site.BaseURL }}"><img src="/avatar.png" alt="avatar"></a>
|
||||
<a id="branding" href="{{ .Site.BaseURL }}">{{ .Site.Params.author | safeHTML }}</a>
|
||||
<a id="branding" href="{{ .Site.BaseURL }}">{{ .Site.Title | safeHTML }}</a>
|
||||
</header>
|
||||
|
||||
<nav>
|
||||
|
|
|
@ -10,4 +10,7 @@
|
|||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{with .Site.Copyright}}
|
||||
<p class="copyright meta">{{.}}</p>
|
||||
{{end}}
|
||||
</footer>
|
|
@ -8,5 +8,5 @@ method="POST"
|
|||
<textarea id="message" name="message" placeholder="Your message"></textarea>
|
||||
|
||||
<button class="reach-me-send" type="submit">Send</button>
|
||||
{{end}}
|
||||
</form>
|
||||
{{end}}
|
|
@ -108,11 +108,11 @@ aside nav a:hover {
|
|||
font-size: 32px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 20px;
|
||||
color: #E8E8E8;
|
||||
color: rgb(188, 188, 196);
|
||||
}
|
||||
|
||||
#npq{
|
||||
color: #BFBFBF;
|
||||
color: rgb(119, 125, 143);
|
||||
}
|
||||
|
||||
#closebtn {
|
||||
|
@ -274,11 +274,15 @@ footer{
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
padding: 30px;
|
||||
margin-top: 40px;
|
||||
border-top: 1px solid #3D3D3D;
|
||||
background-color:rgb(30, 34, 39) ;
|
||||
}
|
||||
.copyright{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.contact-form {
|
||||
display: flex;
|
||||
|
@ -313,10 +317,19 @@ footer{
|
|||
|
||||
.contact-info {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex-direction: row;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
/* .footer-phone{
|
||||
margin-left: 20px;
|
||||
}
|
||||
.footer-mail{
|
||||
margin-right: 20px;
|
||||
|
||||
} */
|
||||
|
||||
@media only screen and (max-width: 650px){
|
||||
#sidenav {
|
||||
width: 0px;
|
||||
|
|
Loading…
Reference in a new issue