initial commit
This commit is contained in:
19
themes/hugo-sustain/layouts/partials/disqus.html
Executable file
19
themes/hugo-sustain/layouts/partials/disqus.html
Executable file
@@ -0,0 +1,19 @@
|
||||
<div class="disqus">
|
||||
<div id="disqus_thread"></div>
|
||||
<script type="text/javascript">
|
||||
|
||||
(function() {
|
||||
// Don't ever inject Disqus on localhost--it creates unwanted
|
||||
// discussions from 'localhost:1313' on your Disqus account...
|
||||
if (window.location.hostname == "localhost")
|
||||
return;
|
||||
|
||||
var disqus_shortname = '{{ .Site.DisqusShortname }}';
|
||||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
|
||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
|
||||
</div>
|
||||
10
themes/hugo-sustain/layouts/partials/footer.html
Normal file
10
themes/hugo-sustain/layouts/partials/footer.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<footer>
|
||||
<div id="footer">
|
||||
<div class="container">
|
||||
<p class="text-muted">© All rights reserved. The code <a href="https://src.mehl.mx/mxmehl/mehl.mx">is available</a> under GNU GPL 3.0. <a href="/impressum">Impressum & Privacy</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<div class="footer"></div>
|
||||
|
||||
{{ partial "js" . }}
|
||||
35
themes/hugo-sustain/layouts/partials/head.html
Normal file
35
themes/hugo-sustain/layouts/partials/head.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ .Site.LanguageCode }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="author" content="{{ .Site.Params.Author }}" />
|
||||
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
{{ with .Site.Params.keywords }}<meta name="description" content="{{ . }}">{{ end }}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/favicon.ico">
|
||||
<title>
|
||||
{{- if .IsHome -}}
|
||||
{{- .Site.Title -}}
|
||||
{{- else -}}
|
||||
{{- if .Params.heading -}} {{- .Params.heading -}} {{- else -}} {{- .Site.Title -}} {{ print " | " }} {{- .Title -}} {{- end -}}
|
||||
{{- end -}}
|
||||
</title>
|
||||
{{ .Hugo.Generator }}
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/bootstrap-3.3.7.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/main.css" />
|
||||
{{- if .Params.highlight -}}
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/tomorrow-9.7.0.min.css">
|
||||
{{ end }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/fontawesome/css/all.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/fonts.css" />
|
||||
{{ range .Site.Params.custom_css }}
|
||||
<link rel="stylesheet" href="{{ $.Site.BaseURL}}{{ . }}">
|
||||
{{ end }}
|
||||
{{ `<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->` | safeHTML }}
|
||||
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
</head>
|
||||
22
themes/hugo-sustain/layouts/partials/header.html
Normal file
22
themes/hugo-sustain/layouts/partials/header.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse" id="navbar">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
{{- $rel := .RelPermalink -}}
|
||||
{{- if .Site.Menus.main -}}
|
||||
{{- range sort .Site.Menus.main -}}
|
||||
<!-- if RelPermalink = this menu item, mark it -->
|
||||
<li class="{{if eq $rel .URL}}active{{end}}"><a href="{{ .URL }}">{{ .Name | upper }}</a></li>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
16
themes/hugo-sustain/layouts/partials/js.html
Normal file
16
themes/hugo-sustain/layouts/partials/js.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
||||
<script src="{{ .Site.BaseURL }}js/jquery-1.11.3.min.js"></script>
|
||||
<!-- Bootstrap core JavaScript -->
|
||||
<script src="{{ .Site.BaseURL }}js/bootstrap-3.3.7.min.js" ></script>
|
||||
{{- range .Site.Params.custom_js -}}
|
||||
<script src="{{ $.Site.BaseURL }}{{ . }}"></script>
|
||||
{{ end }}
|
||||
<script src="{{ .Site.BaseURL }}js/docs.min.js"></script>
|
||||
<script src="{{ .Site.BaseURL }}js/main.js"></script>
|
||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||
<script src="{{ .Site.BaseURL }}js/ie10-viewport-bug-workaround.js"></script>
|
||||
{{- if .Params.highlight -}}
|
||||
{{ "<!-- Syntax highlighting -->" | safeHTML }}
|
||||
<script src="{{ .Site.BaseURL }}js/highlight-9.7.0.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
{{ end }}
|
||||
36
themes/hugo-sustain/layouts/partials/social.html
Executable file
36
themes/hugo-sustain/layouts/partials/social.html
Executable file
@@ -0,0 +1,36 @@
|
||||
<div class="social">
|
||||
<ul class="social-links">
|
||||
|
||||
{{ with .Site.Params.Social.Email }}
|
||||
<li><a href="{{ . }}" title="Email"><i class="fa fa-envelope"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Mastodon }}
|
||||
<li><a href="https://{{ . }}" title="Mastodon"><i class="fab fa-mastodon"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Twitter }}
|
||||
<li><a href="https://twitter.com/{{ . }}" title="Twitter"><i class="fab fa-twitter"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Diaspora }}
|
||||
<li><a href="https://{{ . }}" title="Diaspora"><i class="fab fa-diaspora"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Stackoverflow }}
|
||||
<li><a href="https://stackoverflow.com/{{ . }}" title="Stackoverflow"><i class="fab fa-stack-overflow"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Git }}
|
||||
<li><a href="{{ . }}" title="Git"><i class="fab fa-git"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.Github }}
|
||||
<li><a href="https://github.com/{{ . }}" title="Github"><i class="fab fa-github"></i></a></li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Site.Params.Social.LinkedIn }}
|
||||
<li><a href="https://linkedin.com/in/{{ . }}" title="LinkedIn"><i class="fab fa-linkedin"></i></a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
Reference in New Issue
Block a user