initial commit

This commit is contained in:
2019-03-18 16:50:46 +01:00
commit 9babd3cb56
74 changed files with 12928 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
{{ partial "head" . }}
<body>
<div id="wrap">
{{ partial "header" . }}
<div class="container">
<div class="page-not-found">
<h3>Uh oh! Page not found!</h3>
</div>
</div>
</div>
{{ partial "footer" . }}
</body>
</html>

View File

@@ -0,0 +1,31 @@
{{ partial "head" . }}
<body>
<div id="wrap">
<!-- Header -->
{{ partial "header" . }}
<div class="container">
<h1>Archive</h1>
<div class="panel panel-default">
<div class="panel-body">
{{ range .Data.Pages.ByPublishDate.Reverse }}
<div class="row">
<div class="col-sm-4 col-md-4 col-lg-4">
<h5 style="text-align: right">
{{ .Date.Format "January 2, 2006" }}
</h5>
</div>
<div class="col-sm-8 col-md-8 col-lg-8">
<h5 style="text-align: left">
<strong><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></strong>
</h5>
</div>
</div>
{{ end }}
</div>
</div>
</div>
</div>
<!-- Footer -->
{{ partial "footer" . }}
</body>
</html>

View File

@@ -0,0 +1,61 @@
{{ partial "head" . }}
<body>
<div id="wrap">
<!-- Header -->
{{ partial "header" . }}
<div class="container {{ replace (.LinkTitle | lower) " " "_" }}"> <!-- add link title add class -->
<div class="blog-post">
<h1>{{ .Title }}</h1>
</div>
{{ if ne .Params.page true }}
<div class="blog-title">
<h4>
{{ .Date.Format "January 2, 2006" }}
&nbsp;&nbsp;
{{ range .Params.tags }}
<span class="label label-success">{{ . }}</span>
{{ end }}
</h4>
</div>
{{ end }}
<div class="panel panel-default">
<div class="panel-body">
<div class="blogpost">
{{ .Content }}
<!-- only show related posts if param is true, or if it's not a page -->
{{ if or (eq .Params.related true) (ne .Params.page true) }}
<hr>
<div class="related-posts">
<h5>Related Posts</h5>
{{ range first 3 ( where ( where .Site.Pages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags ) "Permalink" "!=" .Permalink ) }}
<div class="row">
<div class="col-sm-4 col-md-4 col-lg-4">
<h6 style="text-align: right">
{{ .Date.Format "January 2, 2006" }}
</h6>
</div>
<div class="col-sm-8 col-md-8 col-lg-8">
<h6 style="text-align: left">
<strong><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></strong>
</h6>
</div>
</div>
{{ end }}
</div>
{{ end }}
</div>
</div>
<hr>
{{ partial "social" . }}
</div>
</div>
</div>
<!-- Footer -->
{{ partial "footer" . }}
</body>
</html>

View File

@@ -0,0 +1,19 @@
{{ partial "head" . }}
<body>
<div id="wrap">
{{ partial "header" . }}
<section id="about">
<div class="container">
<div class="avatar">
<img class="img-circle" src="{{ .Site.BaseURL }}img/{{ .Site.Params.avatar }}" alt="Responsive image">
</div>
{{ .Content }}
{{ partial "social.html" . }}
</div>
</section>
</div>
{{ partial "footer" . }}
</body>
</html>

View 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>

View File

@@ -0,0 +1,10 @@
<footer>
<div id="footer">
<div class="container">
<p class="text-muted">&copy; 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 &amp; Privacy</a></p>
</div>
</div>
</footer>
<div class="footer"></div>
{{ partial "js" . }}

View 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>

View 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>

View 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 }}

View 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>