Sill some tweaks
This commit is contained in:
parent
fecd03b370
commit
973f347eef
|
@ -235,8 +235,8 @@ postamble now bp =
|
||||||
, "| tags | " <> T.intercalate " " (map ("#"<>) (postTags bp)) <> " |"
|
, "| tags | " <> T.intercalate " " (map ("#"<>) (postTags bp)) <> " |"
|
||||||
, "| date | " <> postDate 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]]) |"
|
, "| 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>@@ |"
|
, "| size | @@html:<span class=\"web-file-size\">XXK (html XXK, css XXK, img XXK)</span>@@ |"
|
||||||
, "| gz | @@html:<div class=\"gzweb-file-size\">XXK (html XXK, css XXK, img XXK)</div>@@ |"
|
, "| gz | @@html:<span class=\"gzweb-file-size\">XXK (html XXK, css XXK, img XXK)</span>@@ |"
|
||||||
, "| generated | " <> now <> " |"
|
, "| generated | " <> now <> " |"
|
||||||
, ""
|
, ""
|
||||||
, "@@html:</footer>@@"
|
, "@@html:</footer>@@"
|
||||||
|
|
|
@ -73,6 +73,6 @@ for fic in $filelist; do
|
||||||
gzsizeinfos="$gzsizeinfos)"
|
gzsizeinfos="$gzsizeinfos)"
|
||||||
fi
|
fi
|
||||||
print -- $sizeinfos
|
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
|
done
|
||||||
rm -rf $tmpdir
|
rm -rf $tmpdir
|
||||||
|
|
|
@ -3,6 +3,7 @@ html {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: calc(1ex/0.37); }
|
line-height: calc(1ex/0.37); }
|
||||||
html,body { margin: 0; padding: 0; border: 0; }
|
html,body { margin: 0; padding: 0; border: 0; }
|
||||||
|
.main { min-height: calc(100vh - 1em); }
|
||||||
h1,h2,h3,h4,h5,h6 {
|
h1,h2,h3,h4,h5,h6 {
|
||||||
line-height: calc(1ex/0.42);
|
line-height: calc(1ex/0.42);
|
||||||
margin: calc(1ex/0.42) 0; }
|
margin: calc(1ex/0.42) 0; }
|
||||||
|
@ -34,8 +35,7 @@ footer { margin: 3em 0;
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
font-size: 0.875em;
|
font-size: 0.875em;
|
||||||
}
|
}
|
||||||
td { border-bottom: none; padding: .2rem; }
|
table { margin: 1rem 0; line-height: 1em; }
|
||||||
table { margin-top: 1rem; }
|
|
||||||
nav { text-align: center; padding: 1em 0; }
|
nav { text-align: center; padding: 1em 0; }
|
||||||
pre { line-height: 1em; }
|
pre { line-height: 1em; }
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ label ~ pre { margin-top: 0; }
|
||||||
--fg0: var(--b0);
|
--fg0: var(--b0);
|
||||||
--fg: var(--b02);
|
--fg: var(--b02);
|
||||||
--rfg: #000;
|
--rfg: #000;
|
||||||
--hl: var(--g);
|
--hl: var(--o);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* dark preferred */
|
/* dark preferred */
|
||||||
|
@ -118,7 +118,7 @@ input#l:checked ~ div {
|
||||||
--fg0: var(--b0);
|
--fg0: var(--b0);
|
||||||
--fg: var(--b02);
|
--fg: var(--b02);
|
||||||
--rfg: #000;
|
--rfg: #000;
|
||||||
--hl: var(--g);
|
--hl: var(--o);
|
||||||
}
|
}
|
||||||
input#l:checked ~ div img {
|
input#l:checked ~ div img {
|
||||||
filter: none;
|
filter: none;
|
||||||
|
@ -167,7 +167,6 @@ body, body > div {
|
||||||
color: var(--fg);
|
color: var(--fg);
|
||||||
}
|
}
|
||||||
a,a:visited { color: var(--hl); }
|
a,a:visited { color: var(--hl); }
|
||||||
figcaption { color: var(--fg0); }
|
|
||||||
code { background: var(--rbg); }
|
code { background: var(--rbg); }
|
||||||
|
|
||||||
/* ---- SYNTAX HIGHLIGHTING ---- */
|
/* ---- SYNTAX HIGHLIGHTING ---- */
|
||||||
|
|
|
@ -9,37 +9,14 @@
|
||||||
#+MACRO: br @@html:<br/>@@
|
#+MACRO: br @@html:<br/>@@
|
||||||
#+MACRO: pemail @@html: <a href="mailto:yann@esposito.host">Yann Esposito <yann@esposito.host></a>@@
|
#+MACRO: pemail @@html: <a href="mailto:yann@esposito.host">Yann Esposito <yann@esposito.host></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'm a functional programmer, working remotely for Cisco.{{{br}}}
|
||||||
I work in Clojure and use Haskell/Purescript during the weekends.
|
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][blog posts]] ([[https://her.esy.fun/rss.xml][RSS]]),
|
||||||
- [[file:archive.org][I blog]] (you can follow new articles via [[https://her.esy.fun/rss.xml][RSS]]),
|
- [[file:slides.org][talks slides]]
|
||||||
- [[file:slides.org][I sometime make some presentations]]
|
- [[https://gitea.esy.fun/yogsototh][my open source code]] ([[https://github.com/yogsototh][github backup]]),
|
||||||
|
|
||||||
| email | {{{pemail}}} |
|
** About this website
|
||||||
| 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]] |
|
|
||||||
|
|
||||||
That website was created with the following constraints in mind by order of
|
That website was created with the following constraints in mind by order of
|
||||||
priority:
|
priority:
|
||||||
|
@ -52,4 +29,19 @@ priority:
|
||||||
4. *RSS*; you should be able to get informed when I add a new blog post.
|
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
|
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
|
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]] |
|
||||||
|
|
||||||
|
|
|
@ -203,7 +203,7 @@ for fic in $filelist; do
|
||||||
total=$(( htmlsize + imgsize + csssize ))
|
total=$(( htmlsize + imgsize + csssize ))
|
||||||
sizeinfos=$(print -- "Size: $(toh $total) (HTML: $(toh $htmlsize), CSS: $(toh $csssize), IMG: $(toh $imgsize))")
|
sizeinfos=$(print -- "Size: $(toh $total) (HTML: $(toh $htmlsize), CSS: $(toh $csssize), IMG: $(toh $imgsize))")
|
||||||
print -- $sizeinfos
|
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
|
done
|
||||||
rm -rf $tmpdir
|
rm -rf $tmpdir
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
Loading…
Reference in a new issue