Skip to content

Commit b54c184

Browse files
authored
Merge pull request #124 from Shopify/fix-rendering
Fix rendering due to unescaped GitHub data
2 parents 9ee410d + c040261 commit b54c184

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

index.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,20 @@ <h2>
128128
</script>
129129

130130
<script>
131-
var repos = {{ site.github.public_repositories | jsonify }};
131+
var repos = [
132+
{% for repo in site.github.public_repositories %}
133+
{
134+
name: "{{repo.name}}",
135+
html_url: "{{repo.html_url}}",
136+
description: "{{repo.description}}",
137+
homepage: "{{repo.homepage}}",
138+
language: "{{repo.language}}",
139+
stargazers_count: {{repo.stargazers_count}},
140+
forks_count: {{repo.forks_count}},
141+
fork: {{repo.fork}}
142+
},
143+
{% endfor %}
144+
];
132145
</script>
133146

134147
<div class="pagewidth">

0 commit comments

Comments
 (0)