Sill some tweaks

This commit is contained in:
Yann Esposito (Yogsototh) 2020-08-22 19:32:12 +02:00
parent fecd03b370
commit 973f347eef
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
5 changed files with 28 additions and 37 deletions

View File

@ -235,8 +235,8 @@ postamble now bp =
, "| tags | " <> T.intercalate " " (map ("#"<>) (postTags bp)) <> " |"
, "| date | " <> postDate bp <> " |"
, "| rss | [[file:/rss.xml][RSS]] ([[https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fher.esy.fun%2Frss.xml][validate]]) |"
, "| size | @@html:<div class=\"web-file-size\">XXK (html XXK, css XXK, img XXK)</div>@@ |"
, "| gz | @@html:<div class=\"gzweb-file-size\">XXK (html XXK, css XXK, img XXK)</div>@@ |"
, "| size | @@html:<span class=\"web-file-size\">XXK (html XXK, css XXK, img XXK)</span>@@ |"
, "| gz | @@html:<span class=\"gzweb-file-size\">XXK (html XXK, css XXK, img XXK)</span>@@ |"
, "| generated | " <> now <> " |"
, ""
, "@@html:</footer>@@"

View File

@ -73,6 +73,6 @@ for fic in $filelist; do
gzsizeinfos="$gzsizeinfos)"
fi
print -- $sizeinfos
perl -pi -e 's#(<div class="?web-file-size"?>)[^<]*(</div>)#$1'"$sizeinfos"'$2#;s#(<div class="?gzweb-file-size"?>)[^<]*(</div>)#$1'"$gzsizeinfos"'$2#' $fic
perl -pi -e 's#(<span class="?web-file-size"?>)[^<]*(</span>)#$1'"$sizeinfos"'$2#;s#(<span class="?gzweb-file-size"?>)[^<]*(</span>)#$1'"$gzsizeinfos"'$2#' $fic
done
rm -rf $tmpdir

View File

@ -3,6 +3,7 @@ html {
font-size: 14px;
line-height: calc(1ex/0.37); }
html,body { margin: 0; padding: 0; border: 0; }
.main { min-height: calc(100vh - 1em); }
h1,h2,h3,h4,h5,h6 {
line-height: calc(1ex/0.42);
margin: calc(1ex/0.42) 0; }
@ -34,8 +35,7 @@ footer { margin: 3em 0;
line-height: 1em;
font-size: 0.875em;
}
td { border-bottom: none; padding: .2rem; }
table { margin-top: 1rem; }
table { margin: 1rem 0; line-height: 1em; }
nav { text-align: center; padding: 1em 0; }
pre { line-height: 1em; }
@ -74,7 +74,7 @@ label ~ pre { margin-top: 0; }
--fg0: var(--b0);
--fg: var(--b02);
--rfg: #000;
--hl: var(--g);
--hl: var(--o);
}
/* dark preferred */
@ -118,7 +118,7 @@ input#l:checked ~ div {
--fg0: var(--b0);
--fg: var(--b02);
--rfg: #000;
--hl: var(--g);
--hl: var(--o);
}
input#l:checked ~ div img {
filter: none;
@ -167,7 +167,6 @@ body, body > div {
color: var(--fg);
}
a,a:visited { color: var(--hl); }
figcaption { color: var(--fg0); }
code { background: var(--rbg); }
/* ---- SYNTAX HIGHLIGHTING ---- */

View File

