Browse Source

prepare theme update

main
Hendrik Langer 4 years ago
parent
commit
192f602989
  1. 14
      config.toml
  2. 17
      layouts/partials/head.html
  3. 40
      layouts/partials/header.html
  4. 37
      layouts/partials/scripts.html
  5. 2
      themes/hugo.386

14
config.toml

@ -12,7 +12,7 @@ preserveTaxonomyNames = true
# The subtitle to display under the title in the home page
mainpagesubtitle = "boldly going forward, 'cause we can't find reverse.."
# The name to display as main title in the home page
# The description of your website. It will be displayed in the home page
mainpagedesc = "Hallo und Herzlich Willkommen auf h3ndrik.de"
# The name to display in the copyright section in the footer
@ -51,6 +51,18 @@ preserveTaxonomyNames = true
customCSS = ["css/custom.css"]
[params.copyright]
name = "hendrik"
# The url to use as link in the copyright name in the footer. Leave empty to use none.
url = "/about/"
# Text to go before copyright information
prefix = ""
# Text to go between copyright and hugo disclaimer (if enabled)
suffix = ""
[markup.goldmark.renderer]
unsafe= true

17
layouts/partials/head.html

@ -1,17 +0,0 @@
<head>
<title>{{ .Site.Title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="format-detection" content="telephone=no" />
<meta name="theme-color" content="#000084" />
<link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico">
<link rel="canonical" href="{{ .Site.BaseURL }}">
{{/* Don't ask why it's like this. This original theme is a mess... */}}
<link rel="stylesheet" href="{{ "/css/bootstrap.css" | relURL }}">
<link rel="stylesheet" href="{{ "/css/bootstrap-responsive.css" | relURL }}">
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}">
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | relURL }}">
{{- end }}
<!-- <noscript><style>body { visibility: visible }</style></noscript> -->
</head>

40
layouts/partials/header.html

@ -1,40 +0,0 @@
<!-- Navbar
================================================== -->
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"></button>
<a class="brand" href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
<div class="nav-collapse collapse">
<ul class="nav">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<li class="{{ if $currentPage.HasMenuCurrent "main" . }}active{{ end }}">
<a href="#">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
<ul class="sub-menu">
{{ range .Children }}
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
<a href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
{{ else }}
<li>
<a href="{{ .URL }}">
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
{{ end }}
{{ end }}
</ul>
{{- partial "navLang.html" . -}}
</div>
</div>
</div>
</nav>

37
layouts/partials/footer.html → layouts/partials/scripts.html

@ -1,27 +1,9 @@
<footer class="container">
<hr class="soften">
<p>
&copy;
<span id="thisyear">2020</span>
{{ if eq .Params.License .Site.Params.License }}{{ with .Site.Params.licenseurl }}<a href="{{ . }}">{{ end }}{{ end }}
{{ .Params.License }}
{{ if eq .Params.License .Site.Params.License }}{{ with .Site.Params.licenseurl }}</a>{{ end }}{{ end }}
{{ with .Site.Params.copyrighturl }}<a href="{{ . }}">{{ end }}
{{ .Site.Params.copyrightname }}
{{ with .Site.Params.copyrighturl }}</a>{{ end }}
{{ if isset .Site.Params "showhugo" }}
| {{ i18n "builton" }} <a href="//gohugo.io" target="_blank">Hugo</a>
{{ end }}
</p>
<p class="text-center">
{{ with .Site.Params.facebook }}<a href="{{ . }}">Facebook</a> {{ end }}
{{ with .Site.Params.twitter }}<a href="{{ . }}">Twitter</a> {{ end }}
{{ with .Site.Params.linkedin }}<a href="{{ . }}">Linkedin</a> {{ end }}
{{ with .Site.Params.github }}<a href="{{ . }}">GitHub</a> {{ end }}
{{ with .Site.Params.gitlab }}<a href="{{ . }}">GitLab</a>{{ end }}
</p>
</footer>
<link rel="stylesheet" href="{{ "/css/bootstrap.css" | relURL }}">
<link rel="stylesheet" href="{{ "/css/bootstrap-responsive.css" | relURL }}">
<link rel="stylesheet" href="{{ "/css/style.css" | relURL }}">
{{ range .Site.Params.customCSS -}}
<link rel="stylesheet" href="{{ . | relURL }}">
{{- end }}
<script src="{{ "/js/jquery.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-386.js" | relURL }}"></script>
<script src="{{ "/js/bootstrap-transition.js" | relURL }}"></script>
@ -48,11 +30,4 @@
function ThisYear() {
document.getElementById('thisyear').innerHTML = new Date().getFullYear();
};
$(document).ready(function() {
if ( $(location).attr("pathname") == "/") {
$('.collapse').collapse('show');
}
});
//$('.collapse').show();
</script>

2
themes/hugo.386

@ -1 +1 @@
Subproject commit b04c144d45ddd2390ae31d23af5b28f5c4366c29
Subproject commit 2558598655fb0d797e526741f2082c8360c720a0
Loading…
Cancel
Save