Drew Short
6 years ago
4 changed files with 229 additions and 48 deletions
-
6run_hugo_server.sh
-
3themes/pure/layouts/partials/footer.html
-
64themes/pure/layouts/partials/header.html
-
204themes/pure/static/assets/css/style.css
@ -1,10 +1,12 @@ |
|||
#! /usr/bin/sh |
|||
|
|||
HUGO_VERSION=${HUGO_VERSION:=0.54.0} |
|||
|
|||
docker run -it \ |
|||
-e HUGO_WATCH=true \ |
|||
-e HUGO_THEME=pure \ |
|||
-e HUGO_BASEURL=http://localhost:1313/ \ |
|||
-e HUGO_DESTINATION=/src/public \ |
|||
-v ${PWD}:/src \ |
|||
-v ${PWD}:/src:Z \ |
|||
-p 1313:1313 \ |
|||
sothr.com/hugo:0.54.0 $@ |
|||
sothr.com/hugo:$HUGO_VERSION $@ |
@ -1,5 +1,6 @@ |
|||
<div class="pure-g"> |
|||
<!-- <div class="pure-g"> |
|||
<div class="pure-u-1 text-align-right" style="padding-right: 1em;"> |
|||
<span>©</span> {{ .Site.Params.CopyrightYear }} - Present {{ .Site.Params.CopyrightHolder }} ALL RIGHTS RESERVED. |
|||
</div> |
|||
</div> |
|||
--> |
@ -1,28 +1,38 @@ |
|||
|
|||
<nav> |
|||
<div class="pure-menu pure-menu-horizontal"> |
|||
<ul class="pure-menu-list float-left"> |
|||
<li class="pure-menu-list"> |
|||
<a href="{{ .Site.BaseURL }}" class="pure-menu-heading pure-menu-link" title="Home">{{ .Site.Title }}</a> |
|||
</li> |
|||
{{ range where (sort .Site.Pages "Weight" "desc") "Type" "navLink"}} |
|||
<li class="pure-menu-list"><a href="{{ .URL }}" class="pure-menu-link" title="{{ .Title }}">{{ .Title }}</a></li> |
|||
{{ end }} |
|||
</ul> |
|||
<ul class="pure-menu-list float-right"> |
|||
{{ range sort .Site.Params.links "weight" "desc" }} |
|||
<li class="pure-menu-list"> |
|||
{{ if .image }} |
|||
<a href="{{ .url }}" target="_blank" title="{{ .title }}"> |
|||
<img src="{{ .image | absURL }}" /> |
|||
</a> |
|||
{{ else }} |
|||
<a href="{{ .url }}" target="_blank" class="pure-menu-link" title="{{ .title }}"> |
|||
{{ .title }} |
|||
</a> |
|||
{{ end }} |
|||
</li> |
|||
{{ end }} |
|||
</ul> |
|||
</div> |
|||
</nav> |
|||
<div class="menu-wrapper"> |
|||
<div class="pure-menu menu menu-top"> |
|||
<a href="{{ .Site.BaseURL }}" class="pure-menu-heading menu-brand" title="Home">{{ .Site.Title }}</a> |
|||
<a href="#" class="menu-toggle" id="toggle"><s class="bar"></s><s class="bar"></s></a> |
|||
</div> |
|||
<div class="pure-menu pure-menu-horizontal pure-menu-scrollable menu menu-bottom menu-tucked" id="tuckedMenu"> |
|||
<div class="menu-screen"> |
|||
<ul class="pure-menu-list"> |
|||
{{ range where (sort .Site.Pages "Weight" "desc") "Type" "navLink"}} |
|||
<li class="pure-menu-item"><a href="{{ .URL }}" class="pure-menu-link" title="{{ .Title }}">{{ .Title }}</a></li> |
|||
{{ end }} |
|||
{{ range sort .Site.Params.links "weight" "desc" }} |
|||
<li class="pure-menu-item"> |
|||
{{ if .image }} |
|||
<a href="{{ .url }}" target="_blank" title="{{ .title }}"> |
|||
<img src="{{ .image | absURL }}" /> |
|||
</a> |
|||
{{ else }} |
|||
<a href="{{ .url }}" target="_blank" class="pure-menu-link" title="{{ .title }}"> |
|||
{{ .title }} |
|||
</a> |
|||
{{ end }} |
|||
</li> |
|||
{{ end }} |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<script> |
|||
(function (window, document) { |
|||
document.getElementById('toggle').addEventListener('click', function (e) { |
|||
document.getElementById('tuckedMenu').classList.toggle('menu-tucked'); |
|||
document.getElementById('tuckedMenu').classList.toggle('menu-untucked'); |
|||
document.getElementById('toggle').classList.toggle('x'); |
|||
}); |
|||
})(this, this.document); |
|||
</script> |
Reference in new issue