Skip to content

Commit d5e465f

Browse files
author
Mike Fisher
committed
Split testiomonials into data
1 parent 6e94763 commit d5e465f

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

_data/plugins.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@
2525
- name: task/process
2626
repo: taskphp/process
2727
description: Subprocesses with symfony/process
28+
29+
- name: task/watch
30+
repo: taskphp/watch
31+
description: Filesystem event subscription

_data/testimonials.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- quote: gaaah, just use bash!
2+
reviewer: glenathan
3+
link: https://github.com/glenathan

_layouts/default.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,26 @@ <h2><a href="https://github.com/{{ plugin.repo }}" target="_blank">{{ plugin.nam
5454
{% endfor %}
5555

5656
<h1>Testimonials</h1>
57+
{% for testimonial in site.data.testimonials %}
5758
<div class="testimonial box">
58-
<p class="quote">gaaah, just use bash!</p>
59-
<p class="reviewer"><a href="https://github.com/glenjamin" target="_blank">@glenathan</a></p>
59+
<p class="quote">{{ testimonial.quote }}</p>
60+
<p class="reviewer"><a href="{{ testimonial.quote }}" target="_blank">@{{ testimonial.reviewer }}</a></p>
6061
</div>
62+
{% endfor %}
6163

6264
</aside>
6365
</div>
6466
</div>
6567

66-
68+
<script>
69+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
70+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
71+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
72+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
73+
74+
ga('create', 'UA-50354042-1', 'taskphp.github.io');
75+
ga('send', 'pageview');
76+
77+
</script>
6778
</body>
6879
</html>

stylesheets/stylesheet.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ aside .box p {
397397

398398
aside .testimonial .quote {
399399
font-style: italic;
400+
padding-left: 5px;
401+
border-left: 1px solid #ccc;
400402
}
401403

402404

0 commit comments

Comments
 (0)