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

Allow to change the download links and view on Github #3

Closed
devnoname120 opened this issue Dec 23, 2016 · 4 comments · May be fixed by #81
Closed

Allow to change the download links and view on Github #3

devnoname120 opened this issue Dec 23, 2016 · 4 comments · May be fixed by #81

Comments

@devnoname120
Copy link

{% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" class="btn">Download as .zip</a>
<a href="{{ site.github.tar_url }}" class="btn">Download as .tar.gz</a>
{% endif %}
<a href="{{ site.github.repository_url }}" class="btn btn-github"><span class="icon"></span>View on GitHub</a>

I would like to be able to replace the downloads links in _config.yml without using a hacky solution.

@devnoname120 devnoname120 changed the title Allow to use change the links of downloads and view on Github Allow to change the download links and view on Github Dec 23, 2016
@benbalter
Copy link
Contributor

@devnoname120 to clarify, you'd like to point to an arbitrary URL?

@devnoname120
Copy link
Author

Yes, but I figured out that modifying the layout allows me to do this. I think that this issue can be closed since it solves my problem.

It seems rather rare to me though that one would want the download link to point to an archive of the site repository.

@benbalter
Copy link
Contributor

You can also manually set site.github.zip_url in your site's config as well to override the URL.

@devnoname120
Copy link
Author

Thanks! I will close this issue as my problem is solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants