From e73f6e93169115aee2602b2223d7cdf925ea3fb7 Mon Sep 17 00:00:00 2001 From: Henk Kalkwater Date: Thu, 25 Jun 2020 00:23:02 +0200 Subject: [PATCH] Ignore folders with content --- .gitignore | 3 +++ articles/hello-world.yamd | 42 -------------------------------- articles/hi.yamd | 3 --- articles/second.yamd | 16 ------------ pages/contact.yamd | 5 ---- pages/foo/bar | 1 - pages/index.yamd | 12 --------- pages/test.yamd | 4 --- projects/harbour-audio-output.md | 14 ----------- projects/thiswebsite.yamd | 12 --------- source/project.d | 3 +++ 11 files changed, 6 insertions(+), 109 deletions(-) delete mode 100644 articles/hello-world.yamd delete mode 100644 articles/hi.yamd delete mode 100644 articles/second.yamd delete mode 100644 pages/contact.yamd delete mode 100644 pages/foo/bar delete mode 100644 pages/index.yamd delete mode 100644 pages/test.yamd delete mode 100644 projects/harbour-audio-output.md delete mode 100644 projects/thiswebsite.yamd diff --git a/.gitignore b/.gitignore index b00a98c..53eae4f 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ mijnblog-test-* *.o *.obj *.lst +articles/ +pages/ +projects/ diff --git a/articles/hello-world.yamd b/articles/hello-world.yamd deleted file mode 100644 index 0c33e8e..0000000 --- a/articles/hello-world.yamd +++ /dev/null @@ -1,42 +0,0 @@ -title: Hello World -slug: hello-world -firstPublished: 2019-06-30 14:31:45 -updated: 2020-06-23 23:05:00 -author: Chris -tags: -- test -- test2 -- test3 ---- -Hello, world! This is the first article ever written on this site! It -mainly consists of tests to check out the features of this website. - -# Second paragraph - -[test](https://example.com) - -> Lololo -> - -` -code.execute(); -` - -Quibusdam laborum reprehenderit voluptate labore perferendis consequatur odit laboriosam. Perspiciatis saepe consequuntur voluptas. Deserunt et totam asperiores natus nulla illum. - -Laborum quibusdam commodi corporis debitis velit eum autem. Quo labore numquam ipsa quo corrupti maxime ratione cupiditate. Ab impedit et et quo et sed. - -Eaque officiis ut minus. Repellat commodi illum qui voluptas quos. Ut labore quod adipisci enim. Dolor pariatur ut earum id quia eum non. Consequatur assumenda nihil neque nihil cupiditate corrupti eaque sint. - -Est at a quo atque vel est itaque quis. Illo enim omnis maiores quia dolorum cumque aspernatur. Rem debitis delectus eius et possimus nihil sed veniam. - -Saepe non quidem id ab dicta aliquid. Ut consequatur sint non. Enim veritatis dolor asperiores consequatur itaque aliquid dolorem. Perspiciatis rem quidem voluptas qui esse recusandae. - -```{.html .numberSource .literate} - - - - This is supposed to be such a large title that the page has to scroll - - -``` diff --git a/articles/hi.yamd b/articles/hi.yamd deleted file mode 100644 index 83a65b6..0000000 --- a/articles/hi.yamd +++ /dev/null @@ -1,3 +0,0 @@ -title: "chris" ---- -Yet another article. How boring. diff --git a/articles/second.yamd b/articles/second.yamd deleted file mode 100644 index cac3b99..0000000 --- a/articles/second.yamd +++ /dev/null @@ -1,16 +0,0 @@ -title: Second! -author: Chris Josten -slug: second ---- -Hi there, lovely people! - -# Test -![Foo bar](/static/img/logo.png) - -Hiep hiep hiep hiep hiep hahaaha warararararwararara flop adder flappppppp -Smerige lap met smeer. Doe daar je handen niet aan af. De maan is een grote -bal die zowat in de hemel hangt en daar dingen doet. Spinazie is een groente. -De maan is in tegenstelling tot spinazie geen groente. - -Sjeetje, Vuurvos. Hoeveel letters moet ik nog tikken totdat je de leesmodus inschakeld? -Heel veel, heb ik zowat het idee. Wat verschrikkelijk. diff --git a/pages/contact.yamd b/pages/contact.yamd deleted file mode 100644 index 7d79043..0000000 --- a/pages/contact.yamd +++ /dev/null @@ -1,5 +0,0 @@ -title: Contact -slug: contact ---- -If you want to contact me, you are able to reach me at . -Hopefully that obfuscated address will diff --git a/pages/foo/bar b/pages/foo/bar deleted file mode 100644 index b14df64..0000000 --- a/pages/foo/bar +++ /dev/null @@ -1 +0,0 @@ -Hi diff --git a/pages/index.yamd b/pages/index.yamd deleted file mode 100644 index 106a6da..0000000 --- a/pages/index.yamd +++ /dev/null @@ -1,12 +0,0 @@ -title: Home -slug: index ---- -I am Chris Josten — you might have guessed it from the url — and I am shaping the future of this -world by handcrafting influential software that will be etched into the very fibers of history! -Well, actually, I sometimes -use my computer and type some letters and code with it that will be forgotten within a month. - -I have not made any substantial (yet), but [I have written some hobby projects](/projects/). - -I also would like to take this opportunity to mention that the number one is not a prime number and -it never will be one. diff --git a/pages/test.yamd b/pages/test.yamd deleted file mode 100644 index 47c19f3..0000000 --- a/pages/test.yamd +++ /dev/null @@ -1,4 +0,0 @@ -title: Test page -slug: test ---- -This is a test page. diff --git a/projects/harbour-audio-output.md b/projects/harbour-audio-output.md deleted file mode 100644 index 8c1cdc9..0000000 --- a/projects/harbour-audio-output.md +++ /dev/null @@ -1,14 +0,0 @@ -title: Audio output chooser -slug: harbour-audio-output -images: - - harbour-audio-output-1.jpg -platforms: - - Sailfish OS -technologies: - - QML - - pulseaudio -icon: harbour-audio-output.png -description: A simple application to choose the audio output of the system. ---- -A simple application to choose the audio output of the system. - diff --git a/projects/thiswebsite.yamd b/projects/thiswebsite.yamd deleted file mode 100644 index 0dbcf52..0000000 --- a/projects/thiswebsite.yamd +++ /dev/null @@ -1,12 +0,0 @@ -title: This website -slug: this-website -icon: this-website.png -platforms: - - www -technologies: - - D - - diet - - vibe.d -description: My presence on the interwebs! ---- -I made a website! And you're looking at it right now! diff --git a/source/project.d b/source/project.d index b22dd66..a3e519e 100644 --- a/source/project.d +++ b/source/project.d @@ -20,6 +20,7 @@ class Project : Page { protected string m_icon; protected string[] m_images; protected string m_description; + protected string m_sourceCode; /** * Creates a project from a file @@ -38,6 +39,7 @@ class Project : Page { this.m_images = headerNode.getArray!string("images", []) .map!(x => PROJECT_IMAGE_DIR ~ x).array; this.m_description = headerNode.getOr!string("description", ""); + this.m_sourceCode = headerNode.getOr!string("sourceCode", null); } @property string state() { return m_state; } @@ -46,5 +48,6 @@ class Project : Page { @property string icon() { return m_icon; } @property string[] images() { return m_images; } @property string description() { return m_description; } + @property string sourceCode() { return m_sourceCode; } }