Skip to content

Commit 98136e4

Browse files
committed
remove repository_owner/name config in favor of github vars. closes #36
1 parent 367805b commit 98136e4

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

_config.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ title: JKAN
22
description: A lightweight, backend-free open data portal, powered by Jekyll.
33
baseurl: /jkan
44

5-
# GitHub Repo Info
6-
repository_owner: timwis
7-
repository_name: jkan
8-
95
# Authentication
106
github_client_id:
117
gatekeeper_host:
@@ -27,6 +23,9 @@ category_list:
2723
- Transportation
2824
- Uncategorized
2925

26+
# Link for the "fork me on github" banner. Remove this line to suppress banner.
27+
fork_me_url: https://github.com/timwis/jkan
28+
3029
# Nav bar
3130
navigation:
3231
- title: Datasets

_includes/head.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
FILE_PATH: {{ page.path | jsonify }},
2121
DATASETS_DIR: {{ datasets.relative_directory | jsonify }},
2222
BRANCH: {% if site.github.is_user_page %}"master"{% else %}"gh-pages"{% endif %},
23-
REPO_OWNER: {{ site.github.owner_name | default: site.repository_owner | jsonify }},
24-
REPO_NAME: {{ site.github.project_title | default: site.repository_name | jsonify }},
23+
REPO_OWNER: {{ site.github.owner_name | jsonify }},
24+
REPO_NAME: {{ site.github.project_title | jsonify }},
2525
GITHUB_CLIENT_ID: {{ site.github_client_id | jsonify }},
2626
GATEKEEPER_HOST: {{ site.gatekeeper_host | jsonify }}
2727
}

_layouts/dataset.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h3><a href="{{ site.baseurl }}/datasets/?organization={{ organization.title | s
2727
{% endif %}
2828
<h1>
2929
{{ page.title }}
30-
<a href="https://github.com/{{ site.repository_owner }}/{{ site.repository_name }}/edit/gh-pages/{{ page.path }}" class="pull-right btn btn-default" role="button" data-hook="edit-button">Edit</a>
30+
<a href="https://github.com/{{ site.github.owner_name }}/{{ site.github.project_title }}/edit/gh-pages/{{ page.path }}" class="pull-right btn btn-default" role="button" data-hook="edit-button">Edit</a>
3131
</h1>
3232
<p>{{ page.notes }}</p>
3333

index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
layout: default
33
---
44

5-
<a href="https://github.com/{{ site.repository_owner }}/{{ site.repository_name }}"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
5+
{% if site.fork_me_url %}
6+
<a href="{{ site.fork_me_url }}"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
7+
{% endif %}
68

79
<div class="jumbotron">
810
<h1>Welcome to {{ site.title }}</h1>

0 commit comments

Comments
 (0)