some error fixes
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Paul 2024-04-28 17:48:24 +02:00
parent 2c68009a0b
commit d24753ddf7
8 changed files with 27 additions and 38 deletions

View File

@ -6,7 +6,7 @@
<div id="cal-heatmap"></div>
<div id="example-heatmap"></div>
<script type="text/javascript">
<script>
var cal = new CalHeatMap();
cal.init({
itemSelector: "#example-heatmap",

View File

@ -1,5 +1,5 @@
<header class="article-header">
<h1 class="article-title" itemprop="name"><a href="{{ .Permalink }}" class="permalink">{{ .Title }}</a></h1>
<time datetime="{{ .Date }}" itemprop="datePublished">{{ .Date.Format "2006-01-02" }}</time>
<time datetime="{{ .Date | htmlUnescape | safeHTML }}" itemprop="datePublished">{{ .Date.Format "2006-01-02" }}</time>
<div class="article-meta"></div>
</header>

View File

@ -12,23 +12,18 @@
<div class="article-inner">
{{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
<a href="{{ .Permalink }}" itemprop="url">
<img src="{{ .Site.BaseURL }}/{{ .Params.banner }}" class="article-banner"> {{ end }}
<img src="{{ .Site.BaseURL }}/{{ .Params.banner }}" class="article-banner">
</a>
{{ end }}
{{ partial "article_header" . }}
<div class="article-entry" itemprop="articleBody">
<p>{{ .Summary }} ...</p>
<p class="article-more-link">
<a href="{{ .Permalink }}">
Read more
<!--
{{ with .Site.Data.l10n.articles.read_more }}{{ . }}{{ end }}
-->
</a>
</p>
</div>
<!--
{{ partial "article_footer" . }}
-->
</div>
</article>
{{ end }}

View File

@ -3,12 +3,12 @@
<div id="footer-info" class="inner">
<footer id="footer-left">
&copy; {{ now.Format "2006" }} <a href="https://git.paulbsd.com/paulbsd">paulbsd</a>. <br>
{{ with .Site.Params.copyright }}{{ . | markdownify}}{{ end }}
{{ with .Site.Params.copyright }}{{ . | markdownify }}{{ end }}
</footer>
<footer id="footer-right">Your IP address: <a id="dip" target="_blank"></a></footer>
<footer id="footer-right">Your IP address: <a id="dip" target="_blank" href=""></a></footer>
</div>
</div>
<script src="{{ .Site.BaseURL }}/js/main.js"></script>
<script src="{{ .Site.BaseURL }}/bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="{{ .Site.BaseURL }}/bower_components/jquery.hotkeys/jquery.hotkeys.js"></script>
<script src="{{ .Site.BaseURL }}/bower_components/jquery.hotkeys/jquery.hotkeys.js"></script>
</footer>

View File

@ -20,23 +20,17 @@
<script>
hljs.initHighlightingOnLoad();
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
<link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico" />
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}/apple-touch-icon.png" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/highlightjs/styles/monokai.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/bootstrap/css/dropdowns-enhancement.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/talaria/dist/talaria.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/createjs/createjs.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/icomoon/css/icomoon.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/cal-heatmap/cal-heatmap.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/mobile.css" />
<link rel="icon" href="{{ .Site.BaseURL }}/favicon.ico"/>
<link rel="apple-touch-icon" href="{{ .Site.BaseURL }}/apple-touch-icon.png"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/highlightjs/styles/monokai.css"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/bootstrap/css/bootstrap.min.css"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/bootstrap/css/dropdowns-enhancement.css"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/talaria/dist/talaria.css"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/createjs/createjs.css"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/icomoon/css/icomoon.css"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}/bower_components/cal-heatmap/cal-heatmap.css"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/style.css"/>
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/mobile.css"/>
</head>

View File

@ -2,24 +2,24 @@
<div class="inner profile-inner">
<div class="base-info profile-block">
<img id="avatar" src="{{ .Site.BaseURL }}/css/images/avatar.png">
{{ with .Site.Params.author}}<h2 id="name">{{ . }}</h2>{{ end }}
{{ with .Site.Params.author }}<h2 id="name">{{ . }}</h2>{{ end }}
{{ with .Site.Params.bio }}<h3 id="title">{{ . }}</h3>{{ end }}
{{ with .Site.Params.location }}<span id="location"><i class="fa fa-map-marker"></i>{{ . }}</span>{{ end }}
{{ with .Site.Params.profile.follow_button }}
<a id="follow" href="{{ . }}">
{{with $.Site.Data.l10n.profile.follow_button}}{{.}}{{end}}
{{ with $.Site.Data.l10n.profile.follow_button }}{{ . }}{{ end }}
</a>
{{ end }}
</div>
<div class="article-info profile-block">
<div class="article-info-block">
{{ len (where .Site.RegularPages "Type" "post") }}
<span>{{with .Site.Data.l10n.profile.posts}}{{.}}{{end}}</span>
<span>{{ with .Site.Data.l10n.profile.posts }}{{ . }}{{ end }}</span>
</div>
<div class="article-info-block">
{{ len .Site.Taxonomies.tags }}
<span>
{{with .Site.Data.l10n.profile.tags}}{{.}}{{end}}
{{ with .Site.Data.l10n.profile.tags }}{{ . }}{{ end }}
</span>
</div>
</div>

View File

@ -1,6 +1,6 @@
<div class="widget-wrap">
<input id="search" type="text" placeholder="search">
<ul id="results"></ul>
<script type="text/javascript" src="{{ .Site.BaseURL }}/js/search.js"></script>
<script type="text/javascript" src="{{ .Site.BaseURL }}/bower_components/lunr.js/lunr.min.js"></script>
<script src="{{ .Site.BaseURL }}/js/search.js"></script>
<script src="{{ .Site.BaseURL }}/bower_components/lunr.js/lunr.min.js"></script>
</div>

View File

@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script type="text/javascript" src="../createjs/createjs.js"></script>
<script type="text/javascript" src="particlesjs.js"></script>
<script src="../createjs/createjs.js"></script>
<script src="particlesjs.js"></script>
<link href="particlesjs.css" rel="stylesheet" type="text/css">
</head>
<body>