To get started with SC^2 download its source from git. Once that is done you need to run the configure script. Apart from the regular dependencies of Autotools sed, the C preprocessor (CPP) and GNU Make are required. Sed is available pretty much everywhere. CPP is also usually installed as a part of GCC or Clang. It is recommended to use GCC as SC^2 is tested mostly with GCC. While the use of GCC extension macros is avoided, small implemenation details may cause breakage.
Once you have the repo downloaded run: ./configure in the root of the project configuration options for autotools are listed in the following: AC Config Options
Css files are stored under './assets/', the blog index links 'blog_index_style.css' by default each blog post links 'blog_post_style.css', this can be turned on during AC configuration generation.
Notably, blog posts are indexed during AC configuration, so after any changes there you must rerun it. Blog posts are stored under './assets/blogs/' as header files. It is recomened to start those files with header guards. Posts provide their title, file/link name and date of posting using macro defines. Then check the definition of INDEX_ONLY to decide if they should provide the HTML body. You can read more in the following section:
These should be set using command line flags passed to the configure script from autotools.
--with-author--with-asset-dir--enable-blog-index-style--enable-blog-post-styleposts must define the following macros:
After those macros the body of the post should be defined. You can use blog_post_layout macro from 'lib/blog/blog_layout.h'. The actual body should only be given if 'INDEX_ONLY' has not been defined. To do that use a #ifndef /*...*/ #endif guard. That macro is defined during the assembling of blog index (table of contents). This gaurding makes sure that the index can see titles, dates and slugs but not the HTML.