added compression, hash link, new home button
This commit is contained in:
parent
11d9b0aa8e
commit
156acc174b
9
LICENSE
Normal file
9
LICENSE
Normal file
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
Fl1tzi<git@fl1tzi.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
11
Makefile
11
Makefile
|
@ -1,11 +1,18 @@
|
|||
.ONESHELL: compress
|
||||
|
||||
package:
|
||||
$(MAKE) clean
|
||||
$(MAKE) raw-package
|
||||
$(MAKE) -s clean
|
||||
$(MAKE) -s raw-package
|
||||
$(MAKE) -s compress
|
||||
|
||||
raw-package:
|
||||
./scripts/create-pages.sh
|
||||
cp -r src/pictures public/
|
||||
cp -r src/css_modules public/
|
||||
|
||||
compress:
|
||||
cd ./public/css_modules/
|
||||
yui-compressor -o '.css$$:.css' *.css
|
||||
|
||||
clean:
|
||||
rm -r public/* || true
|
||||
|
|
|
@ -1,17 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<!--
|
||||
MIT License
|
||||
|
||||
Fl1tzi<git@fl1tzi.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
-->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Applications</title>
|
||||
|
@ -25,7 +13,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||
<body>
|
||||
<!-- header -->
|
||||
<section id="header">
|
||||
<a href="/" class="go-home">< Homepage</a>
|
||||
<a href="/" class="go-home">HOME</a>
|
||||
<h1 class="title">Applications</h1>
|
||||
</section>
|
||||
|
||||
|
@ -58,6 +46,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||
<a href="https://git.fl1tzi.com/data/data/src/fl1tzi.com-privacy.md">P R I V A C Y</a>
|
||||
//
|
||||
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com">R E P O</a>
|
||||
-
|
||||
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com/commit/11d9b0aa8e10ad74cb7f6b302e121606bb5b7037">11d9b0a</span>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
|
|
|
@ -1,17 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<!--
|
||||
MIT License
|
||||
|
||||
Fl1tzi<git@fl1tzi.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
-->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Contact</title>
|
||||
|
@ -25,7 +13,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||
<body>
|
||||
<!-- header -->
|
||||
<section id="header">
|
||||
<a href="/" class="go-home">< Homepage</a>
|
||||
<a href="/" class="go-home">HOME</a>
|
||||
<h1 class="title">Contact</h1>
|
||||
</section>
|
||||
|
||||
|
@ -45,6 +33,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||
<a href="https://git.fl1tzi.com/data/data/src/fl1tzi.com-privacy.md">P R I V A C Y</a>
|
||||
//
|
||||
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com">R E P O</a>
|
||||
-
|
||||
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com/commit/11d9b0aa8e10ad74cb7f6b302e121606bb5b7037">11d9b0a</span>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
|
|
|
@ -1,12 +1 @@
|
|||
/*
|
||||
* Module for setting my picture as a background
|
||||
*/
|
||||
|
||||
body {
|
||||
background:
|
||||
linear-gradient(rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0.5) 100%),
|
||||
url(/pictures/background.jpg);
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
background-position: center;
|
||||
}
|
||||
body{background:linear-gradient(rgba(0,0,0,1) 20%,rgba(0,0,0,0.5) 100%),url(/pictures/background.jpg);background-size:cover;background-attachment:fixed;background-position:center}
|
|
@ -1,106 +1 @@
|
|||
/*
|
||||
MIT License
|
||||
|
||||
Fl1tzi<git@fl1tzi.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
:root {
|
||||
--font-family-header-footer: monospace;
|
||||
--font-family-content: system-ui;
|
||||
--font-size: 16px;
|
||||
--background-color: #121212;
|
||||
--text-color: #FFFbF1;
|
||||
--light-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
body {
|
||||
max-width: 100%;
|
||||
margin: auto;
|
||||
padding: 10px;
|
||||
background-color: var(--background-color);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
/* on very large screens stop expanding */
|
||||
@media (min-width: 1300px) {
|
||||
body {
|
||||
max-width: 1300px;
|
||||
}
|
||||
}
|
||||
|
||||
section#header {
|
||||
font: var(--font-size) var(--font-family-header-footer);
|
||||
}
|
||||
|
||||
section#content {
|
||||
font: var(--font-size) var(--font-family-content);
|
||||
margin-top: 30px;
|
||||
padding-bottom: 20px;
|
||||
padding-top: 20px;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 10px;
|
||||
border-bottom: 2px solid white;
|
||||
border-top: 2px solid white;
|
||||
}
|
||||
|
||||
section#footer {
|
||||
font: calc(var(--font-size) * 0.75) var(--font-family-header-footer);
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: underline;
|
||||
font-weight: 700;
|
||||
color: white;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 50px;
|
||||
text-transform: uppercase;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.go-home {
|
||||
text-decoration: none;
|
||||
border-bottom: 2px solid;
|
||||
color: var(--light-color);
|
||||
}
|
||||
|
||||
.go-home:hover {
|
||||
color: white;
|
||||
}
|
||||
|
||||
table, th, td {
|
||||
border: 1px solid white;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
th, td {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: var(--light-color);
|
||||
}
|
||||
|
||||
/* Show bigger links on touchscreens (hopefully) */
|
||||
@media (pointer:none), (pointer:coarse) {
|
||||
a {
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-top: 15px;
|
||||
}
|
||||
}
|
||||
:root{--font-family-header-footer:monospace;--font-family-content:system-ui;--font-size:16px;--background-color:#121212;--text-color:#fffbf1;--light-color:rgba(255,255,255,0.2)}body{max-width:100%;margin:auto;padding:10px;background-color:var(--background-color);color:var(--text-color)}@media(min-width:1300px){body{max-width:1300px}}section#header{font:var(--font-size) var(--font-family-header-footer)}section#content{font:var(--font-size) var(--font-family-content);margin-top:30px;padding-bottom:20px;padding-top:20px;margin-bottom:10px;margin-top:10px;border-bottom:2px solid white;border-top:2px solid white}section#footer{font:calc(var(--font-size) * .75) var(--font-family-header-footer)}a{text-decoration:underline;font-weight:700;color:white}pre{margin-top:0;margin-bottom:0}.title{font-size:50px;text-transform:uppercase;margin-top:5px;margin-bottom:0}.go-home{background-color:white;text-decoration:none;padding:5px;color:black;margin-left:0}table,th,td{border:1px solid white;border-collapse:collapse}th,td{padding:5px}th{background-color:var(--light-color)}@media(pointer:none),(pointer:coarse){a{margin:10px}li{margin-top:15px}}
|
|
@ -1,17 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<!--
|
||||
MIT License
|
||||
|
||||
Fl1tzi<git@fl1tzi.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
-->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Index</title>
|
||||
|
@ -44,6 +32,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||
<a href="https://git.fl1tzi.com/data/data/src/fl1tzi.com-privacy.md">P R I V A C Y</a>
|
||||
//
|
||||
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com">R E P O</a>
|
||||
-
|
||||
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com/commit/11d9b0aa8e10ad74cb7f6b302e121606bb5b7037">11d9b0a</span>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
GIT_COMMIT_SHORT="$(git show --format="%h" --no-patch)"
|
||||
GIT_COMMIT="$(git rev-parse HEAD)"
|
||||
|
||||
for page in $(ls src/pages); do
|
||||
pandoc --from gfm+smart+yaml_metadata_block \
|
||||
-s "src/pages/$page" \
|
||||
-o "public/$(basename $page .md).html" \
|
||||
-V git_commit="$GIT_COMMIT" \
|
||||
-V git_commit_short="$GIT_COMMIT_SHORT" \
|
||||
--template src/template.html
|
||||
done
|
||||
|
||||
|
|
|
@ -10,3 +10,4 @@ body {
|
|||
background-attachment: fixed;
|
||||
background-position: center;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,15 +1,3 @@
|
|||
/*
|
||||
MIT License
|
||||
|
||||
Fl1tzi<git@fl1tzi.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
:root {
|
||||
--font-family-header-footer: monospace;
|
||||
--font-family-content: system-ui;
|
||||
|
@ -67,18 +55,16 @@ pre {
|
|||
.title {
|
||||
font-size: 50px;
|
||||
text-transform: uppercase;
|
||||
margin-top: 0;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.go-home {
|
||||
background-color: white;
|
||||
text-decoration: none;
|
||||
border-bottom: 2px solid;
|
||||
color: var(--light-color);
|
||||
}
|
||||
|
||||
.go-home:hover {
|
||||
color: white;
|
||||
padding: 5px;
|
||||
color: black;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
table, th, td {
|
||||
|
|
|
@ -1,17 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
|
||||
<!--
|
||||
MIT License
|
||||
|
||||
Fl1tzi<git@fl1tzi.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
-->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>$title$</title>
|
||||
|
@ -30,7 +18,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||
<section id="header">
|
||||
$if(homepage)$
|
||||
$else$
|
||||
<a href="/" class="go-home">< Homepage</a>
|
||||
<a href="/" class="go-home">HOME</a>
|
||||
$endif$
|
||||
<h1 class="title">$title$</h1>
|
||||
</section>
|
||||
|
@ -45,6 +33,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||
<a href="https://git.fl1tzi.com/data/data/src/fl1tzi.com-privacy.md">P R I V A C Y</a>
|
||||
//
|
||||
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com">R E P O</a>
|
||||
-
|
||||
<a href="https://git.fl1tzi.com/Fl1tzi/fl1tzi.com/commit/$git_commit$">$git_commit_short$</span>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
|
|
Loading…
Reference in a new issue