Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify Github Enterprise url #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ baseUrl: http://username.github.io/project
github:
user: myself
repo: my-project
url: github.com # This is the default, but you can specify your Github Enterprise url instead

title: My project
subTitle: This is a great project.
Expand Down
2 changes: 1 addition & 1 deletion default.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</a>

{% if github is defined %}
<a href="https://github.com/{{ github.user }}/{{ github.repo }}">
<a href="https://{{ github.url|default('github.com') }}/{{ github.user }}/{{ github.repo }}">
<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>
{% endif %}
Expand Down