Skip to content

Commit

Permalink
Merge pull request #321 from dean-krueger/software-dropdown
Browse files Browse the repository at this point in the history
Added Headers, and modified CNERG Software List in Dropdown
  • Loading branch information
lewisgross1296 authored Jan 16, 2025
2 parents d631283 + b71fbf0 commit 996df17
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
19 changes: 17 additions & 2 deletions _data/navbar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
- title: "Software"
url: "/software"
subcategories:
- subheading: "CNERG-Managed"
target: "_blank"
- subtitle: "Svalinn"
exturl: "https://svalinn.github.io"
target: "_blank"
Expand All @@ -80,9 +82,22 @@
exturl: "https://fuelcycle.org"
target: "_blank"
github: "https://github.com/cyclus/cyclus"
- subtitle: "FRENSIE"
exturl: "https://github.com/FRENSIE/FRENSIE"
- subtitle: divider
- subheading: "Affiliates"
target: "_blank"
- subtitle: Cardinal
exturl: "https://cardinal.cels.anl.gov/"
target: "_blank"
github: "https://github.com/neams-th-coe/cardinal"
- subtitle: OpenMC
exturl: "https://docs.openmc.org"
target: "_blank"
github: "https://github.com/openmc-dev/openmc"
- subtitle: MontePy
exturl: "https://www.montepy.org/en/stable/"
target: "_blank"
github: "https://github.com/idaholab/MontePy"


- title: "Upload to CNERG"
url: "upload.html"
8 changes: 6 additions & 2 deletions _includes/site_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="{{ site.baseurl }}/{{ item.url }}" >{{ item.title }}</a>
<div class="dropdown-menu" aria-labelledby="download">
{% for subcategory in item.subcategories %}
{% if subcategory.subtitle == "divider" %}
<div class="dropdown-divider"></div>
{% if subcategory.subheading != null %}
<div class="dropdown-header">{{ subcategory.subheading }}</div>
{% else %}
<div class="dropdown-item">
{% if subcategory.subtitle == "divider" %}
<div class="dropdown-divider"></div>
{% else %}
{% if subcategory.suburl == null %}
<a target="{{ subcategory.target }}" href="{{ subcategory.exturl }}">
{% if subcategory.icon != null %}
Expand All @@ -36,6 +39,7 @@
<a href="{{ subcategory.github }}" target="_blank"><img class="cnerg-service-menu-icon" src="{{ site.baseurl }}/services/icons/github.svg"></a>
{% endif %}
{% endif %}
{% endif %}
</div>
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 996df17

Please sign in to comment.