macroblog.rs @ 96c2cbe1850f95806cccb6f47a7739eb9c2ac860

fix: Fix blog post timestamps

For some the timestamp got messed up. Now they should be restored
properly as well the `locustfile.py` pointing to the right endpoints.
diff --git a/2020-08-22Moving_from_Github_to_Gitlab_pages.md b/2020-08-22Moving_from_Github_to_Gitlab_pages.md
deleted file mode 100644
index 5bfa7889f5f4d42c8c3e6f77c4a5a157446235ec..0000000000000000000000000000000000000000
--- a/2020-08-22Moving_from_Github_to_Gitlab_pages.md
+++ /dev/null
@@ -1,31 +0,0 @@
-This was quite simple, I had just to create a simple Gitlab pipeline job
-and publish to pages this is done by:
-
-    image: clojure:lein-2.7.0
-
-    before_script:
-      - lein deps
-
-    test:
-      script:
-        - lein test
-
-    pages:
-      stage: deploy
-      script:
-        - lein package
-      artifacts:
-        paths:
-          - public
-      only:
-        - master
-
-before~script~
-:   will download all the dependencies with `lein deps`.
-
-test
-:   is self explanatory.
-
-pages
-:   will compile the cljs into js with `lein package` and publish it
-    into pages.
diff --git a/content/posts/2019-04-22Automating_desktop_setup_with_ansible-pull_part-1.md b/content/posts/2019-03-07Automating_desktop_setup_with_ansible-pull_part-1.md
rename from content/posts/2019-04-22Automating_desktop_setup_with_ansible-pull_part-1.md
rename to content/posts/2019-03-07Automating_desktop_setup_with_ansible-pull_part-1.md
diff --git a/content/posts/2020-07-13Road_to_local_K8S.md b/content/posts/2020-07-12Road_to_local_K3S.md
rename from content/posts/2020-07-13Road_to_local_K8S.md
rename to content/posts/2020-07-12Road_to_local_K3S.md
diff --git a/content/posts/2020-12-28K8S_private_gitlab_registry_using_podman.md b/content/posts/2021-12-28K8S_private_gitlab_registry_using_podman.md
rename from content/posts/2020-12-28K8S_private_gitlab_registry_using_podman.md
rename to content/posts/2021-12-28K8S_private_gitlab_registry_using_podman.md
diff --git a/contrib/locust/locustfile.py b/contrib/locust/locustfile.py
index fd22508250b19f058764dfaa3804f95ad8e49b67..ca4e4d98da89e50a90d8c466d87be3fc21af88be 100644
--- a/contrib/locust/locustfile.py
+++ b/contrib/locust/locustfile.py
@@ -11,8 +11,7 @@         self.client.get("/posts/2021-12-28K8S_private_gitlab_registry_using_podman.md")
         self.client.get("/posts/2021-12-26Enable_NFS_on_K3S.md")
         self.client.get("/posts/2020-08-22Moving_from_Github_to_Gilab_pages.md")
         self.client.get("/posts/2020-07-14Friz_box_turned_off_DHCP.md")
-        self.client.get("/posts/2020-07-12Road_to_local_K8S.md")
+        self.client.get("/posts/2020-07-12Road_to_local_K3S.md")
         self.client.get("/posts/2019-11-16Compiling_emacs_from_source_code_on_fedora.md")
         self.client.get("/posts/2019-04-22Automating_desktop_setup_with_ansible-pull_part-2.md")
         self.client.get("/posts/2019-03-07Automating_desktop_setup_with_ansible-pull_part-1.md")
-        self.client.get("/posts/2019-04-22Ansible_part_2.md")
diff --git a/src/blog.rs b/src/blog.rs
index eaa314abab08acb9c96c1cf4b2e274c4da566819..a1586f8fa4eea24c83f086c589af9c8fd34f9c64 100644
--- a/src/blog.rs
+++ b/src/blog.rs
@@ -18,7 +18,9 @@
 fn get_file_content(path: &str) -> String {
     let buffer = PostAsset::get(path).unwrap().data.into_owned();
     let md = String::from_utf8(buffer).unwrap();
-    let parser = Parser::new_ext(&md, Options::empty());
+    let mut options = Options::empty();
+    options.insert(Options::ENABLE_FOOTNOTES);
+    let parser = Parser::new_ext(&md, options);
     let mut html_output = &mut String::new();
     html::push_html(&mut html_output, parser);
     return html_output.to_string();
diff --git a/src/router.rs b/src/router.rs
index c196ab8419c1cf6fa71737e2083a8672ceb2251b..3227d66d789853ff4751bcd266e37aec3e78c99e 100644
--- a/src/router.rs
+++ b/src/router.rs
@@ -1,5 +1,3 @@
-use std::borrow::Borrow;
-
 use crate::assets::PostAsset;
 use regex::Regex;