From d35ec11ff13c605c93483c2296ca6811a7387191 Mon Sep 17 00:00:00 2001 From: John Janus Date: Sun, 6 Feb 2022 14:30:58 +0100 Subject: [PATCH] started to add real content --- content/blog/first.md | 82 ----------------------------------- content/blog/second.md | 7 --- content/blog/welcom_to_new.md | 11 +++++ 3 files changed, 11 insertions(+), 89 deletions(-) delete mode 100644 content/blog/first.md delete mode 100644 content/blog/second.md create mode 100644 content/blog/welcom_to_new.md diff --git a/content/blog/first.md b/content/blog/first.md deleted file mode 100644 index 44076ec..0000000 --- a/content/blog/first.md +++ /dev/null @@ -1,82 +0,0 @@ -+++ -title = "Hello World Title" -date = 2021-10-24 -+++ -# My first entry!! - -Testing code highlighting: - - -```rust,linenos -use std::rc::Rc; - -pub struct LinkedList -where - T: Copy, -{ - head: Option>>, - tail: Option>>, -} - -struct Node -where - T: Copy, -{ - data: T, - prev: Option>>, - next: Option>>, -} - -impl Node -where - T: Copy, -{ - fn new(data: T) -> Self { - Node { - data: data, - prev: None, - next: None, - } - } -} - - -impl LinkedList -where - T: Copy, -{ - pub fn new() -> Self { - LinkedList { - head: None, - tail: None, - } - } - - pub fn push_back(&mut self, data: T) { - let mut node = Node::new(data); - if self.head.is_none() { - let noderef = Rc::new(node); - self.head = Some(noderef.clone()); - self.tail = Some(noderef.clone()); - return; - } - node.prev = Some(self.tail.as_ref().unwrap().clone()); - self.tail = Some(Rc::new(node)); - } - - pub fn pop(&mut self) -> Option { - if self.tail.is_none() { - return None; - } - let value = self.tail.as_ref().unwrap().clone(); - if value.prev.is_some() { - let mut prev = value.prev.as_ref().unwrap(); - prev.deref().next = None; - self.tail = Some(prev.clone()); - } else { - self.tail = None; - } - Some(value.data) - } -} -``` diff --git a/content/blog/second.md b/content/blog/second.md deleted file mode 100644 index 11e50bf..0000000 --- a/content/blog/second.md +++ /dev/null @@ -1,7 +0,0 @@ -+++ -title = "Second" -date = 2022-01-31 -+++ - -Dies ist der zweite Artikel, um zu testen, ob das einigermaßen gut aussieht... - diff --git a/content/blog/welcom_to_new.md b/content/blog/welcom_to_new.md new file mode 100644 index 0000000..a6adc21 --- /dev/null +++ b/content/blog/welcom_to_new.md @@ -0,0 +1,11 @@ ++++ +title = "Willkommen beim neuen Versuch" +date = 2022-02-06 +[taxonomies] +Tags = ["Meta"] ++++ +Ich versuche mal einen Neustart ohne dynamischen Inhalt mit statischen Seiten, generiert mit [Zola](https://getzola.org). + +Vielleicht baue ich noch eine Kommentarfunktion, aber das ist weit unten auf der Prioritätsliste. + +Zunächst werde ich wohl ein bischen über meine Versuche mit Rust und C++/Qt schreiben... -- 2.47.0