From 1207bebadda55fd894b663732efc4e6670d54ca2 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Wed, 10 Feb 2021 16:46:57 +0000
Subject: [PATCH] edit page
---
exampleSite/content/docs/compose/shortcodes-example.md | 35 -----------
exampleSite/content/docs/clarity/blogging.md | 4
exampleSite/content/docs/clarity/images.md | 6 +-
exampleSite/content/_index.md | 4 +
exampleSite/content/docs/clarity/features.md | 2
exampleSite/content/docs/compose/install-theme.md | 8 ++
exampleSite/content/docs/compose/shortcodes.md | 68 ++++++++++++++++++++--
exampleSite/content/docs/compose/use-forestry-cms.md | 8 ++
8 files changed, 83 insertions(+), 52 deletions(-)
diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md
index 0c5321f..25fa26b 100644
--- a/exampleSite/content/_index.md
+++ b/exampleSite/content/_index.md
@@ -17,7 +17,9 @@
We do a [Pull Request](https://github.com/onweru/compose/pulls) contributions workflow on **GitHub**. Also feel free to raise any issues or feature suggestions.
-Note that the theme is built with simplicity in mind. This way, if a suggestion complicates the usability of the theme, it may be declined. New users are always welcome!
+{{< tip "warning" >}}
+Note that the theme is built with simplicity in mind. [This way](/), if a suggestion complicates the usability of the theme, it may be declined. New users are always welcome!
+{{< /tip >}}
{{< button "docs/compose/" "Read the Docs" >}}{{< button "https://github.com/onweru/compose" "Download Theme" >}}
{{< /column >}}
diff --git a/exampleSite/content/docs/clarity/blogging.md b/exampleSite/content/docs/clarity/blogging.md
index 54f6522..a6c21aa 100644
--- a/exampleSite/content/docs/clarity/blogging.md
+++ b/exampleSite/content/docs/clarity/blogging.md
@@ -41,7 +41,7 @@
#### Number of tags example
-
+
<!-- mark -->
@@ -51,4 +51,4 @@
#### Table of contents (TOC) example
-
+
diff --git a/exampleSite/content/docs/clarity/features.md b/exampleSite/content/docs/clarity/features.md
index 9359fb0..cd8eff4 100644
--- a/exampleSite/content/docs/clarity/features.md
+++ b/exampleSite/content/docs/clarity/features.md
@@ -22,4 +22,4 @@
To put it all in context, here is a preview showing all functionality.
- 
+ 
diff --git a/exampleSite/content/docs/clarity/images.md b/exampleSite/content/docs/clarity/images.md
index 5349e91..cccfe52 100644
--- a/exampleSite/content/docs/clarity/images.md
+++ b/exampleSite/content/docs/clarity/images.md
@@ -18,10 +18,10 @@
In this example, `figurePositionLabel` is set to "Figure" in `config.toml` and this is the first image in a given article.
```markdown
-
+
```
-
+
### Inline images
@@ -38,7 +38,7 @@

```
-
+
### Float images to the left
diff --git a/exampleSite/content/docs/compose/install-theme.md b/exampleSite/content/docs/compose/install-theme.md
index 853ec41..9689eba 100755
--- a/exampleSite/content/docs/compose/install-theme.md
+++ b/exampleSite/content/docs/compose/install-theme.md
@@ -31,7 +31,9 @@
To pull in theme updates, run `hugo mod get -u ./...` from the theme folder. If unsure, [learn how to update hugo modules](https://gohugo.io/hugo-modules/use-modules/#update-modules)
-> ⚠️ If you choose __Option 2__ or __Option 3__ below, ensure you edit [these lines in the config.toml file](https://github.com/onweru/compose/blob/b3e30e0816621223224897edc45eeeabd0d9cd16/exampleSite/config.toml#L4-L7) as advised on the comments
+{{< tip >}}
+If you choose __Option 2__ or __Option 3__ below, ensure you edit [these lines in the config.toml file](https://github.com/onweru/compose/blob/b3e30e0816621223224897edc45eeeabd0d9cd16/exampleSite/config.toml#L4-L7) as advised on the comments
+{{< /tip >}}
### Option 2 (recommended)
@@ -63,7 +65,9 @@
hugo server --themesDir ../..
```
-> Although, option 3 is great for quick testing, it is somewhat problematic when you want to update your theme. You would need to be careful not to overwrite your changes.
+{{< tip >}}
+Although, option 3 is great for quick testing, it is somewhat problematic when you want to update your theme. You would need to be careful not to overwrite your changes.
+{{< /tip >}}
Once set, jump over to the `config.toml` file and start [configuring](#configuration) your site.
diff --git a/exampleSite/content/docs/compose/shortcodes-example.md b/exampleSite/content/docs/compose/shortcodes-example.md
index e05df36..3aca5ff 100644
--- a/exampleSite/content/docs/compose/shortcodes-example.md
+++ b/exampleSite/content/docs/compose/shortcodes-example.md
@@ -54,38 +54,3 @@
{{< /column >}}
{{< /block >}}
-
-### Youtube
-
-```sh
-{{</* youtube "q0hyYWKXF0Q" */>}}
-<!-- generates 👇 -->
-```
-
-{{< youtube "q0hyYWKXF0Q" >}}
-
-## Picture
-
-```sh
-{{</* picture "compose.svg" "compose-light.svg" "Compose Logo" */>}}
-<!-- generates 👇 -->
-```
-
-{{< picture "compose.svg" "compose-light.svg" "Compose Logo" >}}
-
-## Gallery
-
-Include inline galleries within your articles. These galleries can contain `N` number of images. It take 2 positional parameters.
-
-The 1st parameter is required. It is _comma-separated list_ (`,`) of your images' paths.
-
-The 2nd parameter is optional. It is _double-collon-separated list_ (`::`) of your images' alt/description/captions text. It's always a good SEO practice to include alt text for your images.
-
-```sh
-{{</* gallery "images/painting.jpg,images/scribble.jpg,images/painting.jpg" "Gallery Image 1::gallery image 2::gallery image 1 copy" */>}}
-# generates 👇
-```
-
-{{< gallery "images/painting.jpg,images/scribble.jpg,images/painting.jpg" "Gallery Image 1::gallery image 2::gallery image 1 copy" >}}
-
-> For legibility, you may include a space after the delimiters `,` & `::`
diff --git a/exampleSite/content/docs/compose/shortcodes.md b/exampleSite/content/docs/compose/shortcodes.md
index 1911576..0f30e5c 100644
--- a/exampleSite/content/docs/compose/shortcodes.md
+++ b/exampleSite/content/docs/compose/shortcodes.md
@@ -38,17 +38,21 @@
{{</* /column */>}}
```
-### Video
+### Youtube Video
This allows you to embed a youtube video in you content. You would achieve that using a positional parameter (needs no name )parameter, like so:
-**Example:**
+__Syntax__
```markdown
- {{</* youtube "xWF59rWSceA" */>}}
+ {{</* youtube "25QyCxVkXwQ" */>}}
<!-- Use the youtube video id -->
```
+__Result__
+
+{{< youtube "25QyCxVkXwQ" >}}
+
### Button
This adds a styled link (styled like a button). It takes two no-optional parameters:
@@ -61,7 +65,7 @@
**Example**
-```
+```markdown
{{</* button "/" "doe nu mee" */>}}
```
@@ -71,12 +75,18 @@
Store these images in the `static/images` directory.
-```sh
+__Syntax__
+
+```markdown
...
{{</* picture "lightModeImage.png" "darkModeImage.png" "Image alt text" */>}}
...
```
+__Result__
+
+{{< picture "compose.svg" "compose-light.svg" "Compose Logo" >}}
+
### Gallery
Include inline galleries within your articles. These galleries can contain `N` number of images. It takes 2 positional parameters.
@@ -85,8 +95,54 @@
The 2nd parameter is optional. It's a _double-collon-separated list_ (`::`) of your images' alt/description/captions text. It's always a good SEO practice to include alt text for your images.
-```sh
+__Syntax__
+
+```markdown
...
{{</* gallery "images/painting.jpg,images/scribble.jpg,images/painting.jpg" "Gallery Image 1::gallery image 2::gallery image 1 copy" */>}}
...
```
+{{< tip >}}
+> For legibility, you may include a space after the delimiters `,` & `::`
+{{< /tip >}}
+
+__Result__
+
+{{< gallery "images/painting.jpg,images/scribble.jpg,images/painting.jpg" "Gallery Image 1::gallery image 2::gallery image 1 copy" >}}
+
+
+### Tip
+
+Use this short if you want to publish informational tooltips that look like:
+
+This tooltips may take either of the following forms:
+
+__Syntax__
+
+```markdown
+{{</* tip */>}}
+Something of __interest__ you want to highlight
+{{</* /tip */>}}
+```
+
+__Result__
+
+{{< tip >}}
+Something of __interest__ you want to highlight
+{{< /tip >}}
+
+__OR__
+
+__Syntax__
+
+```markdown
+{{</* tip "warning" */>}}
+Something of __interest__ the user should be careful about
+{{</* /tip */>}}
+```
+
+__Result__
+
+{{< tip "warning" >}}
+Something of __interest__ the user should be careful about
+{{< /tip >}}
diff --git a/exampleSite/content/docs/compose/use-forestry-cms.md b/exampleSite/content/docs/compose/use-forestry-cms.md
index e43f89a..efda18e 100644
--- a/exampleSite/content/docs/compose/use-forestry-cms.md
+++ b/exampleSite/content/docs/compose/use-forestry-cms.md
@@ -12,7 +12,9 @@
Obviously you ought to have __a github account__. This is where your website source will live. Basically, forestry will read from github and write (commmit) to your github repo.
-> Gitlab or bitbucket will work too. Just check their [implementation here](https://forestry.io/docs/git-sync/gitlab/). Happy fishing.
+{{< tip "warning" >}}
+Gitlab or bitbucket will work too. Just check their [implementation here](https://forestry.io/docs/git-sync/gitlab/). Happy fishing.
+{{< /tip >}}
### Requirement 1 : A Forestry account
@@ -28,7 +30,9 @@
### Step 2 : Add your repository in Forestry
-> The exampleSite already comes with prefilled default forestry settings. If you set up your site using [option 2](../getting-started/#option-2-recommended), look for a file `.forestry/settings.yml` and remove all `exampleSite/` strings from it.
+{{< tip >}}
+The exampleSite already comes with prefilled default forestry settings. If you set up your site using [option 2](../getting-started/#option-2-recommended), look for a file `.forestry/settings.yml` and remove all `exampleSite/` strings from it.
+{{< /tip >}}
Go to your [forestry](https://bit.ly/forestry-account) account and click on `import your site now`.
--
Gitblit v1.10.0