Skip to content

Commit

Permalink
Merge pull request #1145 from razvanazamfirei/update-cask-token-handling
Browse files Browse the repository at this point in the history
update cask token handling
  • Loading branch information
EricFromCanada committed Apr 28, 2024
2 parents 2a89ad0 + f780399 commit f7c67f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions _includes/cask.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

<td>
{%- if site.data.cask[include.token] != nil -%}
<a href="{{ site.baseurl }}/cask/{{ include.token | uri_escape }}">{{ include.token | escape }}</a>
{%- if site.data.cask[include.sort_key] != nil -%}
<a href="{{ site.baseurl }}/cask/{{ include.cask.token | uri_escape }}">{{ include.cask.token | escape }}</a>
{%- else -%}
{{ include.token | escape }}
{{ include.cask.token | escape }}
{%- endif -%}
</td>
<td>{{ include.cask.version | truncate: 25 | escape }}</td>
Expand Down
4 changes: 2 additions & 2 deletions cask_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ <h2><a href="{{ site.baseurl }}/api/cask.json"><code>/api/cask.json</code> (JSON
{%- assign sorted_casks = site.data.cask | sort -%}
{%- for c in sorted_casks -%}
<tr>
{%- assign token = c[0] -%}
{%- assign sort_key = c[0] -%}
{%- assign cask = c[1] -%}
{%- include cask.html token=token cask=cask -%}
{%- include cask.html sort_key=sort_key cask=cask -%}
</tr>
{%- endfor -%}
</table>
Expand Down

0 comments on commit f7c67f5

Please sign in to comment.