Skip to content

Commit

Permalink
Fix cask code URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongRuoyu committed Aug 10, 2023
1 parent ab277a4 commit 8c0355e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _layouts/cask.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
{%- assign token = page.title -%}
{%- assign formula_path = "formula" -%}
{%- assign c = site.data.cask[token] -%}
{%- assign sharded_subdir = token | slice: 0 -%}
<h2>{{ token }}</h2>

{%- include install_command.html item=token modifier=" --cask" %}
Expand All @@ -20,7 +21,7 @@ <h2>{{ token }}</h2>
<p class="homepage"><a href="{{ c.homepage }}">{{ c.homepage }}</a></p>

<p><a href="{{ site.baseurl }}/api/cask/{{ token }}.json"><code>/api/cask/{{ token }}.json</code> (JSON API)</a></p>
<p><a target="_blank" href="{{ site.taps.cask.remote }}/blob/{{ c.tap_git_head }}/Casks/{{ token }}.rb">Cask code</a> on GitHub</p>
<p><a target="_blank" href="{{ site.taps.cask.remote }}/blob/{{ c.tap_git_head }}/Casks/{{ sharded_subdir }}/{{ token }}.rb">Cask code</a> on GitHub</p>

<p>Current version: <a href="{{ c.url }}">{{ c.version }}</a></p>

Expand Down

0 comments on commit 8c0355e

Please sign in to comment.