M bin/site.ml => bin/site.ml +11 -12
@@ 39,9 39,9 @@ let pygmentize ~alt code =
Out_channel.flush stdin;
Out_channel.close stdin;
let content =
- {|<div class="code-container"><div class="source-code"><code>|}
+ {|<div class="code-container"><div class="source-code">|}
^ In_channel.input_all stdout
- ^ {|</code></div></div>|}
+ ^ {|</div></div>|}
in
In_channel.close stdout;
content
@@ 120,16 120,15 @@ let homepage =
"templates/layout.html"
>>^ Stdlib.snd)
- let rss_feed =
- let open Build in
- collection
- (read_child_files "articles/" (with_extension "md"))
- (fun source ->
- track_binary_update
- >>> Yocaml_yaml.read_metadata (module Metadata.Article) source
- >>^ Metadata.Article.to_rss_item
- (into domain $ article_destination source))
- rss_channel
+let rss_feed =
+ let open Build in
+ collection
+ (read_child_files "articles/" (with_extension "md"))
+ (fun source ->
+ track_binary_update
+ >>> Yocaml_yaml.read_metadata (module Metadata.Article) source
+ >>^ Metadata.Article.to_rss_item (into domain $ article_destination source))
+ rss_channel
let feed =
let open Build in
M pages/index.md => pages/index.md +1 -1
@@ 1,6 1,6 @@
I'm Tim, a French student and computer sciences enthusiast. I am primarily interested in programming languages with functional aspects such as OCaml and politics.
-Here is my personnal homepage where I keep my old articles (written in French) as an archive. I am now active on the [geminispace](https://gemini.circumlunar.space/), see [gemini://heyplzlookat.me](gemini://heyplzlookat.me). If you don't want to install a gemini client, here is an [http miror](https://heyplzlookat.me/).
+Here is my personnal homepage where I keep my old articles (written in French) as an archive. I am now active on the [geminispace](https://gemini.circumlunar.space/), see [gemini://heyplzlookat.me/](gemini://heyplzlookat.me/). If you don't want to install a gemini client, here is an [http miror](https://heyplzlookat.me/).
You can check my [Github](https://github.com/Tim-ats-d) and my [sourcehut](https://sr.ht/~tim-ats-d/) where I publish various projects.
M styles/default.sass => styles/default.sass +4 -8
@@ 141,7 141,7 @@ main
.code-file
font-size: 90%
- section
+ .section
padding: 1em 1em 1em
h3
@@ 150,7 150,7 @@ main
font-weight: initial
padding-bottom: 0.5rem
- ul
+ ol
list-style: none
margin-left: 0
padding: 0
@@ 183,14 183,10 @@ main
padding-bottom: 1rem
line-height: 1.8
- p code, li code
- background-color: $base
- border-radius: 4px
- padding: 0.15%
- font-family: JetBrainsMono
-
footer
display: flex
+ justify-content: space-between
+
position: relative
padding: 1% $border 3% $border
M templates/homepage.html => templates/homepage.html +5 -3
@@ 1,5 1,7 @@
<h2 class="section-title">Bienvenue !</h2>
-<section class="home">
- {{{body}}}
-</section>
+<div class="section">
+ <div class="home">
+ {{{body}}}
+ </div>
+</div>
M templates/layout.html => templates/layout.html +4 -3
@@ 3,11 3,12 @@
<html lang="fr">
<head>
- <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta charset="utf-8">
<title>Bienvenue ! - Tim-ats- blog</title>
<link rel="stylesheet" href="styles/default.css" type="text/css">
<link rel="stylesheet" href="styles/fonts.css" type="text/css">
<link rel="stylesheet" href="styles/syntaxic_color.css" type="text/css">
+ <link rel="alternate" href="/feed.xml" type="application/rss+xml">
</head>
<body>
@@ 26,7 27,7 @@
<footer>
<div class="profil-links">
<a href="https://github.com/Tim-ats-d">
- <img class="icon" src="img/github-icon.png">
+ <img class="icon" src="img/github-icon.png" alt="GitHub logo">
</a>
<a href="https://git.sr.ht/~tim-ats-d/">
<svg class="icon" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
@@ 36,7 37,7 @@
</svg>
</a>
<a href="https://genius.com/Le_condor_du_plateau">
- <img class="icon" src="img/genius-icon.png">
+ <img class="icon" src="img/genius-icon.png" alt="Genius logo">
</a>
<a href="mailto:tim.arnouts@protonmail.com">
<img class="icon" src="img/mail-icon.png" alt="tim.arnouts@protonmail.com">
M templates/list.html => templates/list.html +10 -13
@@ 1,22 1,19 @@
{{{body}}}
-<section>
- <ul class="post-style">
+<div class="section">
+ <ol class="post-style">
{{#articles}}
<li>
<a href="{{url}}">
- <li>
- <div class="publishing">
- {{#date}}{{canonical}}{{/date}}
- </div>
- <h3>
- {{article_title}}
- </h3>
- </li>
- </a>
+ <div class="publishing">
+ {{#date}}{{canonical}}{{/date}}
+ </div>
+
+ <h3>{{article_title}}</h3>
+ </a>
</li>
{{/articles}}
- </ul>
-</section>
+ </ol>
+</div><
\ No newline at end of file