Skip to content

Commit f807850

Browse files
authored
Merge pull request #459 from NatLabRockies/widget-embed-code
add a page about updating embed code for NLR.gov widgets
2 parents cbc68a7 + 94652a4 commit f807850

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

source/docs/nlr-domain-transition.html.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: NLR.gov Domain Transition
33
hidden_child: true
4+
hide_domain_transition_link: true
45
---
56

67
# NLR.gov Domain Transition
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Updating Embed Code for NLR.gov Widgets
3+
hidden_child: true
4+
hide_domain_transition_alert: true
5+
---
6+
7+
<div class="alert alert-warning d-flex align-items-center" role="alert">
8+
<i class="fa-solid fa-triangle-exclamation bi flex-shrink-0 me-2"></i>
9+
<p class="m-0 lh-sm">
10+
<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.
11+
</p>
12+
</div>
13+
14+
# Updating Embed Code for NLR.gov Widgets
15+
16+
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.
17+
18+
**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.
19+
20+
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.

source/layouts/layout.erb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,17 @@
3434
<main id="content" class="container-xl">
3535
<%= partial("layouts/breadcrumbs") %>
3636

37-
<div class="alert alert-warning d-flex align-items-center" role="alert">
38-
<i class="fa-solid fa-triangle-exclamation bi flex-shrink-0 me-2"></i>
39-
<p class="m-0 lh-sm">
40-
<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") %>.
37+
<% unless current_page.data.hide_domain_transition_alert %>
38+
<div class="alert alert-warning d-flex align-items-center" role="alert">
39+
<i class="fa-solid fa-triangle-exclamation bi flex-shrink-0 me-2"></i>
40+
<p class="m-0 lh-sm">
41+
<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.
42+
<% unless current_page.data.hide_domain_transition_link %>
43+
Learn more about the <%= link_to("domain transition", "/docs/nlr-domain-transition.html") %>.
44+
<% end %>
45+
</p>
4146
</div>
42-
</div>
47+
<% end %>
4348

4449
<%= yield %>
4550

0 commit comments

Comments
 (0)