Squashed: fix atom feed and mobile nav
This commit is contained in:
parent
7f757fbf87
commit
8f3b4c92eb
@ -9,11 +9,11 @@
|
|||||||
<span class="site-header__description">Linux und Open Source Blog</span>
|
<span class="site-header__description">Linux und Open Source Blog</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="site-nav__mobile" onclick="toogleClass('default-menu');">
|
<div class="site-nav__mobile">
|
||||||
<span class="site-nav__button">Menu</span>
|
<span class="site-nav__button" onclick="toogleClass('js-site-nav');">Menu</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="site-nav">
|
<nav id="js-site-nav" class="site-nav">
|
||||||
<ul class="site-nav__list">
|
<ul class="site-nav__list">
|
||||||
{{ $currentPage := .Permalink }}
|
{{ $currentPage := .Permalink }}
|
||||||
<li><a class="site-nav__button {{- if eq $currentPage (printf "%s" .Site.BaseURL) }} is-active {{- end }}" href="{{ .Site.BaseURL }}">Blog</a></li>
|
<li><a class="site-nav__button {{- if eq $currentPage (printf "%s" .Site.BaseURL) }} is-active {{- end }}" href="{{ .Site.BaseURL }}">Blog</a></li>
|
||||||
@ -35,5 +35,11 @@
|
|||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ "default.min.css" | relURL }}" />
|
<link rel="stylesheet" type="text/css" href="{{ "default.min.css" | relURL }}" />
|
||||||
<link rel="stylesheet" type="text/css" href="{{ "_tool/fontawesome/css/all.min.css" | relURL }}" />
|
<link rel="stylesheet" type="text/css" href="{{ "_tool/fontawesome/css/all.min.css" | relURL }}" />
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function toogleClass(id) {
|
||||||
|
document.getElementById(id).classList.toggle("is-visible");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
<name>{{.}}</name>{{ with $.Site.Author.email }}
|
<name>{{.}}</name>{{ with $.Site.Author.email }}
|
||||||
<email>{{.}}</email>{{end}}
|
<email>{{.}}</email>{{end}}
|
||||||
</author>{{end}}
|
</author>{{end}}
|
||||||
<generator>Hugo -- gohugo.io</generator>{{ range .Data.Pages }}
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
{{ range where .Pages "Type" "post" }}
|
||||||
<entry>
|
<entry>
|
||||||
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
|
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
|
||||||
<link href="{{ .Permalink }}"/>
|
<link href="{{ .Permalink }}"/>
|
||||||
@ -19,5 +20,6 @@
|
|||||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
||||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||||
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
|
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
|
||||||
</entry>{{ end }}
|
</entry>
|
||||||
|
{{ end }}
|
||||||
</feed>
|
</feed>
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
<name>{{.}}</name>{{ with $.Site.Author.email }}
|
<name>{{.}}</name>{{ with $.Site.Author.email }}
|
||||||
<email>{{.}}</email>{{end}}
|
<email>{{.}}</email>{{end}}
|
||||||
</author>{{end}}
|
</author>{{end}}
|
||||||
<generator>Hugo -- gohugo.io</generator>{{ range .Data.Pages }}
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
|
{{ range where .Pages "Type" "post" }}
|
||||||
<entry>
|
<entry>
|
||||||
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
|
{{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
|
||||||
<link href="{{ .Permalink }}"/>
|
<link href="{{ .Permalink }}"/>
|
||||||
@ -19,5 +20,6 @@
|
|||||||
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
<published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
|
||||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
|
||||||
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
|
{{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
|
||||||
</entry>{{ end }}
|
</entry>
|
||||||
|
{{ end }}
|
||||||
</feed>
|
</feed>
|
||||||
|
@ -288,7 +288,10 @@ all and (max-width: 900px){
|
|||||||
|
|
||||||
@media all and (max-device-width: 710px), all and (max-width: 710px){
|
@media all and (max-device-width: 710px), all and (max-width: 710px){
|
||||||
.site-nav {
|
.site-nav {
|
||||||
/* display: none; */
|
display: none;
|
||||||
|
}
|
||||||
|
.site-nav.is-visible {
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
.site-nav__mobile,
|
.site-nav__mobile,
|
||||||
.site-footer__button {
|
.site-footer__button {
|
||||||
|
@ -8,3 +8,12 @@
|
|||||||
color:#FFFFFF;
|
color:#FFFFFF;
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-content h1,
|
||||||
|
.post-content h2,
|
||||||
|
.post-content h3,
|
||||||
|
.post-content h4,
|
||||||
|
.post-content h5,
|
||||||
|
.post-content h6 {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
@ -268,6 +268,12 @@ all and (max-width:900px) {
|
|||||||
}
|
}
|
||||||
@media all and (max-device-width:710px),
|
@media all and (max-device-width:710px),
|
||||||
all and (max-width:710px) {
|
all and (max-width:710px) {
|
||||||
|
.site-nav {
|
||||||
|
display: none
|
||||||
|
}
|
||||||
|
.site-nav.is-visible {
|
||||||
|
display: block
|
||||||
|
}
|
||||||
.site-footer__button,
|
.site-footer__button,
|
||||||
.site-nav__mobile {
|
.site-nav__mobile {
|
||||||
display: block
|
display: block
|
||||||
@ -585,3 +591,11 @@ all and (max-width:710px) {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
}
|
}
|
||||||
|
.post-content h1,
|
||||||
|
.post-content h2,
|
||||||
|
.post-content h3,
|
||||||
|
.post-content h4,
|
||||||
|
.post-content h5,
|
||||||
|
.post-content h6 {
|
||||||
|
font-weight: 400
|
||||||
|
}
|
2
themes/geeklab/static/default.min.css
vendored
2
themes/geeklab/static/default.min.css
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user