aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_posts/snippets
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-31 16:10:50 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-31 16:10:50 +0300
commite726014585409acacef2e79a8d83a55a9e47ecb6 (patch)
treeb0d2e8fc7129edcbfeb45f72f71f695a5b369bd8 /_posts/snippets
parentposts: permalinks without date (diff)
downloadjekyll-theme-e726014585409acacef2e79a8d83a55a9e47ecb6.tar.gz
jekyll-theme-e726014585409acacef2e79a8d83a55a9e47ecb6.zip
add more examples, update README
Diffstat (limited to '_posts/snippets')
-rw-r--r--_posts/snippets/hello.cpp (renamed from _posts/snippets/snippet.cpp)2
-rw-r--r--_posts/snippets/hello.hpp (renamed from _posts/snippets/snippet.hpp)0
-rw-r--r--_posts/snippets/world.cpp7
-rw-r--r--_posts/snippets/world.hpp3
4 files changed, 11 insertions, 1 deletions
diff --git a/_posts/snippets/snippet.cpp b/_posts/snippets/hello.cpp
index bc4122e..2f96a60 100644
--- a/_posts/snippets/snippet.cpp
+++ b/_posts/snippets/hello.cpp
@@ -1,4 +1,4 @@
-#include "snippet.hpp"
+#include "world.hpp"
#include <iostream>
diff --git a/_posts/snippets/snippet.hpp b/_posts/snippets/hello.hpp
index 46556b6..46556b6 100644
--- a/_posts/snippets/snippet.hpp
+++ b/_posts/snippets/hello.hpp
diff --git a/_posts/snippets/world.cpp b/_posts/snippets/world.cpp
new file mode 100644
index 0000000..54d3807
--- /dev/null
+++ b/_posts/snippets/world.cpp
@@ -0,0 +1,7 @@
+#include "world.hpp"
+
+#include <iostream>
+
+void hello_world() {
+ std::cout << "Hello world!\n";
+}
diff --git a/_posts/snippets/world.hpp b/_posts/snippets/world.hpp
new file mode 100644
index 0000000..32258b1
--- /dev/null
+++ b/_posts/snippets/world.hpp
@@ -0,0 +1,3 @@
+#pragma once
+
+void hello_world();