forked from ohayo-jacob/takunomi-blog
small changes
This commit is contained in:
parent
5146c1f6f4
commit
f1667c758a
|
@ -14,6 +14,7 @@
|
|||
</div>
|
||||
<div class="menu">
|
||||
<ul id="menu">
|
||||
<li><a class={{if eq .CurrentPage "blog"}}"menuselect menuElement no-link"{{else}}"menuElement no-link"{{end}} href="/">blog</a></li>
|
||||
<li><a class={{if eq .CurrentPage "about"}}"menuselect menuElement no-link"{{else}}"menuElement no-link"{{end}} href="/about">about</a></li>
|
||||
<li><a class={{if eq .CurrentPage "past"}}"menuselect menuElement no-link"{{else}}"menuElement no-link"{{end}} href="/past">past</a></li>
|
||||
<li><a class={{if eq .CurrentPage "contact"}}"menuselect menuElement no-link"{{else}}"menuElement no-link"{{end}} href="/contact">contact</a></li>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
{{define "content"}}
|
||||
{{with .Posts}}
|
||||
{{range .}}
|
||||
<article class="post">{{template "post" .}}</article>{{else}}<div><strong>no posts</strong></div>{{end}}{{end}}{{end}}
|
||||
<article class="post">{{template "post" .}}</article>{{else}}<div><strong>no posts</strong></div>{{end}}{{end}}
|
||||
<article class="post bottomMenu"><a class="bottomMenuElement" href="/">Return</a></div>
|
||||
{{end}}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{{define "contact"}}
|
||||
<article class="post">
|
||||
<ul style="list-style: none;">
|
||||
<li>twitter: <b>@sketchwhale</b></li>
|
||||
<li>twitter: <b><a class="no-link" style="text-decoration: none; color: inherit" href="https://twitter.com/sketchwhale">@sketchwhale</a></b></li>
|
||||
<li>email: <b>ohayo dot jacob at gmail</b></li>
|
||||
<li>git repo: <b>gitfub.space/ohayo-jacob</b></li>
|
||||
<li>git repo: <b><a class="no-link" style="text-decoration: none; color: inherit" href="gitfub.space/ohayo-jacob">gitfub.space/ohayo-jacob</a></b></li>
|
||||
</ul>
|
||||
</article>
|
||||
{{end}}
|
||||
|
|
19
style.tmpl
19
style.tmpl
|
@ -103,6 +103,25 @@ ul {
|
|||
background-color: #687fad;
|
||||
}
|
||||
|
||||
.bottomMenu {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bottomMenuElement{
|
||||
border: 20px;
|
||||
padding: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.bottomMenuElement:hover {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#menu ul{
|
||||
float: center;
|
||||
text-align: center;
|
||||
|
|
Loading…
Reference in New Issue
Block a user