Skip to content

Commit a459525

Browse files
author
Pablo Vieira
committed
refac(env): change GitHub env vars
1 parent 26d549c commit a459525

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

_config_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
url: ""
22

3+
# GitHub Pages environment: https://help.github.com/articles/repository-metadata-on-github-pages/
34
github:
4-
repository_nwo: "pv8/pv8.github.io"
5-
owner_url: "https://github.com/pv8"
5+
repository_url: "https://github.com/pv8/pv8.github.io"

_layouts/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1 class="post-title"><a href="{{ page.url }}" itemprop="name">{{ page.title }}
3131
</article>
3232

3333
<div class="post-footer">
34-
<p><a href="https://github.com/{{ site.github.repository_nwo }}/edit/{{ site.branch }}/{{ page.path }}">Help improve this content</a>.</p>
34+
<p><a href="{{ site.github.repository_url }}/edit/{{ site.branch }}/{{ page.path }}">Help improve this content</a>.</p>
3535
</div>
3636

3737
{% if site.related_posts.size > 0 %}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h4>About this site</h4>
3131
and hosted on <a href="https://pages.github.com/" target="_blank" rel="noopener">GitHub Pages</a>.
3232
<br/>
3333
{% assign github = site.data.social-profiles | where:"name","GitHub" %}
34-
Fork it on <a href="{{ github[0].url }}/pv8.github.io">GitHub</a>.
34+
Fork it on <a href="{{{ site.github.repository_url }}">GitHub</a>.
3535
</p>
3636
</div>
3737
<!-- {% include main-footer.html %} -->

0 commit comments

Comments
 (0)