Add the deploy make target

This commit is contained in:
Sameer Rahmani 2021-08-07 23:30:19 +01:00
parent e33f27227b
commit b005a8cbad
6 changed files with 151 additions and 0 deletions

10
Makefile Normal file
View File

@ -0,0 +1,10 @@
clean:
rm -rf public
build:
hugo -D
deploy: clean build
rsync -vlcr --delete-after ./public/* core.lxsameer.com:/home/www/public/serene/
serve: build
hugo serve

View File

@ -0,0 +1,67 @@
<footer class="footer">
{{- if .Site.Copyright }}
<span>{{ .Site.Copyright | markdownify }}</span>
{{- else }}
<span>&copy; {{ now.Year }} <a href="{{ "" | absLangURL }}">{{ .Site.Title }}</a></span>
{{- end }}
<span>&middot;</span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top" accesskey="g">
<button class="top-link" id="top-link" type="button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6">
<path d="M12 6H0l6-6z" /></svg>
</button>
</a>
{{- partial "extend_footer.html" . -}}
{{ if in site.Params.mainSections .Type }}
{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint -}}
<script src="{{ $highlight.Permalink }}" integrity="{{ $highlight.Data.Integrity }}"></script>
<script>hljs.initHighlightingOnLoad();</script>
{{- end }}
<script>
window.onload = function () {
if (localStorage.getItem("menu-scroll-position")) {
document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position");
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
document.querySelector(`[id='${id}']`).scrollIntoView({
behavior: "smooth"
});
});
});
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
function menu_on_scroll() {
localStorage.setItem("menu-scroll-position", document.getElementById('menu').scrollLeft);
}
</script>
{{- if (not .Site.Params.disableThemeToggle) }}
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
{{- else -}}
{{/* case where owner disables theme button after deployment, this resets the stored theme */}}
<script>
localStorage.removeItem("pref-theme");
</script>
{{- end }}

BIN
static/images/serene.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

