Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions source/docs/nlr-domain-transition.html.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: NLR.gov Domain Transition
hidden_child: true
hide_domain_transition_link: true
---

# NLR.gov Domain Transition
Expand Down
20 changes: 20 additions & 0 deletions source/docs/widget-embed-code.html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Updating Embed Code for NLR.gov Widgets
hidden_child: true
hide_domain_transition_alert: true
---

<div class="alert alert-warning d-flex align-items-center" role="alert">
<i class="fa-solid fa-triangle-exclamation bi flex-shrink-0 me-2"></i>
<p class="m-0 lh-sm">
<strong>Website Owners:</strong> Update any <code>nrel.gov</code> references in your widget embed code to <code>nlr.gov</code> by <strong>May 29, 2026</strong>, to avoid service interruptions.
</p>
</div>

# Updating Embed Code for NLR.gov Widgets

The National Laboratory of the Rockies (NLR) is retiring the `nrel.gov` domain near the end of May and transitioning to the new `nlr.gov` domain.

**To avoid an interruption in service, you need to update your widget embed code to use the new `nlr.gov` URLs by May 29, 2026.** In your widget embed code, change `nrel.gov` to `nlr.gov` instead. All other aspects of the embed code remain the same.

To find new embed code, use the [widgets page](https://afdc.energy.gov/widgets). We will display a message at the top of widgets about this change for website owners who haven't updated their embed code starting on April 13, 2026.
15 changes: 10 additions & 5 deletions source/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,17 @@
<main id="content" class="container-xl">
<%= partial("layouts/breadcrumbs") %>

<div class="alert alert-warning d-flex align-items-center" role="alert">
<i class="fa-solid fa-triangle-exclamation bi flex-shrink-0 me-2"></i>
<p class="m-0 lh-sm">
<strong>Existing API users:</strong> Update any <code>developer.nrel.gov</code> references in your code to <code>developer.nlr.gov</code> by <strong>April 30, 2026</strong>, to avoid service interruptions. Learn more about the <%= link_to("domain transition", "/docs/nlr-domain-transition.html") %>.
<% unless current_page.data.hide_domain_transition_alert %>
<div class="alert alert-warning d-flex align-items-center" role="alert">
<i class="fa-solid fa-triangle-exclamation bi flex-shrink-0 me-2"></i>
<p class="m-0 lh-sm">
<strong>Existing API Users:</strong> Update any <code>developer.nrel.gov</code> references in your code to <code>developer.nlr.gov</code> by <strong>April 30, 2026</strong>, to avoid service interruptions.
<% unless current_page.data.hide_domain_transition_link %>
Learn more about the <%= link_to("domain transition", "/docs/nlr-domain-transition.html") %>.
<% end %>
</p>
</div>
</div>
<% end %>

<%= yield %>

Expand Down
Loading