diff --git a/README.md b/README.md index e69de29..43e2562 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +A site dedicated to dispelling the myth that RAID is the same as backups. Written in Hugo. diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..ee670ab --- /dev/null +++ b/config.toml @@ -0,0 +1,19 @@ +baseurl = "https://www.raidisnotabackup.com" +languageCode = "en-us" +title = "RAID is NOT a backup!" +author = "Boniface Labs" +theme = "scroll" + +contentdir = "content" +publishdir = "public" +builddrafts = false +canonifyurls = true +copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 License." + +[indexes] + category = "categories" + tag = "tags" +[Params] + AuthorName = "Joshua" + email = "root@bonilan.net" + description = "So you've built a server. It has multiple disks in a RAID confguration. Do you need a backup? YES!" diff --git a/content/CONTACT.md b/content/CONTACT.md new file mode 100644 index 0000000..edcf3c0 --- /dev/null +++ b/content/CONTACT.md @@ -0,0 +1,9 @@ ++++ +title = "About us" +description = "raidisnotabackup.com is a PSA created by Joshua Boniface of Boniface Labs" +weight = 1 +type = "post" +class="post last" ++++ + +If you have any questions, concerns, or comments about this page, please contact me. If you want to ask dumb questions about RAID or argue with me, don't. Thanks. diff --git a/content/RAID.md b/content/RAID.md new file mode 100644 index 0000000..17c762f --- /dev/null +++ b/content/RAID.md @@ -0,0 +1,15 @@ ++++ +title = "What is RAID?" +description = "RAID stands for 'Redundant Array of [Independent/Inexpensive] Disks'" +weight = 1 +type = "post" +class="post first" ++++ + +It is a common technique to provide _resiliency_ and _availability_ to a set of data and protect against one of the most common data loss scenarios: the failure of a disk. + +The simplest type of RAID is a 'mirror', which does just what it sounds like: keeps two (or more) copies of data on two (or more) different disks. If one disk fails, the second copy is still available and no data loss has occurred. + +There also exist more advanced modes, the most common of which is called RAID-5, and consists of 3 or more disks with data stripped (written sequentially) across the disks. + +The [Wikipedia](http://en.wikipedia.org/wiki/) page for RAID provides some helpful information about the history and bennefits of the various RAID implementations. diff --git a/themes/scroll/README.md b/themes/scroll/README.md new file mode 100644 index 0000000..0626a9f --- /dev/null +++ b/themes/scroll/README.md @@ -0,0 +1,104 @@ +Hugo Scroll += +A live example of this theme is running at this site [hugoscroll.fredrikloch.me](http://hugoscroll.fredrikloch.me) +Using scroll +- +To get started with hugo you first need to download the [binaries](http://gohugo.io), whith these in place it is easy to get started. + + # Init site + hugo new site My_New_Cool_Venture + cd My_New_Cool_Venture + + # Get this cool theme + git clone https://github.com/SenjinDarashiva/hugoscroll themes/hugoscroll + + # Start the watching your folder + hugo --buildDrafts --theme="hugoscroll" --watch server + +With this done you can start creating posts, for this theme theme there is some specific information that needs to be added to your +post header. For the first and the last post you need to add a class definition, the headers for this page look like this: + + +++ + title = "What is this" + description = "First post" + weight = 1 + type = "post" + class="post first" + +++ + + +++ + title = "Finaly!" + description = "Last Post" + weight = 100 + type = "post" + class="post last" + +++ + +Every standard post must contain a weight between the weight of the first and the last to ensure correct ordering, in this case this +allows us to use any number between 2 -- 99 + +Site config +- +Apart from the regular config you can specify the following parameters to get extra features in the theme + + [Params] + github = "Senjindarashiva" + bitbucket = "floch" + flickr = "senjin" + twitter = "senjindarshiva" + email = "fredrik.loch@outlook.com" + description = "" + linkedin = "fredrikloch" + cover = "/images/background-cover.jpg" + logo = "/img/logo-1.jpg" + +Developing hugoscroll += +In order to develop or make changes to the theme you will need to have the sass compiler and bourbon both installed. + +To check installation run the following commands from a terminal and you should see the `> cli output` but your version numbers may vary. + +#### SASS +```bash +sass -v +> Sass 3.3.4 (Maptastic Maple) +``` +If for some reason SASS isn't installed follow the instructions from the [Sass install page](http://sass-lang.com/install) + +#### Bourbon +```bash +bourbon help +> Bourbon 3.1.8 +``` +If Bourbon isn't installed follow the installation instructions on the [Bourbon website](http://bourbon.io) + +Once installation is verified we will need to go mount the bourbon mixins into the `scss` folder. + +From the project root run `bourbon install` with the correct path +```bash +bourbon install --path static/scss +> bourbon files installed to static/scss/bourbon/ +``` + +Now that we have the bourbon mixins inside of the `scss` src folder we can now use the sass cli command to watch the scss files for changes and recompile them. + +```bash +sass --watch static/scss:static/css +>>>> Sass is watching for changes. Press Ctrl-C to stop. +``` + +To minify the css files use the following command in the statics folder + +```bash +curl -X POST -s --data-urlencode 'input@css/base.css' http://cssminifier.com/raw > css/base.min.css +``` + +Font-awesome icons +- +For more information on available icons: [font-awesome](http://fortawesome.github.io/Font-Awesome/) +The files supplied with this theme have a minor alteration to work around an issue with adblocks and social icons. +The changes means that the following classes is used: + +* fa-tt -- twitter +* fa-fb -- facebook +* fa-ll -- linkedin diff --git a/themes/scroll/archetypes/default.md b/themes/scroll/archetypes/default.md new file mode 100644 index 0000000..e17cafb --- /dev/null +++ b/themes/scroll/archetypes/default.md @@ -0,0 +1,7 @@ ++++ +tags = [] +weight = 1 +type = "post" +class="post first" ++++ + diff --git a/themes/scroll/images/screenshot.png b/themes/scroll/images/screenshot.png new file mode 100644 index 0000000..25432b9 Binary files /dev/null and b/themes/scroll/images/screenshot.png differ diff --git a/themes/scroll/images/tn.png b/themes/scroll/images/tn.png new file mode 100644 index 0000000..e2e6162 Binary files /dev/null and b/themes/scroll/images/tn.png differ diff --git a/themes/scroll/layouts/_default/list.html b/themes/scroll/layouts/_default/list.html new file mode 100644 index 0000000..8708170 --- /dev/null +++ b/themes/scroll/layouts/_default/list.html @@ -0,0 +1,20 @@ +{{ partial "header.html" . }} +
+