74
static/images/serene.svg Normal file
View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512mm"
height="512mm"
viewBox="0 0 512 512"
version="1.1"
id="svg931"
inkscape:export-filename="/home/lxsameer/serene.png"
inkscape:export-xdpi="25.4"
inkscape:export-ydpi="25.4"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
sodipodi:docname="serene.svg">
<defs
id="defs925" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.074613135"
inkscape:cx="-4812.6714"
inkscape:cy="741.94593"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1064"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="0" />
<metadata
id="metadata928">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="g1039"
transform="matrix(5.4643699,0,0,5.4643699,-646.86584,-18.784791)">
<path
id="path1019"
style="clip-rule:evenodd;fill:#5e246d;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.0642522;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;image-rendering:optimizeQuality;shape-rendering:geometricPrecision;text-rendering:geometricPrecision"
d="m 165.15124,6.3658643 c -1.60844,0 -3.08783,0.3850005 -4.43901,1.1549697 L 129.7658,25.358505 c -1.4798,0.70585 -2.70212,1.796968 -3.60288,3.208589 -0.96511,1.411629 -1.41645,3.079649 -1.41645,4.812109 v 33.814991 c 0,1.732478 0.45086,3.39998 1.41645,4.81159 0.90085,1.411632 2.12308,2.503287 3.60288,3.209108 l 30.94643,17.837671 c 1.35118,0.76994 2.83057,1.154967 4.43901,1.154967 0.0287,0 0.0478,-0.0031 0.0765,-0.0031 0.0287,2.22e-4 0.0574,0.0031 0.0765,0.0031 1.60843,0 3.08834,-0.384998 4.43952,-1.154967 L 200.6902,75.214892 c 1.47979,-0.70585 2.70212,-1.797476 3.60287,-3.209108 0.96512,-1.41161 1.41594,-3.079112 1.41594,-4.81159 V 33.379203 c 0,-1.73246 -0.45129,-3.40048 -1.41594,-4.812109 -0.90084,-1.411621 -2.12308,-2.502781 -3.60287,-3.208589 L 169.74372,7.520834 c -1.35118,-0.7700301 -2.83109,-1.1549697 -4.43952,-1.1549697 -0.0287,0 -0.0574,0.0031 -0.0765,0.0031 -0.0287,-1.402e-4 -0.0478,-0.0031 -0.0765,-0.0031 z" />
<path
id="path1052"
style="clip-rule:evenodd;fill:#8800aa;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.0642522;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1;image-rendering:optimizeQuality;shape-rendering:geometricPrecision;text-rendering:geometricPrecision"
d="m 165.15142,6.365746 c -1.60844,0 -3.08815,0.38492 -4.43933,1.154889 l -30.9464,17.837766 c -1.4798,0.70585 -2.70226,1.79716 -3.60302,3.20878 -0.96511,1.41163 -1.41602,3.07931 -1.41602,4.81177 v 33.81525 c 0,1.73248 0.45043,3.40018 1.41602,4.81179 0.90085,1.41163 2.12322,2.50295 3.60302,3.20877 l 30.9464,17.83776 c 1.35118,0.76994 2.83089,1.15489 4.43933,1.15489 0.0287,0 0.0478,-0.003 0.0765,-0.003 0.0287,2.2e-4 0.0574,0.003 0.0765,0.003 1.60843,0 3.08814,-0.38492 4.43932,-1.15489 l 30.94636,-17.83776 c 1.4798,-0.70585 2.70227,-1.79714 3.60302,-3.20877 0.96512,-1.41161 1.41602,-3.07931 1.41602,-4.81179 v -33.81525 c 0,-1.73246 -0.45138,-3.40014 -1.41602,-4.81177 -0.90085,-1.41162 -2.12322,-2.50297 -3.60302,-3.20878 L 169.74375,7.520635 c -1.35118,-0.770029 -2.83089,-1.154889 -4.43932,-1.154889 -0.0287,0 -0.0574,0.003 -0.0765,0.003 -0.0287,-1.4e-4 -0.0478,-0.003 -0.0765,-0.003 z m 0,7.057955 c 0.0287,0 0.0574,0.0105 0.0765,0.0105 0.0287,-10e-4 0.0574,-0.0105 0.0765,-0.0105 0.32132,0 0.64264,0.0648 0.89989,0.2574 l 31.0768,17.90136 0.25629,0.0648 v 0.0639 c 0.32133,0.12827 0.64361,0.38511 0.83583,0.64176 0.19317,0.32083 0.2582,0.64128 0.2582,1.02625 v 33.81524 c 0,0.38502 -0.0669,0.70547 -0.2582,1.02627 -0.19318,0.25655 -0.5145,0.51349 -0.83583,0.64176 v 0.0648 l -0.25629,0.12722 -31.0768,17.90278 c -0.25725,0.12828 -0.57857,0.19227 -0.89989,0.19227 -0.0287,0 -0.0574,-0.008 -0.0765,-0.008 -0.0287,0 -0.0574,0.008 -0.0765,0.008 -0.32133,0 -0.64265,-0.0639 -0.8999,-0.19227 l -31.07674,-17.90278 -0.25629,-0.12722 v -0.0648 c -0.32133,-0.12827 -0.64361,-0.38521 -0.83583,-0.64176 -0.19317,-0.32083 -0.2582,-0.64128 -0.2582,-1.02627 v -33.81537 c 0,-0.38501 0.0669,-0.70546 0.2582,-1.02624 0.19318,-0.25665 0.5145,-0.51348 0.83583,-0.64176 v -0.0639 l 0.25629,-0.0648 31.07674,-17.90139 c 0.25725,-0.19256 0.57857,-0.25741 0.8999,-0.25741 z" />
<path
id="path1050"
style="clip-rule:evenodd;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.49754;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;image-rendering:optimizeQuality;shape-rendering:geometricPrecision;text-rendering:geometricPrecision"
d="m 165.17475,19.270251 c -1.13592,0 -2.18088,0.27181 -3.135,0.81563 l -21.85388,12.59676 c -1.04506,0.49842 -1.90833,1.26916 -2.54448,2.26601 -0.68185,0.99689 -0.99996,2.1746 -0.99996,3.39802 v 3.83523 h 4.9968 v 0.0172 c 7.19228,-0.1238 22.64437,-0.0391 23.20515,0.44425 0.66943,0.57738 0.9305,1.81715 1.28329,3.98098 0.01,0.0887 -0.01,0.18484 -0.0669,0.26856 -0.21231,0.31302 -0.44278,0.61812 -0.6656,0.92435 -1.5172,2.08803 -3.07523,4.11206 -4.90773,6.04335 -1.64764,1.73317 -3.50137,3.37616 -5.68235,4.86941 -2.45639,1.68261 -5.32697,3.17256 -8.7264,4.34934 -0.0574,0.0228 -0.11284,0.0448 -0.1664,0.0725 0.0478,0.02 0.0669,0.0315 0.0861,0.0401 3.5006,1.07478 5.89819,1.41084 7.9516,0.95632 2.03093,-0.44958 4.38041,-1.83483 7.23397,-4.66179 3.8136,-3.27734 5.07384,-5.48805 5.91961,-6.09325 0.86642,-0.62001 1.03502,0.33752 1.5675,2.92584 0.15683,0.72941 0.36818,1.69846 0.65412,2.7142 0.0861,0.30605 0.17979,0.62565 0.28498,0.95532 0.65412,1.86023 1.3223,3.21061 2.03897,4.08181 0.72106,0.87637 1.51634,1.30319 2.52841,1.31569 1.47454,0.019 9.10998,-2.97771 14.64199,-5.91258 v 2.75314 c 0,0.27191 -0.0478,0.49813 -0.1817,0.72474 -0.13675,0.18121 -0.3634,0.36261 -0.591,0.45321 v 0.0458 l -0.1817,0.0897 -21.94597,12.64271 c -0.1817,0.0906 -0.40835,0.13571 -0.63595,0.13571 -0.0191,0 -0.0383,-0.006 -0.0574,-0.006 -0.0191,0 -0.0382,0.006 -0.0574,0.006 -0.22761,0 -0.45426,-0.0448 -0.63596,-0.13571 l -21.94597,-12.64271 -0.1817,-0.0897 v -0.0458 c -0.22664,-0.0906 -0.45425,-0.272 -0.591,-0.45321 -0.13675,-0.22651 -0.1817,-0.45283 -0.1817,-0.72474 v -13.84658 h -4.99785 v 13.84658 c 0,1.22346 0.31845,2.40116 1.00006,3.39802 0.63595,0.99687 1.49941,1.76756 2.54438,2.266 l 21.85397,12.59679 c 0.95441,0.54372 1.99909,0.81553 3.135,0.81553 0.0191,0 0.0383,-0.002 0.0574,-0.002 0.0191,1.5e-4 0.0383,0.002 0.0574,0.002 1.13582,0 2.18088,-0.27181 3.135,-0.81553 l 21.85388,-12.59679 c 1.04506,-0.49842 1.90833,-1.26913 2.54447,-2.26601 0.68186,-0.99686 0.99993,-2.17456 0.99993,-3.39801 v -10.13912 l -4.96979,2.24902 c -0.003,0.002 -0.007,0.003 -0.009,0.004 l -0.0191,0.009 v 9.9e-4 c -3.67781,1.85363 -11.76214,5.27167 -12.25675,5.22679 -0.51545,-0.0468 -1.02613,-0.90852 -1.93989,-3.0087 -1.43581,-3.25965 -2.03036,-7.02859 -2.7606,-10.52644 -0.11189,-0.53342 -0.2123,-1.05292 -0.30602,-1.54328 -0.19987,-1.02073 -0.37583,-1.951 -0.57188,-2.7781 -0.48294,-2.10064 -1.10292,-3.57668 -2.75362,-4.28444 -0.82339,-0.35306 -7.5181,-0.51892 -14.55287,-0.47219 -4.10681,0.0276 -8.23925,0.13362 -11.46998,0.31044 0.0669,-0.041 0.13293,-0.0792 0.20083,-0.10577 v -0.0448 l 0.18074,-0.0458 21.94597,-12.64171 c 0.1817,-0.136 0.40835,-0.18159 0.63595,-0.18159 0.0191,0 0.0383,0.008 0.0574,0.008 0.0191,-9.9e-4 0.0383,-0.008 0.0574,-0.008 0.2276,0 0.45425,0.0458 0.63595,0.18159 l 21.94606,12.64171 0.18075,0.0458 v 0.0448 c 0.2276,0.0906 0.45425,0.27191 0.591,0.45321 0.13676,0.22661 0.18266,0.45283 0.18266,0.72474 v 9.077 l 4.99772,-2.1602 v -6.9168 c 0,-1.22345 -0.31846,-2.40114 -0.99993,-3.39802 -0.63595,-0.99686 -1.49941,-1.76755 -2.54447,-2.26599 l -21.85397,-12.59675 c -0.95441,-0.54372 -1.99909,-0.81553 -3.135,-0.81553 -0.0191,0 -0.0383,0.003 -0.0574,0.003 -0.0191,-10e-5 -0.0383,-0.003 -0.0574,-0.003 z" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
static/images/serene_16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

BIN
static/images/serene_32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB