Skip to content

Commit

Permalink
Add capybaras to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Voycawojka committed Aug 12, 2020
1 parent 743beaf commit 7901ae7
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,27 @@ The simplest usecase is to provide the same header and footer for every file. Th
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Awesome website</title>
<title>Capybara Fan Club</title>
</head>
<body>

<header>My awesome website</header>
<header>Welcome To The Capybara Lovers Community</header>

<!-- !cb-wrap subpages -->

<footer>Made by me</footer>
<footer>Made with love</footer>

</body>
</html>
```

In this case we specified the _subpages_ directory for the `cb-wrap` command. This is where the content files are located.
There may be any number of them. An example content file:
There may be any number of them. A sample content file:

```html
<h1>An article</h1>
<h2>Why is my website awesome?</h2>
<p>Because it is</p>
<h1>The cultural influence of capybaras</h1>
<h2>Currency</h2>
<p>The image of a capybara can be seen on a 2 Pesos Uruguay coin.</p>
```

The file structure looks like this:
Expand All @@ -66,7 +66,7 @@ template.html
subpages/
--- article.html
--- about.html
--- contact.html
--- adopt.html
```

If you run the command:
Expand All @@ -82,7 +82,7 @@ template.html
subpages/
--- article.html
--- about.html
--- contact.html
--- adopt.html
public/
--- subpages/
------- article.html
Expand All @@ -98,17 +98,17 @@ The generated `public/subpages/article.html` file contains the following:
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Awesome website</title>
<title>Capybara Fan Club</title>
</head>
<body>

<header>My awesome website</header>
<header>Welcome To The Capybara Lovers Community</header>

<h1>An article</h1>
<h2>Why is my website awesome?</h2>
<p>Because it is</p>
<h1>The cultural influence of capybaras</h1>
<h2>Currency</h2>
<p>The image of a capybara can be seen on a 2 Pesos Uruguay coin.</p>

<footer>Made by me</footer>
<footer>Made with love</footer>

</body>
</html>
Expand Down

0 comments on commit 7901ae7

Please sign in to comment.