Skip to content

Commit

Permalink
Improve searchability of redirect pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Dec 12, 2024
1 parent 5544a7b commit 557a76d
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 65 deletions.
2 changes: 1 addition & 1 deletion _articles/analytics-events.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Analytics Events"
description: "`events.log` structure and event descriptions"
description: Searchable list of IdP analytics events
layout: article
category: Reporting
redirect_to: https://lg-public.pages.production.gitlab.login.gov/identity-internal-handbook/articles/analytics-events.html
Expand Down
2 changes: 1 addition & 1 deletion _articles/incident-review-template.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Incident Review Template"
description:
description: A template document for incident reviews, outlining causes, a timeline of events, and action items
layout: article
category: "Development"
subcategory: Documentation
Expand Down
1 change: 1 addition & 0 deletions _articles/leave-guidance.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Leave Guidance
description: Reasons, types, and conventions around taking leave as a Login.gov Login.gov employee
layout: article
category: Team
subcategory: People Ops
Expand Down
1 change: 1 addition & 0 deletions _articles/offboarding.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Offboarding"
description: List of steps which must be completed when a person leaves the Login.gov program
layout: article
category: Team
subcategory: People Ops
Expand Down
1 change: 1 addition & 0 deletions _articles/onboarding.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Onboarding
description: List of steps to be completed when a person joins the Login.gov program
layout: article
category: Team
subcategory: People Ops
Expand Down
1 change: 1 addition & 0 deletions _articles/orgchart.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ title: "Org Chart"
layout: article
category: "Team"
subcategory: Team Organization
description: Login.gov's roster of team members and teams
redirect_to: https://docs.google.com/spreadsheets/d/1tiTR2ohdl0NIsrF4gJjNipEZ0z0oq1pOFWYjHg8Tbi0/edit#gid=0
---
1 change: 1 addition & 0 deletions _articles/overtime.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Overtime
description: Guidance around working overteam as a contractor or federal employee
layout: article
category: Team
subcategory: People Ops
Expand Down
62 changes: 0 additions & 62 deletions _articles/piv-ssh.md

This file was deleted.

1 change: 1 addition & 0 deletions _articles/platform-alerting.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
title: "Infrastructure Metrics and Alerting"
layout: article
category: Platform
description: Troubleshooting quick reference for infrastructure metrics and alerting, to analyze trends and track outages
redirect_to: https://gitlab.login.gov/lg/identity-devops/-/wikis/Troubleshooting-Quick-Reference#infrastructure-metrics
---
1 change: 1 addition & 0 deletions _layouts/category.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
exclude_from_index: true
---

{% capture content_markdown %}
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body {% unless page.exclude_from_index %}data-pagefind-body{% endunless %}>
<body {% unless page.exclude_from_index or layout.exclude_from_index %}data-pagefind-body{% endunless %}>
<header class="usa-header usa-header--extended">
<div class="usa-navbar">
<div class="usa-logo">
Expand Down
24 changes: 24 additions & 0 deletions _layouts/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Redirecting&hellip;</title>
<link rel="canonical" href="{{ page.redirect.to }}">
<script>location="{{ page.redirect.to }}"</script>
<meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
<meta name="robots" content="noindex">
</head>
<body>
<p>Redirecting&hellip;</p>
<a href="{{ page.redirect.to }}">Click here if you are not redirected.</a>

<div data-pagefind-body hidden>
<h1>{{ page.title }}</h1>
{% if page.description %}
<p>{{ page.description }}</p>
{% endif %}
</div>
</body>
</html>
Binary file removed images/piv-macos-dialog.png
Binary file not shown.
2 changes: 2 additions & 0 deletions spec/markdown_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def category_exists?(title)
expect(frontmatter).to be

aggregate_failures do
expect(frontmatter['description']).to be

category = frontmatter['category']
expect(category).to be
expect(category_exists?(category)).to be, "it links to a real category (#{category})"
Expand Down

0 comments on commit 557a76d

Please sign in to comment.