mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-25 03:03:16 +01:00
wording
This commit is contained in:
parent
ae79626e3d
commit
156fa58535
@ -1,2 +1,3 @@
|
|||||||
|
|
||||||
- [CSS](css.md)
|
- [CSS](css.md)
|
||||||
|
- [Testimonials](testimonials.md)
|
||||||
|
@ -3,13 +3,13 @@ Testimonials
|
|||||||
|
|
||||||
The [testimonials component](../_src/_includes/testimonials.html)'s quotes are based on simple YAML data defined in [`_src/data/testimonials.yml`](../_src/data/testimonials.yml) with different arrays. Each array holds a total of 3 quotes.
|
The [testimonials component](../_src/_includes/testimonials.html)'s quotes are based on simple YAML data defined in [`_src/data/testimonials.yml`](../_src/data/testimonials.yml) with different arrays. Each array holds a total of 3 quotes.
|
||||||
|
|
||||||
So the testimonials component consists of various files:
|
The testimonials component consists of various files:
|
||||||
|
|
||||||
- [component](../_src/_includes/testimonials.html)
|
- [HTML component](../_src/_includes/testimonials.html)
|
||||||
- [section](../_src/_includes/section-testimonials.html)
|
- [HTML section](../_src/_includes/section-testimonials.html)
|
||||||
- [data](../_src/data/testimonials.yml)
|
- [YAML data](../_src/data/testimonials.yml)
|
||||||
- [styles](../_src/_assets/styles/bigchain/_testimonials.scss)
|
- [SCSS styles](../_src/_assets/styles/bigchain/_testimonials.scss)
|
||||||
- [js](../_src/_assets/javascripts/bigchain/testimonials.js)
|
- [JavaScript](../_src/_assets/javascripts/bigchain/testimonials.js)
|
||||||
|
|
||||||
### Photos
|
### Photos
|
||||||
|
|
||||||
@ -25,14 +25,14 @@ Testimonials.init();
|
|||||||
|
|
||||||
### Select and output a set of quotes
|
### Select and output a set of quotes
|
||||||
|
|
||||||
A set of quotes can be set as custom variable `quotes` in the YAML Front Matter of the page where the testimonials component has been included.
|
A set of quotes can be set as value of the custom variable `quotes` in the YAML Front Matter of the page where the testimonials component has been included.
|
||||||
|
|
||||||
E.g. on the frontpage [`_src/index.html`](../_src/index.html) we want to include the whole testimonials section and use `set3` for the quotes. So in the YAML Front Matter of that file, write:
|
E.g. on the front page [`_src/index.html`](../_src/index.html) we want to include the whole testimonials section and use `set2` for the quotes. So in the YAML Front Matter of that file, write:
|
||||||
|
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
|
|
||||||
quotes: set3
|
quotes: set2
|
||||||
|
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
@ -45,4 +45,4 @@ In the content of the page where you want to have the testimonials section inclu
|
|||||||
</body>
|
</body>
|
||||||
```
|
```
|
||||||
|
|
||||||
The value of the `quotes` variable will grab the associated set of quotes and outputs them on the frontpage.
|
The value of the `quotes` variable will grab the associated set of quotes and outputs them on the front page.
|
||||||
|
Loading…
Reference in New Issue
Block a user