Skip to content

Commit

Permalink
Merge pull request #534 from geneontology/go-ref-page-urls
Browse files Browse the repository at this point in the history
Update file and folder structure of GO REF generated pages
  • Loading branch information
pkalita-lbl authored Apr 22, 2024
2 parents 01ed2ae + e73d8d8 commit b5cdaac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ algolia:
page_gen:
- data: gorefs
template: goref
name: id
dir: GO_REF
name_expr: "record['id'].sub('GO_REF:', '')"
6 changes: 5 additions & 1 deletion _includes/goref_toc_list_item.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<li>
<a class="u-margin-bottom-xsmall" href="{{ include.goref.id | datapage_url: 'gorefs' }}">
{% comment %} This href must be kept in sync with page_gen settings in _config.yaml {% endcomment %}
<a
class="u-margin-bottom-xsmall"
href="{{ '/GO_REF/' | append: include.goref.id | replace: 'GO_REF:', '' | relative_url }}"
>
[{{ include.goref.id }}] {{ include.goref.title }}
</a>
</li>
2 changes: 1 addition & 1 deletion _layouts/goref.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="container">
<div class="u-margin-bottom-medium">
<a href="{{ '/gorefs.html' | relative_url }}">
<a href="{{ '/gorefs' | relative_url }}">
<i class="fa fa-chevron-left" aria-hidden="true"></i>
All GO REFs
</a>
Expand Down
6 changes: 0 additions & 6 deletions gorefs.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
---
# Note that when developing locally, this page must be reached by visiting /gorefs.html. Without
# the .html extension (/gorefs), an index page for the gorefs directory generated by the
# jekyll-datapage-generator plugin will be displayed instead. This is a quirk of the Jekyll
# development web server. When deployed on GitHub pages, this page will be available at /gorefs
# without the .html extension.

layout: default
---

Expand Down

0 comments on commit b5cdaac

Please sign in to comment.