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" title = "PaulBSD Web Services"
+++ +++
# PaulBSD Web Services # PaulBSD Web Services
PaulBSD.com provides many services like : PaulBSD.com provides many services like :

View File

@ -6,7 +6,6 @@ tags = ["paulbsd","netbsd","legacy"]
title = "NetBSD 9.0 update" title = "NetBSD 9.0 update"
+++ +++
# 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 : 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 = [] categories = []
menu = "" 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

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

View File

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

View File

@ -5,7 +5,8 @@
{{ if isset .Params "banner" }} {{ if isset .Params "banner" }}
<a href="{{ .Permalink }}" class="thumbnail"> <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> </a>
{{ else }} {{ else }}
<a href="{{ .Permalink }}" class="thumbnail"> <a href="{{ .Permalink }}" class="thumbnail">

View File

@ -36,10 +36,6 @@ cal.init({
</div> </div>
</div> </div>
{{ partial "footer" . }} {{ partial "footer" . }}
</body> </body>
</html> </html>

View File

@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}"> <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
{{ partial "head" . }} {{ partial "head" . }}
<body> <body>
<div class="container"> <div class="container">
<div id="container"> <div id="container">
@ -13,6 +14,6 @@
</div> </div>
</div> </div>
{{ partial "footer" . }} {{ partial "footer" . }}
{{ partial "footer_js" . }}
</body> </body>
</html> </html>

View File

@ -1,13 +1,8 @@
<div class="article-inner-first"> <div class="article-inner-first">
<h2> <h2>
A simple, lightweight theme A simple, lightweight theme
</h2> </h2>
<p> <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> </p>
</div> </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"> <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 "") }} {{ if not (eq .Site.DisqusShortname "") }}
<a href="{{ .Permalink }}/#disqus_thread" class="article-comment-link"> <a href="{{ .Permalink }}/#disqus_thread" class="article-comment-link">
{{with .Site.Data.l10n.articles.comments}}{{.}}{{end}} {{with .Site.Data.l10n.articles.comments}}{{.}}{{end}}
</a> </a>

View File

@ -1,4 +1,5 @@
<footer id="footer"> <footer id="footer">
<div class="outer"> <div class="outer">
<div id="footer-info" class="inner"> <div id="footer-info" class="inner">
<footer id="footer-left"> <footer id="footer-left">
@ -8,4 +9,16 @@
<footer id="footer-right">Your IP address : <a id="dip">{{ "{{" }} returnstring {{ "}}" }}</a></footer> <footer id="footer-right">Your IP address : <a id="dip">{{ "{{" }} returnstring {{ "}}" }}</a></footer>
</div> </div>
</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> </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/highlightjs/highlight.pack.min.js"></script>
<script src="{{ .Site.BaseURL }}bower_components/vue/vue.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 src="{{ .Site.BaseURL }}bower_components/axios/axios.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script> <script>
hljs.initHighlightingOnLoad();
</script>
<script type="text/x-mathjax-config"> <script type="text/x-mathjax-config">
MathJax.Hub.Config({ MathJax.Hub.Config({
tex2jax: { tex2jax: {

View File

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

View File

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

View File

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

View File

@ -1,7 +1,6 @@
<div class="widget-wrap"> <div class="widget-wrap">
<div class="widget"> <div class="widget">
<h3 class="widget-title">Recent Updates</h3> <h3 class="widget-title">Recent Updates</h3>
<table> <table>
<tbody> <tbody>
<tr> <tr>

View File

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

File diff suppressed because it is too large Load Diff