cleaned website stylesheets, reactivated ip address ws on artible pages
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Paul 2020-06-06 02:32:29 +02:00
parent ca3719a6e5
commit 26f1f90c1d
36 changed files with 645 additions and 383 deletions

View File

@ -6,7 +6,6 @@ tags = ["paulbsd","services","web"]
title = "PaulBSD Web Services"
+++
# PaulBSD Web Services
PaulBSD.com provides many services like :

View File

@ -6,7 +6,6 @@ tags = ["paulbsd","netbsd","legacy"]
title = "NetBSD 9.0 update"
+++
# NetBSD 9.0 update
As the new major release of NetBSD being rolled, PaulBSD upgraded legacy production in Normandy to NetBSD 9.0 which provides new fun features as below :

View File

@ -3,4 +3,3 @@ tags = []
categories = []
menu = ""
+++

File diff suppressed because one or more lines are too long

View File

@ -1,25 +0,0 @@
#!/bin/bash
d=content/post
if [ ! -d ../syui.gitlab.io-comment ];then
git clone https://github.com/mba-hack/syui.gitlab.io-comment.git ../syui.gitlab.io-comment
fi
if [ -d ../${d} ];then
mkdir -p ../syui.gitlab.io-comment/_posts
f=$(echo -e "`ls -A ../${d}`\n`ls -A ../syui.gitlab.io-comment/_posts`" | sort | uniq -u)
cd ../syui.gitlab.io-comment/_posts
if [ -n "$f" ];then
n=`echo "$f" | wc -l`
echo $n
for (( i=1;i<=$n;i++ ))
do
t=`echo "$f" | awk "NR==$i"`
echo $t
touch $t
git add $t
git commit -m "update"
git push
done
fi
fi

View File

@ -1,8 +0,0 @@
#!/bin/zsh
#github=github.com/users/syui/contributions_calendar_data
f=${0:a:h:h}/static/json/datas.json
u=gitlab.com/u/$USER/calendar
t=`curl -sL $u|grep '{"'`
echo ${t%,}|jq .
echo ${t%,} >! $f

View File

@ -1,57 +0,0 @@
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="../static/js/jquery.xdomainajax.js"></script>
<script src="../static/bower_components/d3/d3.min.js" charset="utf-8"></script>
<script src="../static/bower_components/cal-heatmap/cal-heatmap.min.js"></script>
<link rel="stylesheet" href="../static/bower_components/cal-heatmap/cal-heatmap.css" />
<!--<script src="https://raw.githubusercontent.com/syui/jquery.fn/master/cross-domain-ajax/jquery.xdomainajax.js"></script>-->
<!--diff : https://github.com/syui/jquery.fn/blob/master/cross-domain-ajax/jquery.xdomainajax.js#L62 -->
<h3>Calendar Activities</h3>
<div id="cal-heatmap"></div>
<div id="example-heatmap"></div>
<script>
jQuery(function ($) {
var json;
$.ajax({
type: 'GET',
url: 'https://gitlab.com/u/syui/calendar',
dataType: 'html',
async: false,
cache: false,
success: function(data) {
var content = $(data.responseText).find('script').html();
var tmp = content.replace("<![CDATA[", "").replace("]]>", "");
var s = tmp.indexOf( "{" );
var e = tmp.indexOf( "}" );
json = tmp.substring( s, e+1 );
$('#gitlab-calendar-activities').text(json);
}
});
setTimeout( $('#example-heatmap').each(function () {
//setTimeout( function() {
if( json != null ){
var obj = $.parseJSON(json);
var now = new Date();
new CalHeatMap().init({
data: obj,
domain: 'month',
domainLabelFormat: '%Y-%m',
itemSelector: '#example-heatmap',
legend: [1, 3, 5, 7],
legendColors: {
min: "#efefef",
max: "steelblue",
empty: "#efefef"
},
tooltip: true,
start: new Date(now.getFullYear(), now.getMonth() - 9)
});
} else {
setTimeout( arguments.callee, 100 );
}
}));
});
</script>
<div id="gitlab-calendar-activities" style="display:none;"></div>

