commit 8d9b5597d7aa4d5a3280c5790a6565501a34162a
parent d3882c8acc958aa21d5091e97a33f08e5a9154dd
Author: mjkloeckner <martinjkloeckner@gmail.com>
Date: Fri, 1 Sep 2023 12:03:57 -0300
add new sections `files`
Adds new section in the top links bar, this new sections is a directory
listing of a new folder `/files` located in the root of the
project. The folder files are previewed with nginx built-in directory
listing and to make it nicer three files are included in `/css` folder,
these files are then included after and before the body of the generated
webpage by nginx, to make it work requires some configuration in the
nginx configuration file.
Diffstat:
16 files changed, 64 insertions(+), 9 deletions(-)
diff --git a/common/header.shtml b/common/header.shtml
@@ -6,8 +6,8 @@
<ul class="header_buttons">
<li class="header_button" style="padding-right: 10px"><a href="https://git.kloeckner.com.ar/" style="text-decoration: none;">git</a></li>
<li class="header_button" style="padding-right: 10px"><a href="/blog" style="text-decoration: none;">blog</a></li>
+ <li class="header_button" style="padding-right: 10px"><a href="/files" style="text-decoration: none;">files</a></li>
<li class="header_button" style="padding-right: 10px"><a href="/about" style="text-decoration: none;">about</a></li>
- <li class="header_button"><a href="/cv.pdf" style="text-decoration: none;" target="_blank">cv<i class="icon-download"></i></a></li>
</ul>
</div>
</header>
diff --git a/css/dir-listing-after-body.txt b/css/dir-listing-after-body.txt
@@ -0,0 +1,2 @@
+ <footer style="text-align: center;padding-top: 1em;"><a href="/">https://kloeckner.com.ar</a></footer>
+</html>
diff --git a/css/dir-listing-before-body.txt b/css/dir-listing-before-body.txt
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ <link rel="stylesheet" href="/css/dir-listing.css">
+ <link rel="icon" type="image/x-icon" href="/favicon.png">
+</head>
diff --git a/css/dir-listing.css b/css/dir-listing.css
@@ -0,0 +1,51 @@
+* {
+ font-family: monospace;
+}
+
+body {
+ margin-left: auto;
+ margin-right: auto;
+ padding: 1em;
+ max-width: 60em;
+ font-size: 14px;
+}
+
+body pre {
+ overflow: hidden;
+}
+
+a {
+ color: #a04a00;
+ text-decoration: none;
+}
+
+a:hover {
+ color: crimson;
+ text-decoration: underline;
+}
+
+pre a {
+ padding-right: 169px;
+}
+
+body pre {
+ border: 1px solid #505050;
+ padding: 1em;
+ border-radius: .5em;
+}
+
+hr {
+ display: none;
+}
+
+@media (prefers-color-scheme: dark) {
+ * {
+ color: antiquewhite;
+ }
+ body {
+ background: #191919;
+ }
+ a {
+ color: peru;
+ }
+}
diff --git a/css/style.css b/css/style.css
@@ -208,14 +208,7 @@ img {
background: #191919;
}
-a:visited {
- color: #C5C8C6;
- color: #575B61;
- color: peru;
-}
-
-a:link {
- color: #81A2BE;
+a:visited, a:active, a:link {
color: peru;
text-decoration: none;
}
diff --git a/cv.pdf b/files/cv.pdf
Binary files differ.
diff --git a/files/quimica/diagrama_de_fases.pdf b/files/quimica/diagrama_de_fases.pdf
Binary files differ.
diff --git a/files/quimica/electroquimica.pdf b/files/quimica/electroquimica.pdf
Binary files differ.
diff --git a/files/quimica/equil_ionico.pdf b/files/quimica/equil_ionico.pdf
Binary files differ.
diff --git a/files/quimica/equil_quimico.pdf b/files/quimica/equil_quimico.pdf
Binary files differ.
diff --git a/files/quimica/fuerzas_intermoleculares.pdf b/files/quimica/fuerzas_intermoleculares.pdf
Binary files differ.
diff --git a/files/quimica/liquidos.pdf b/files/quimica/liquidos.pdf
Binary files differ.
diff --git a/files/quimica/quimica_organica.pdf b/files/quimica/quimica_organica.pdf
Binary files differ.
diff --git a/files/quimica/solidos.pdf b/files/quimica/solidos.pdf
Binary files differ.
diff --git a/files/quimica/termodinamica.pdf b/files/quimica/termodinamica.pdf
Binary files differ.
diff --git a/files/quimica/termoquimica.pdf b/files/quimica/termoquimica.pdf
Binary files differ.