@ -9,37 +9,14 @@
#+MACRO: br @@html:<br/>@@
#+MACRO: pemail @@html: <a href="&#109;&#97;&#105;&#x6C;&#116;&#111;&#x3A;&#x79;&#x61;&#x6E;&#x6E;&#64;&#x65;&#x73;&#112;&#x6F;&#x73;&#105;&#x74;&#x6F;&#x2E;&#x68;&#x6F;&#x73;&#x74;">&#x59;&#x61;&#x6E;&#x6E;&#x20;&#x45;&#x73;&#x70;&#x6F;&#115;&#x69;&#116;&#x6F; &lt;&#x79;&#x61;&#x6E;&#x6E;&#64;&#x65;&#x73;&#112;&#x6F;&#x73;&#105;&#x74;&#x6F;&#x2E;&#x68;&#x6F;&#x73;&#x74;&gt;</a>@@
@@html:<nav>
<a href="/index.html">Home</a> |
<a href="/archive.html">Posts</a> |
<a href="/slides.html">Slides</a> |
<a href="/about-me.html">About</a>
<span class="details">
(<a href="https://gitea.esy.fun/yogsototh">code</a>
<a href="https://espial.esy.fun/u:yogsototh">bookmarks</a>
<a href="https://espial.esy.fun/u:yogsototh/notes">notes</a>)
</span>
</nav>@@
I'm a functional programmer, working remotely for Cisco.{{{br}}}
I work in Clojure and use Haskell/Purescript during the weekends.
- [[https://gitea.esy.fun/yogsototh][I write softwares]] ([[https://github.com/yogsototh][backuped on github]]),
- [[file:archive.org][I blog]] (you can follow new articles via [[https://her.esy.fun/rss.xml][RSS]]),
- [[file:slides.org][I sometime make some presentations]]
- [[file:archive.org][blog posts]] ([[https://her.esy.fun/rss.xml][RSS]]),
- [[file:slides.org][talks slides]]
- [[https://gitea.esy.fun/yogsototh][my open source code]] ([[https://github.com/yogsototh][github backup]]),
| email | {{{pemail}}} |
| gpg | [[file:files/publickey.txt][CB420F8005F1A662]] |
| | self-hosted | web |
|----------------+------------------+----------------------|
| programs | [[https://gitea.esy.fun/yogsototh][gitea.esy.fun]] | [[https://github.com/yogsototh][github/yogsototh]] |
| bookmarks | [[https://espial.esy.fun/u:yogsototh][espial.esy.fun]] | [[https://pinboard.in/u:yogsototh][pinboard/u:yogsototh]] |
| microblog | [[https://espial.esy.fun/u:yogsototh/notes][espial.esy.fun]] | [[https://twitter.com/yogsototh][twitter/@yogsototh]] |
| lobste.rs | . . . . . . . . | [[https://lobste.rs/u/yogsototh][/u/yogsototh]] |
| reddit | . . . . . . . . | [[https://reddit.com/u/yogsototh][/u/yogsototh]] |
| stack overflow | . . . . . . . . | [[https://stackoverflow.com/users/40569/yogsototh][yogsototh]] |
** About this website
That website was created with the following constraints in mind by order of
priority:
@ -52,4 +29,19 @@ priority:
4. *RSS*; you should be able to get informed when I add a new blog post.
5. *Frugal*; try to minimize the resources needed to visit my website; no
javascript, no web-font, not too much CSS magic, not much images or really
compressed one.
compressed one. Theme switcher to have a dark-mode (no js involved).
** My Internet Identity
| email | {{{pemail}}} |
| gpg | [[file:files/publickey.txt][CB420F8005F1A662]] |
| | self-hosted | web |
|----------------+-----------------+----------------------|
| code | [[https://gitea.esy.fun/yogsototh][gitea.esy.fun]] | [[https://github.com/yogsototh][github/yogsototh]] |
| my bookmarks | [[https://espial.esy.fun/u:yogsototh][espial.esy.fun]] | [[https://pinboard.in/u:yogsototh][pinboard/u:yogsototh]] |
| micro-blog | [[https://espial.esy.fun/u:yogsototh/notes][espial.esy.fun]] | [[https://twitter.com/yogsototh][twitter/@yogsototh]] |
| hn | . . . . . . . . | [[https://news.ycombinator.com/user?id=yogsototh][yogsototh]] |
| lobste.rs | . . . . . . . . | [[https://lobste.rs/u/yogsototh][/u/yogsototh]] |
| reddit | . . . . . . . . | [[https://reddit.com/u/yogsototh][/u/yogsototh]] |
| stack overflow | . . . . . . . . | [[https://stackoverflow.com/users/40569/yogsototh][yogsototh]] |

View File

@ -203,7 +203,7 @@ for fic in $filelist; do
total=$(( htmlsize + imgsize + csssize ))
sizeinfos=$(print -- "Size: $(toh $total) (HTML: $(toh $htmlsize), CSS: $(toh $csssize), IMG: $(toh $imgsize))")
print -- $sizeinfos
perl -pi -e 's#(<div class="?web-file-size"?>)[^<]*(</div>)#$1'"$sizeinfos"'$2#' $fic
perl -pi -e 's#(<span class="?web-file-size"?>)[^<]*(</span>)#$1'"$sizeinfos"'$2#' $fic
done
rm -rf $tmpdir
#+end_src