View File

@ -1,24 +0,0 @@
#!/bin/zsh
d=${0:a:h:h}
# backup
h=${0:a:h}
if cat $j|jq . ;then
cp $j $h
fi
h=$h/PagesIndex.json
j=$d/static/bower_components/lunr.js/PagesIndex.json
t=`cat $j |jq '.[]'|sed -e 's#/post##g'`
a=`cat $j | sed -e 's#/post##g'`
echo $a >! $j
t=`echo $t|jq -r '.href'|cut -d - -f 1-4`
for (( i=1;i<=`echo "$t"|wc -l`;i++ ))
do
f=`echo "$t"|awk "NR==$i"`
c=`echo $f|tr '-' '/'`
sed -i "" "s#${f}#${c}#g" $j
done
cat $j
diff $j $h

View File

@ -9,14 +9,14 @@
<div class="article-inner">
<div class="article-entry" itemprop="articleBody">
<p>
<center>
<h1>
{{with .Site.Data.l10n.page_not_found.title}}{{.}}{{end}}
</h1>
<h3>
{{with .Site.Data.l10n.page_not_found.subtitle}}{{.}}{{end}}
</h3>
</center>
<center>
<h1>
{{with .Site.Data.l10n.page_not_found.title}}{{.}}{{end}}
</h1>
<h3>
{{with .Site.Data.l10n.page_not_found.subtitle}}{{.}}{{end}}
</h3>
</center>
</p>
</div>
</div>

View File

@ -26,4 +26,5 @@
{{ partial "footer" . }}
</body>
</html>

View File

@ -10,4 +10,5 @@
{{ partial "footer" . }}
</body>
</html>

View File

@ -5,7 +5,8 @@
{{ if isset .Params "banner" }}
<a href="{{ .Permalink }}" class="thumbnail">
<span style="background-image:url({{ .Site.BaseURL }}{{ .Params.banner }})" alt="{{ .Title }}" class="thumbnail-image"></span>
<span style="background-image:url({{ .Site.BaseURL }}{{ .Params.banner }})" alt="{{ .Title }}"
class="thumbnail-image"></span>
</a>
{{ else }}
<a href="{{ .Permalink }}" class="thumbnail">

View File

