diff --git a/content/case.md b/content/case.md index b1f748d..5c9aa99 100644 --- a/content/case.md +++ b/content/case.md @@ -1,3 +1,6 @@ +--- +title: Case Statements +--- # Case Statements Nimrod also supports case statements, which are like switches in other languages. There are several things to note here: diff --git a/content/enums.md b/content/enums.md index 1cf9f00..099c216 100644 --- a/content/enums.md +++ b/content/enums.md @@ -1 +1,4 @@ +--- +title: Enums +--- # Enums \ No newline at end of file diff --git a/content/exceptions.md b/content/exceptions.md index 9617c0d..a5a9504 100644 --- a/content/exceptions.md +++ b/content/exceptions.md @@ -1 +1,4 @@ +--- +title: Exceptions +--- # Exceptions \ No newline at end of file diff --git a/content/for_iterators.md b/content/for_iterators.md index 17371c0..e00bc16 100644 --- a/content/for_iterators.md +++ b/content/for_iterators.md @@ -1,3 +1,6 @@ +--- +title: If, Else, While, Block +--- # For Loops & Iterators Nimrod has first class iterators and syntax to use them, for loops. The `continue` and `break` keywords also work inside of for loops. There are two kinds of iterator, and two special methods that for loops work with. diff --git a/content/getting_started.md b/content/getting_started.md index b7dee72..6f941c4 100644 --- a/content/getting_started.md +++ b/content/getting_started.md @@ -1,3 +1,6 @@ +--- +title: Getting Started +--- # Getting Started When installing Nimrod, you have two options: downloading a copy directly from git, or downloading a prepackaged distribution from the website diff --git a/content/hello_world.md b/content/hello_world.md index 2bc029f..4d31bb4 100644 --- a/content/hello_world.md +++ b/content/hello_world.md @@ -1,3 +1,6 @@ +--- +title: Hello World +--- # Hello World The code for a simple hello world program is as follows: diff --git a/content/if_else_while.md b/content/if_else_while.md index a5568bc..9b7600d 100644 --- a/content/if_else_while.md +++ b/content/if_else_while.md @@ -1,3 +1,7 @@ +--- +title: If, Else, While, Block +--- + # If, Else, While, Block Nimrod many different control flow constructs, including the standard `if`s, `else`s, and `while`s. diff --git a/content/index.md b/content/index.md index f6ecfd9..4883973 100644 --- a/content/index.md +++ b/content/index.md @@ -1,3 +1,9 @@ +--- +title: Main +--- + +# Nimrod by Example + Nimrod is a powerful statically typed language that allows the programmer expressiveness without compromising run-time performance. ``` nimrod diff --git a/content/numbers.md b/content/numbers.md index bd36131..3a8f61a 100644 --- a/content/numbers.md +++ b/content/numbers.md @@ -1,3 +1,6 @@ +--- +title: Numbers +--- # Numbers Nimrod has several primitive types: diff --git a/content/objects.md b/content/objects.md index 4d93e83..5364b29 100644 --- a/content/objects.md +++ b/content/objects.md @@ -1,3 +1,6 @@ +--- +title: Objects +--- # Objects In Nimrod, objects are like structs from C family languages and define a grouping of fields. diff --git a/content/oop_macro.md b/content/oop_macro.md index bc7b311..51f3c15 100644 --- a/content/oop_macro.md +++ b/content/oop_macro.md @@ -1,5 +1,7 @@ +--- +title: OOP Macro +--- - # OOP Macro This is the code that we currently must write to use OOP in nimrod: ```nimrod diff --git a/content/toc.md b/content/toc.md index ccd6564..f7a7428 100644 --- a/content/toc.md +++ b/content/toc.md @@ -1,4 +1,4 @@ -## Summary +## Pages * [Getting Started](/getting_started/) * [Hello World](/hello_world/) diff --git a/content/varargs.md b/content/varargs.md index 00a7107..1feee39 100644 --- a/content/varargs.md +++ b/content/varargs.md @@ -1,3 +1,6 @@ +--- +title: Varargs +--- # Varargs Standard varargs simply allows you to pass multiple parameters to your function. diff --git a/content/variables/page.md b/content/variables/page.md index 9b30422..634ba36 100644 --- a/content/variables/page.md +++ b/content/variables/page.md @@ -1,3 +1,6 @@ +--- +title: Variables +--- # Variables Nimrod supports three different types of variables, `let`, `var`, and `const`. As with most things, multiple variables can be declared in the same section. diff --git a/content/variables/result.md b/content/variables/result.md index 82b950d..427cff3 100644 --- a/content/variables/result.md +++ b/content/variables/result.md @@ -1,3 +1,6 @@ +--- +title: Result +--- # Result The `result` variable is a special variable that serves as an implicit return variable. This is useful because in most cases, the control flow semantics of the `return` statement are unneeded. `result` is initialized with the default value for a given return type, so the following code starts as `0`, before being initialized to `number`: diff --git a/layouts/default.html b/layouts/default.html index e9ea412..1b89b5b 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -2,11 +2,10 @@ - A Brand New nanoc Site - <%= @item[:title] %> + Nimrod by Example - <%= @item[:title] %> -