support default example site

This commit is contained in:
saadnpq 2020-04-11 14:51:04 +02:00
parent 1bff7cc487
commit 7c5e438af0
5 changed files with 23 additions and 7 deletions

View File

@ -1,8 +1,8 @@
{{define "main"}} {{define "main"}}
{{if .Site.Params.displayRecent }} {{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 .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"> <div class="list-item">
<a class="entry-title" href="{{ .URL }}">{{ .Title }}</a> <a class="entry-title" href="{{ .URL }}">{{ .Title }}</a>
{{$page := .}} {{$page := .}}

View File

@ -1,7 +1,7 @@
<aside id="sidenav"> <aside id="sidenav">
<header> <header>
<a href="{{ .Site.BaseURL }}"><img src="/avatar.png" alt="avatar"></a> <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> </header>
<nav> <nav>

View File

@ -10,4 +10,7 @@
</div> </div>
{{end}} {{end}}
</div> </div>
{{with .Site.Copyright}}
<p class="copyright meta">{{.}}</p>
{{end}}
</footer> </footer>

View File

@ -8,5 +8,5 @@ method="POST"
<textarea id="message" name="message" placeholder="Your message"></textarea> <textarea id="message" name="message" placeholder="Your message"></textarea>
<button class="reach-me-send" type="submit">Send</button> <button class="reach-me-send" type="submit">Send</button>
{{end}} </form>
</form> {{end}}

View File

@ -108,11 +108,11 @@ aside nav a:hover {
font-size: 32px; font-size: 32px;
margin-top: 10px; margin-top: 10px;
margin-bottom: 20px; margin-bottom: 20px;
color: #E8E8E8; color: rgb(188, 188, 196);
} }
#npq{ #npq{
color: #BFBFBF; color: rgb(119, 125, 143);
} }
#closebtn { #closebtn {
@ -274,11 +274,15 @@ footer{
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-around; justify-content: space-around;
align-items: center;
padding: 30px; padding: 30px;
margin-top: 40px; margin-top: 40px;
border-top: 1px solid #3D3D3D; border-top: 1px solid #3D3D3D;
background-color:rgb(30, 34, 39) ; background-color:rgb(30, 34, 39) ;
} }
.copyright{
text-align: center;
}
.contact-form { .contact-form {
display: flex; display: flex;
@ -313,10 +317,19 @@ footer{
.contact-info { .contact-info {
display: flex; display: flex;
width: 100%;
flex-direction: row; flex-direction: row;
justify-content: space-around; justify-content: space-around;
} }
/* .footer-phone{
margin-left: 20px;
}
.footer-mail{
margin-right: 20px;
} */
@media only screen and (max-width: 650px){ @media only screen and (max-width: 650px){
#sidenav { #sidenav {
width: 0px; width: 0px;