Skip to content

Commit

Permalink
Merge pull request #1173 from EricFromCanada/master
Browse files Browse the repository at this point in the history
list cask fonts on separate page
  • Loading branch information
MikeMcQuaid authored May 14, 2024
2 parents a8206d3 + 9fac366 commit 530ee7c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
23 changes: 23 additions & 0 deletions cask-font_index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: homebrew-cask
layout: default
permalink: /cask-font/
---
<p>This is a listing of all fonts available from the <a href="{{ site.taps.cask.remote }}">{{ site.taps.cask.repo }} tap</a> via the <a href="https://brew.sh">Homebrew</a> package manager for macOS.</p>

<h2><a href="{{ site.baseurl }}/api/cask.json"><code>/api/cask.json</code> (JSON API)</a></h2>

<table>
{%- assign sorted_casks = site.data.cask | sort -%}
{%- for cask in sorted_casks -%}
{%- assign subfolder = cask[1].ruby_source_path | slice: 6, 4 -%}
{%- if subfolder == "font" -%}
<tr>
{%- assign data_token = cask[0] -%}
{%- assign token = cask[1].token -%}
{%- include cask.html data_token=data_token token=token -%}
</tr>
{%- endif -%}
{%- endfor -%}
</table>
<footer id="border-no-bottom">Last updated: {{ "today" | date: "%F %R" }}</footer>
13 changes: 8 additions & 5 deletions cask_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ <h2><a href="{{ site.baseurl }}/api/cask.json"><code>/api/cask.json</code> (JSON
<table>
{%- assign sorted_casks = site.data.cask | sort -%}
{%- for cask in sorted_casks -%}
<tr>
{%- assign data_token = cask[0] -%}
{%- assign token = cask[1].token -%}
{%- include cask.html data_token=data_token token=token -%}
</tr>
{%- assign subfolder = cask[1].ruby_source_path | slice: 6, 4 -%}
{%- unless subfolder == "font" -%}
<tr>
{%- assign data_token = cask[0] -%}
{%- assign token = cask[1].token -%}
{%- include cask.html data_token=data_token token=token -%}
</tr>
{%- endunless -%}
{%- endfor -%}
</table>
<footer id="border-no-bottom">Last updated: {{ "today" | date: "%F %R" }}</footer>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<p><a href="{{ site.baseurl }}/">Homebrew Formulae</a> is an online package browser for <a href="https://brew.sh">Homebrew</a> – the macOS (and Linux) package manager. For more information on how to install and use Homebrew see <a href="https://brew.sh">our homepage</a>.</p>

<h2><a href="{{ site.baseurl }}/formula/">Browse all formulae</a></h2>
<h2><a href="{{ site.baseurl }}/cask/">Browse all casks</a></h2>
<h2><a href="{{ site.baseurl }}/cask/">Browse all casks</a> or <a href="{{ site.baseurl }}/cask-font/">cask fonts</a></h2>
<h2><a href="{{ site.baseurl }}/analytics/">Analytics data</a></h2>
<h2><a href="{{ site.baseurl }}/docs/api/">JSON API documentation</a></h2>

0 comments on commit 530ee7c

Please sign in to comment.