@ -8,19 +8,19 @@
<div id="example-heatmap"></div>
<script type="text/javascript">
var cal = new CalHeatMap();
cal.init({
itemSelector: "#example-heatmap",
domain: "week",
subDomain: "hour",
data: "/hugo-theme-wave/json/datas-years.json",
start: new Date(2000, 0, 5),
cellSize: 10,
range: 2,
previousSelector: "#example-c-PreviousDomain-selector",
nextSelector: "#example-c-NextDomain-selector",
legend: [2, 4, 6, 8],
tooltip: true
});
cal.init({
itemSelector: "#example-heatmap",
domain: "week",
subDomain: "hour",
data: "/hugo-theme-wave/json/datas-years.json",
start: new Date(2000, 0, 5),
cellSize: 10,
range: 2,
previousSelector: "#example-c-PreviousDomain-selector",
nextSelector: "#example-c-NextDomain-selector",
legend: [2, 4, 6, 8],
tooltip: true
});
</script>
<div id="blog-archives" class="category">
{{ .Content }}
@ -36,10 +36,6 @@ cal.init({
</div>
</div>
{{ partial "footer" . }}
</body>
</html>

View File

@ -1,18 +1,19 @@
<!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
{{ partial "head" . }}
<body>
<div class="container">
<div id="container">
{{ partial "header" . }}
<!--{{ partial "home" . }}-->
<div class="outer">
{{ partial "article_list" . }}
{{ partial "sidebar" . }}
</div>
{{ partial "head" . }}
<body>
<div class="container">
<div id="container">
{{ partial "header" . }}
<!--{{ partial "home" . }}-->
<div class="outer">
{{ partial "article_list" . }}
{{ partial "sidebar" . }}
</div>
</div>
{{ partial "footer" . }}
{{ partial "footer_js" . }}
</body>
</div>
{{ partial "footer" . }}
</body>
</html>

View File

@ -1,13 +1,8 @@
<div class="article-inner-first">
<h2>
A simple, lightweight theme
</h2>
<p>
You've reached the website for <b>Arch Linux</b> user, I was in mobile-enabled.
You've reached the website for <b>Arch Linux</b> user, I was in mobile-enabled.
</p>
</div>
<!--
<div class="rss-right"><a href="{{ .RelPermalink }}"><i class="fa fa-rss-square fa-lg"></i></a></div>
-->

View File

@ -1,11 +1,5 @@
<footer class="article-footer">
<!--
<a data-url="{{ .Permalink }}" data-id="{{ .File.UniqueID }}" class="article-share-link">
{{with .Site.Data.l10n.articles.share}}{{.}}{{end}}
</a>
-->
{{ if not (eq .Site.DisqusShortname "") }}
<a href="{{ .Permalink }}/#disqus_thread" class="article-comment-link">
{{with .Site.Data.l10n.articles.comments}}{{.}}{{end}}
</a>

View File

@ -20,15 +20,15 @@
{{ partial "article_header" . }}
<div class="article-entry" itemprop="articleBody">
<p>
{{ .Summary }} ...
{{ .Summary }} ...
</p>
<p class="article-more-link">
<a href="{{ .Permalink }}">
Read more
<!--
<a href="{{ .Permalink }}">
Read more
<!--
{{ with .Site.Data.l10n.articles.read_more }}{{ . }}{{ end }}
-->
</a>
</a>
</p>
</div>
<!--

View File

@ -1,4 +1,5 @@
<footer id="footer">
<div class="outer">
<div id="footer-info" class="inner">
<footer id="footer-left">
@ -8,4 +9,16 @@
<footer id="footer-right">Your IP address : <a id="dip">{{ "{{" }} returnstring {{ "}}" }}</a></footer>
</div>
</div>
<script src="{{ .Site.BaseURL }}js/main.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js">
</script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script type="text/javascript"
src="https://raw.githubusercontent.com/jeresig/jquery.hotkeys/master/jquery.hotkeys.js">
</script>
</footer>

View File

@ -1,12 +0,0 @@
{{ template "_internal/google_analytics.html" . }}
<script src="{{ .Site.BaseURL }}js/main.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.8.0/highlight.min.js">
</script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script type="text/javascript" src="https://raw.githubusercontent.com/jeresig/jquery.hotkeys/master/jquery.hotkeys.js">
</script>

View File

@ -19,7 +19,9 @@
<script src="{{ .Site.BaseURL }}bower_components/highlightjs/highlight.pack.min.js"></script>
<script src="{{ .Site.BaseURL }}bower_components/vue/vue.min.js"></script>
<script src="{{ .Site.BaseURL }}bower_components/axios/axios.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>
hljs.initHighlightingOnLoad();
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {

View File

@ -11,13 +11,10 @@
<ul class="nav navbar-nav navbar-right">
{{ partial "navbar-menu" . }}
{{ partial "navbar-icon" . }}
<!--
{{ partial "navbar-search" . }}
-->
</ul>
</div><!-- /.navbar-collapse -->
</div>
</div><!-- /.container-fluid -->
</div>
</nav>
</div>
</div>

View File

@ -1,7 +1,7 @@
<li><a href="/">Home</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
aria-expanded="false">PaulBSD Applications<span class="caret"></span></a>
aria-expanded="false">PaulBSD Applications<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a target="_blank" rel="noopener noreferrer" href="https://mail.paulbsd.com">PMail</a></li>
<li role="separator" class="divider"></li>

View File

@ -76,7 +76,7 @@
{{ with .Site.Social.stackoverflow }}
<td><a href="//stackoverflow.com/users/{{.}}" target="_blank" title="Stackoverflow"><i
class="fa fa-stackoverflow"></i></a></td>
class="fa fa-stackoverflow"></i></a></td>
{{ end }}
{{ with .Site.Social.reddit }}

View File

@ -1,6 +1,6 @@
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>

View File

@ -2,7 +2,6 @@
<div class="widget">
<h3 class="widget-title">
Docs
<!--{{with .Site.Data.l10n.widgets.documentation.title}}{{.}}{{end}} -->
</h3>
<ul class="category-list">
<li class="category-list-item">

View File

@ -2,7 +2,7 @@
<div class="widget-download">
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
aria-expanded="false">
<i class="fa fa-question-circle"></i> Help <span class="caret"></span>
</button>
<ul class="dropdown-menu">
@ -16,7 +16,7 @@
<div class="btn-group">
<a href="https://gitlab.com/syui">
<button type="button" class="btn btn-default" aria-haspopup="true" aria-expanded="false"><i class="fa fa-gitlab"
aria-hidden="true"></i> GitLab</button>
aria-hidden="true"></i> GitLab</button>
</a>
</div>
</div>

View File

@ -8,10 +8,10 @@
Posts
</h3>
</a></li>
{{ range first 10 (where .Site.RegularPages "Type" "post") }}
{{ range first 10 (where .Site.RegularPages "Type" "post") }}
<li><a href="{{ .Permalink }}" class="move"> {{ .Title }}</a> </li>
{{ end }}
<li><a href="{{ .Permalink }}" class="move"> {{ .Title }}</a> </li>
{{ end }}
</ul>
</div>
</div>

View File

@ -4,8 +4,6 @@
<ul class="category-list">
<h3 class="widget-title">Tags {{with .Site.Data.l10n.widgets.tag_cloud.title}}{{.}}{{end}} </h3>
<div class="widget tagcloud">
{{ range $name, $items := .Site.Taxonomies.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ $name | urlize | lower }}" style="font-size: 12px;">{{ $name }}</a>
{{ end }}

View File

@ -1,7 +1,6 @@
<div class="widget-wrap">
<div class="widget">
<h3 class="widget-title">Recent Updates</h3>
<table>
<tbody>
<tr>
@ -22,7 +21,7 @@
<td class="pkg-name"><span class="extra">rp-pppoe 3.12-1</span></td>
<td class="pkg-arch">
<a href="/packages/extra/i686/rp-pppoe/" title="Details for rp-pppoe [extra]">i686</a>/<a
href="/packages/extra/x86_64/rp-pppoe/" title="Details for rp-pppoe [extra]">x86_64</a>
href="/packages/extra/x86_64/rp-pppoe/" title="Details for rp-pppoe [extra]">x86_64</a>
</td>
</tr>
@ -30,7 +29,7 @@
<td class="pkg-name"><span class="extra">gsound 1.0.2-1</span></td>
<td class="pkg-arch">
<a href="/packages/extra/i686/gsound/" title="Details for gsound [extra]">i686</a>/<a
href="/packages/extra/x86_64/gsound/" title="Details for gsound [extra]">x86_64</a>
href="/packages/extra/x86_64/gsound/" title="Details for gsound [extra]">x86_64</a>
</td>
</tr>
@ -38,7 +37,7 @@
<td class="pkg-name"><span class="community">go-ipfs 0.3.11-1</span></td>
<td class="pkg-arch">
<a href="/packages/community/i686/go-ipfs/" title="Details for go-ipfs [community]">i686</a>/<a
href="/packages/community/x86_64/go-ipfs/" title="Details for go-ipfs [community]">x86_64</a>
href="/packages/community/x86_64/go-ipfs/" title="Details for go-ipfs [community]">x86_64</a>
</td>
</tr>
@ -60,7 +59,7 @@
<td class="pkg-name"><span class="community">gpsbabel 1.5.3-1</span></td>
<td class="pkg-arch">
<a href="/packages/community/i686/gpsbabel/" title="Details for gpsbabel [community]">i686</a>/<a
href="/packages/community/x86_64/gpsbabel/" title="Details for gpsbabel [community]">x86_64</a>
href="/packages/community/x86_64/gpsbabel/" title="Details for gpsbabel [community]">x86_64</a>
</td>
</tr>
@ -68,7 +67,7 @@
<td class="pkg-name"><span class="extra">marble 15.12.1-2</span></td>
<td class="pkg-arch">
<a href="/packages/extra/i686/marble/" title="Details for marble [extra]">i686</a>/<a
href="/packages/extra/x86_64/marble/" title="Details for marble [extra]">x86_64</a>
href="/packages/extra/x86_64/marble/" title="Details for marble [extra]">x86_64</a>
</td>
</tr>
@ -76,7 +75,7 @@
<td class="pkg-name"><span class="extra">kdepimlibs 15.12.1-1</span></td>
<td class="pkg-arch">
<a href="/packages/extra/i686/kdepimlibs/" title="Details for kdepimlibs [extra]">i686</a>/<a
href="/packages/extra/x86_64/kdepimlibs/" title="Details for kdepimlibs [extra]">x86_64</a>
href="/packages/extra/x86_64/kdepimlibs/" title="Details for kdepimlibs [extra]">x86_64</a>
</td>
</tr>
@ -84,7 +83,7 @@
<td class="pkg-name"><span class="extra">libkdcraw 15.12.1-1</span></td>
<td class="pkg-arch">
<a href="/packages/extra/i686/libkdcraw/" title="Details for libkdcraw [extra]">i686</a>/<a
href="/packages/extra/x86_64/libkdcraw/" title="Details for libkdcraw [extra]">x86_64</a>
href="/packages/extra/x86_64/libkdcraw/" title="Details for libkdcraw [extra]">x86_64</a>
</td>
</tr>
@ -92,7 +91,7 @@
<td class="pkg-name"><span class="extra">dolphin-plugins 15.12.1-1</span></td>
<td class="pkg-arch">
<a href="/packages/extra/i686/dolphin-plugins/" title="Details for dolphin-plugins [extra]">i686</a>/<a
href="/packages/extra/x86_64/dolphin-plugins/" title="Details for dolphin-plugins [extra]">x86_64</a>
href="/packages/extra/x86_64/dolphin-plugins/" title="Details for dolphin-plugins [extra]">x86_64</a>
</td>
</tr>
@ -100,7 +99,7 @@
<td class="pkg-name"><span class="extra">bomber 15.12.1-1</span></td>
<td class="pkg-arch">
<a href="/packages/extra/i686/bomber/" title="Details for bomber [extra]">i686</a>/<a
href="/packages/extra/x86_64/bomber/" title="Details for bomber [extra]">x86_64</a>
href="/packages/extra/x86_64/bomber/" title="Details for bomber [extra]">x86_64</a>
</td>
</tr>
@ -108,9 +107,9 @@
<td class="pkg-name"><span class="extra">kross-interpreters 15.12.1-1</span></td>
<td class="pkg-arch">
<a href="/packages/extra/i686/kross-interpreters/"
title="Details for kross-interpreters [extra]">i686</a>/<a
href="/packages/extra/x86_64/kross-interpreters/"
title="Details for kross-interpreters [extra]">x86_64</a>
title="Details for kross-interpreters [extra]">i686</a>/<a
href="/packages/extra/x86_64/kross-interpreters/"
title="Details for kross-interpreters [extra]">x86_64</a>
</td>
</tr>
@ -118,7 +117,7 @@
<td class="pkg-name"><span class="extra">kmplot 15.12.1-1</span></td>
<td class="pkg-arch">
<a href="/packages/extra/i686/kmplot/" title="Details for kmplot [extra]">i686</a>/<a
href="/packages/extra/x86_64/kmplot/" title="Details for kmplot [extra]">x86_64</a>
href="/packages/extra/x86_64/kmplot/" title="Details for kmplot [extra]">x86_64</a>
</td>
</tr>

View File

@ -1,6 +1,6 @@
@media screen and (min-width: 1300px) {
#footer-center {
left: 50% !important;
left: 50% !important;
}
}
@ -8,27 +8,33 @@
#sidebar {
display: inline;
float: left;
width: auto !important;
margin-left: 10px;
width: auto !important;
margin-left: 10px;
}
#main {
display: inline;
float: left;
width: 60%;
margin: 0 0.7692307692308%;
}
#main-nav-mobile {
display: none;
}
#sub-nav {
display: none;
}
#profile {
display: block;
}
#article-nav {
margin: 40px 0;
}
#article-nav:before {
width: 8px;
height: 8px;
@ -40,15 +46,18 @@
border-radius: 50%;
background: #787c81;
}
.article-nav-link-wrap {
width: 50%;
margin-top: 0;
}
#article-nav-newer {
float: left;
text-align: right;
padding-right: 20px;
}
#article-nav-older {
float: right;
text-align: left;
@ -57,20 +66,24 @@
}
@media screen and (max-width: 1100px) {
#footer-right{
display:none;
#footer-right {
display: none;
}
#footer-left{
display:none;
#footer-left {
display: none;
}
#container > .outer{
width:auto;
#container>.outer {
width: auto;
}
#footer .outer {
width:auto;
width: auto;
}
.container-fluid {
width:auto;
width: auto;
padding-top: 7px;
}
}
@ -79,10 +92,12 @@
header .outer {
border-bottom: solid 0px #428bca;
}
#header a, #header a:visited {
color: #fff;
position: relative;
margin-bottom: 4px;
#header a,
#header a:visited {
color: #fff;
position: relative;
margin-bottom: 4px;
}
}
@ -90,17 +105,20 @@
#sidebar {
display: inline;
float: left;
width: auto !important;
width: auto !important;
}
#main {
display: inline;
float: left;
width: 67.6923076923077%;
margin: 0 0.7692307692308%;
}
#sidebar {
width: auto !important;
width: auto !important;
}
#main-nav-mobile {
display: none;
}
@ -113,9 +131,11 @@
font-size: 28px;
line-height: 54px;
}
#header-sub {
display: none;
}
#main-nav {
display: none;
}
@ -132,24 +152,30 @@
.widget-wrap {
margin: 40px 20px;
}
#toTop {
width: 54px;
height: 54px;
font-size: 28px;
line-height: 54px;
}
.outer {
padding: 0;
}
#header-sub {
display: none;
}
#main-nav {
display: none;
}
#main-nav-mobile .menu .search-form-input {
display: block;
}
.archive-year-wrap,
.archive-category-wrap,
.archive-tag-wrap,
@ -157,13 +183,16 @@
padding: 0 15px;
font-size: 1.2em;
}
.layout-wrap-inner {
padding: 0 15px;
}
.archive-article-thumbnail .thumbnail {
width: 120px;
height: 67.5px;
}
.archive-article-title {
font-size: 1em;
line-height: 1em;
@ -171,6 +200,7 @@
overflow: hidden;
display: block;
}
#page-nav .page-number {
display: none;
}

File diff suppressed because it is too large Load Diff

View File

@ -4,10 +4,10 @@ build:
- arjen/hugo-build:
version: "0.15"
theme: hugo-theme-arch
flags: --buildDrafts=true
flags: --buildDrafts=true
deploy:
steps:
- lukevivier/gh-pages@0.2.1:
token: $GIT_TOKEN
basedir: public
- lukevivier/gh-pages@0.2.1:
token: $GIT_TOKEN
basedir: public