code 2021 04 10
Snippets are defined in exactly the same way as in the other post. Just set a front matter value to make them collapsible, and voilĂ !
#pragma once
void hello_snippets();
#include "world.hpp"
#include <iostream>
void hello_snippets() {
std::cout << "Hello snippets!\n";
}
This is another set of snippets:
#pragma once
void hello_world();
#include "world.hpp"
#include <iostream>
void hello_world() {
std::cout << "Hello world!\n";
}
My Jekyll theme. Feel free to contribute or contact me.