Skip to content

Commit

Permalink
Merge pull request #85 from edrlab/dev/reviews
Browse files Browse the repository at this point in the history
move reviews to config.toml file
  • Loading branch information
gautierchomel authored Sep 4, 2024
2 parents 9eaa730 + 2c3f9bf commit b9db518
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
15 changes: 15 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,21 @@ enable = false
icon = "fa fa-envelope"
desc = "Discuss development issues around the project"

[[params.reviews]]
content = "I love Thorium and have introduced it to my students for reading any digital content. It is doubly good when something that makes reading more accessible for visually impaired people is also something that makes things more flexible for all. It makes it so much easier to get buy-in for using it."
name = "Suzanne Norman"
place = "Simon Fraser University, Canada"

[[params.reviews]]
content = "I am very happy to have found this app. Its simple, easy to use, and most importantly, its very friendly for people who are blind and visually impaired."
name = "Noberto"
place = "USA"

[[params.reviews]]
content = "I can’t get enough of this ebook reader its clean and simple makes things easier for me to read! thank you I totally recommend this!"
name = "Gigi"
place = "USA"

# hugo module configuration

[module]
Expand Down
24 changes: 6 additions & 18 deletions layouts/shortcodes/reviews.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,22 @@

<section class="userReviews">
<h2>User Reviews</h2>
<div class="carousel">
<button class="prev" onclick="prevSlide()">
<img src="/images/icons/review-prev-icon.svg" />
</button>
<div class="carousel-images">

{{ range .Site.Params.reviews}}
<div class="carousel-comment">
<blockquote>
<p>
“I love Thorium and have introduced it to my students for reading any digital content. It is doubly good when something that makes reading more accessible for visually impaired people is also something that makes things more flexible for all. It makes it so much easier to get buy-in for using it.”
"{{ .content }}"
</p>
<footer><b>Suzanne Norman, </b><cite>Simon Fraser University, Canada</cite></footer>
</blockquote>
</div>
<div class="carousel-comment">
<blockquote>
<p>
“I am very happy to have found this app. Its simple, easy to use, and most importantly, its very friendly for people who are blind and visually impaired.”
</p>
<footer><b>Noberto, </b><cite>USA</cite></footer>
</blockquote>
</div>
<div class="carousel-comment">
<blockquote>
<p>
“I can’t get enough of this ebook reader its clean and simple makes things easier for me to read! thank you I totally recommend this!”
</p>
<footer><b>Gigi, </b><cite>USA</cite></footer>
<footer><b>{{ .name}}, </b><cite>{{ .place}}</cite></footer>
</blockquote>
</div>
{{ end }}
</div>
<button class="next" onclick="nextSlide()">
<img src="/images/icons/review-next-icon.svg" />
Expand Down

0 comments on commit b9db518

Please sign in to comment.