diff --git a/README.md b/README.md index f4fbda9..c169013 100644 --- a/README.md +++ b/README.md @@ -25,13 +25,13 @@ Every new website starts by cloning this project in your website's directory on your local computer. So create a directory where your website will reside, say `my-website/`, `cd` into it and clone this repository there using: -``` -git clone https://github.com/rubickcz/simple-bash-cms.git +```sh +$ git clone https://github.com/rubickcz/simple-bash-cms.git ``` The directory `my-website/` should now look something like this: -``` +```sh my-website/ └── simpe-bash-cms ├── config.sh @@ -42,6 +42,7 @@ my-website/ From now on, all paths I will mention will be relative to `my-website/` directory. #### 2. Edit your config.sh + Edit config options located in `simple-bash-cms/config.sh` to fit your needs. Every option is commented so you get an idea what it does. @@ -61,7 +62,7 @@ website) The directory `my-website` should now look something like this: -``` +```sh my-website/ ├── simpe-bash-cms │ ├── config.sh @@ -83,7 +84,7 @@ internet, it's up to you. And of course, you can use images, CSS styles etc. This is very simplified example of such a page (I have added HTML comments to clearly distuinguish header and footer sections): -``` +```html
@@ -117,7 +118,7 @@ directory in your website root, so adjust your paths in HTML accordingly. The directory `my-website/` should now look something like this: -``` +```sh my-website/ ├── simpe-bash-cms │ ├── config.sh @@ -146,7 +147,7 @@ page of your website. You are allowed to create three things in this directory: For example, create file `index.html` in `input/content/` directory with following content: -``` +```htmlHello world!
``` @@ -157,8 +158,8 @@ We will now use first tool of this CMS, the `generate.sh` script. Be sure your are in your website root directory an invoke generate.sh without any parameters: -``` -./generate.sh +```sh +$ ./generate.sh ``` After a while, first page of your website should emerge in newly created @@ -195,7 +196,7 @@ This is what happens to our `input/content/index.html` file during generation: The file `output/index.html` looks like this: -``` +```html