aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2022-06-11 00:18:54 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2022-06-11 00:18:54 +0200
commit96c2cbe1850f95806cccb6f47a7739eb9c2ac860 (patch)
treee3813fc2d7e9c408a66a8e92cfe912a9c1569c23
parent4fb323f69c11557a51c7da0b2031029f63edf789 (diff)
downloadmacroblog.rs-96c2cbe1850f95806cccb6f47a7739eb9c2ac860.tar.gz
macroblog.rs-96c2cbe1850f95806cccb6f47a7739eb9c2ac860.tar.bz2
macroblog.rs-96c2cbe1850f95806cccb6f47a7739eb9c2ac860.zip
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.
-rw-r--r--2020-08-22Moving_from_Github_to_Gitlab_pages.md31
-rw-r--r--content/posts/2019-03-07Automating_desktop_setup_with_ansible-pull_part-1.md (renamed from content/posts/2019-04-22Automating_desktop_setup_with_ansible-pull_part-1.md)0
-rw-r--r--content/posts/2020-07-12Road_to_local_K3S.md (renamed from content/posts/2020-07-13Road_to_local_K8S.md)0
-rw-r--r--content/posts/2021-12-28K8S_private_gitlab_registry_using_podman.md (renamed from content/posts/2020-12-28K8S_private_gitlab_registry_using_podman.md)0
-rw-r--r--contrib/locust/locustfile.py3
-rw-r--r--src/blog.rs4
-rw-r--r--src/router.rs2
7 files changed, 4 insertions, 36 deletions
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 5bfa788..0000000
--- 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
index 58ecb0d..58ecb0d 100644
--- 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
diff --git a/content/posts/2020-07-13Road_to_local_K8S.md b/content/posts/2020-07-12Road_to_local_K3S.md
index a3ca530..a3ca530 100644
--- a/content/posts/2020-07-13Road_to_local_K8S.md
+++ b/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
index c72e9ac..c72e9ac 100644
--- a/content/posts/2020-12-28K8S_private_gitlab_registry_using_podman.md
+++ b/content/posts/2021-12-28K8S_private_gitlab_registry_using_podman.md
diff --git a/contrib/locust/locustfile.py b/contrib/locust/locustfile.py
index fd22508..ca4e4d9 100644
--- a/contrib/locust/locustfile.py
+++ b/contrib/locust/locustfile.py
@@ -11,8 +11,7 @@ class HelloWorldUser(HttpUser):
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 eaa314a..a1586f8 100644
--- a/src/blog.rs
+++ b/src/blog.rs
@@ -18,7 +18,9 @@ pub fn read_assets() -> Vec<BlogEntry> {
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 c196ab8..3227d66 100644
--- a/src/router.rs
+++ b/src/router.rs
@@ -1,5 +1,3 @@
-use std::borrow::Borrow;
-
use crate::assets::PostAsset;
use regex::Regex;