Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove lastmod from sitemap for re-indexing #7812

Closed
wants to merge 16 commits into from
Closed
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
4 changes: 4 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ menu:
Identifier: "tools"
URL: "/services/"
Weight: 5
- Name: "Job Board"
Identifier: "job-board"
URL: "/job-board/"
Weight: 6

contribute:
- Name: "Write for us"
Expand Down
23 changes: 23 additions & 0 deletions content/job-board/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
# View this page at https://digital.gov/communities/...
# Learn how to edit our pages at https://workflow.digital.gov

slug: job-board
date: 2024-06-27 3:33:00 -0500
title: "Communities of Practice Job Board"
deck: "Discover CoP and technology-related job openings in the government gathered by our CoP members."
summary: "Discover CoP and technology-related job openings in the government, gathered by our CoP members."

# Redirects: enter the path of the URL that you want redirected to this page
aliases:
- /job-board/

# see all topics at https://digital.gov/topics
topics:
- professional-development

---

{{< job-board >}}


83 changes: 83 additions & 0 deletions data/job_board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---

- title: Translator
department: European Branch, Translating Division, Office of Language Services, Bureau of Administration (A/OPR/LS)
description: I wanted to pass along a job opening at the Department of State. The job is a GS13 English-to-Spanish translator opening on the listservs of the ATA GovDiv. It will be open from 07/11/2024 to 07/25/2024. Please feel free to share with your networks.
location: Washington, D.C.
open_date: 2024-07-11
close_date: 2024-07-25
apply_link: https://www.usajobs.gov/job/799283800
cop_topics:
- Multilingual

- title: Public Affairs Specialist
department: National Archives and Records Administration, Communications and Marketing Division
description: Looking for a position in public affairs? We have two new openings if you are interested.
location: Spanish Lake, MO
open_date: 2024-07-08
close_date: 2024-07-23
apply_link: https://www.usajobs.gov/job/798372900
cop_topics:
- Social Media

- title: Director of Communications
department: Department of Health and Human Services, Administration for Children and Families, Office of Communications
description: ACF is hiring-Communications Director (closing really soon)
location: Washington, DC
open_date: 2024-07-10
close_date: 2024-07-18
apply_link: https://www.usajobs.gov/job/798426700
cop_topics:
- Communicators

- title: Technical Writer-Editor (Scientific)
department: Department of Health and Human Services
location: Anywhere in the U.S. (remote job)
description: (Official position summary) This position is in the Communications Branch of the Office of Science Policy and Communications (OSPC) at the National Institute on Drug Abuse (NIDA), National Institutes of Health (NIH).
open_date: 2024-07-22
close_date: 2024-07-27
apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/798403100
cop_topics:
- Communicators

- title: Public Affairs Specialist (Social Media)
department: Department of Energy
location: Portland, Oregon
description: (Official position summary) This position is located in Digital Media & Visual Design (DKD) organization within Communications (DK), which reports to the Workforce and Strategy Office (D) of the Bonneville Power Administration (BPA) A successful candidate in the Public Affairs Specialist (Social Media) position will primarily focus on the development, co-development, review, and editing of web articles, social media posts, and other digital content in support of the agency's communication goals and strategies.
open_date: 2024-07-17
close_date: 2024-07-27
apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/800403600
cop_topics:
- Communicators
- Social Media

- title: Supv IT Specialist (Division Branch Manager)
department: Legislative Branch
location: Washington, District of Columbia
description: (Official position summary) The GAO is part of the Legislative Branch of the Federal government. This position is located in the Government Accountability Office. As a Supv IT Specialist (Division Branch Manager) you will be responsible for facilitating the vision, alignment, and execution of the designated division. This position is responsible for managing assigned resources (i.e. budget, people, contractor, space, equipment) effectively and within the level of responsibility assigned to the position.
open_date: 2024-07-17
close_date: 2024-08-01
apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/800295500
cop_topics:
- Web Managers

- title: PUBLIC AFFAIRS SPECIALIST
department: Other Agencies and Independent Organizations
location: Spanish Lake, Missouri
description: (Official position summary) This position is part of the National Archives and Records Administration, Communications and Marketing Division. The Communications and Marketing Division in general, and the employee communications team in particular, are responsible for a wide variety of techniques related to the planning, content development, writing/editing, design, and delivery of internal messages essential to the mission of the agency.
open_date: 2024-07-08
close_date: 2024-07-24
apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/798372900
cop_topics:
- Social Media

- title: PUBLIC AFFAIRS SPECIALIST
department: Other Agencies and Independent Organizations
location: Spanish Lake, Missouri
description: (Official position summary) This position is part of the National Archives and Records Administration, Communications and Marketing Division. The Communications and Marketing Division in general, and the employee communications team in particular, are responsible for a wide variety of techniques related to the planning, content development, writing/editing, design, and delivery of internal messages essential to the mission of the agency.
open_date: 2024-07-08
close_date: 2024-07-24
apply_link: https://www.usajobs.gov:443/GetJob/ViewDetails/798372600
cop_topics:
- Social Media

31 changes: 31 additions & 0 deletions themes/digital.gov/layouts/job-board/list.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{{ define "content" }}
{{ $job_board_page := ( .Site.Pages ) }}
<div class="paper">
<main role="main" id="main-content">
<div class="grid-container grid-container-desktop">
<div class="grid-row">
<div class="grid-col-12">
<header class="page-head page-head-{{- .Type -}}">
<h1>{{- .Title | markdownify -}}</h1>

{{/* Deck */}}
{{- if .Params.deck -}}
<h2 class="deck">{{- .Params.deck | markdownify -}}</h2>
{{- end -}}
<br />
<div>
{{ partial "core/usa-button.html" (dict "href" .RelPermalink "text" "Submit Job Posting") }}
</div>
</header>
</div>
</div>
</div>

<section class="stream">
<div class="grid-container grid-container-desktop">
{{ .Content }}
</div>
</section>
</main>
</div>
{{ end }}
67 changes: 67 additions & 0 deletions themes/digital.gov/layouts/shortcodes/job-board.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{{/* <!-- prettier-ignore -->
Communities of Practice Job Board Shortcode
Formats job posting information from "job-board.yml" into a table, as seen on Communities of Practice Job Board "job-board.md"
Add new job posting on "job-board.yml" to display in job posting table.
No params needed
*/}}

{{/* Dictionary used to convert CoP names to its acronym for style formatting */}}
{{ $acronymToCop := dict
"Communicators" "FCN"
"Multilingual" "ML"
"Plain Language" "PL"
"Social Media" "SM"
"User Experience" "UX"
"Web Analytics" "WAO"
"Web Managers" "WCM"
"Contact Center" "CC"
}}

{{ $now := now.Format "2006-01-02" }}
{{ $anyActivePost := false }}


<!-- This formats job postings into the DG blog style -->
{{ range .Site.Data.job_board }}
{{ if ge .close_date $now }}
{{ $anyActivePost = true }}
<article class="card card-job" aria-labelledby="{{ .title }}">
<div class="card__content">
<h3 id="{{ .title }}">{{- .title | markdownify -}}</h3>
<a
class="card__apply usa-button"
href="{{ .apply_link | safeURL }}"
target="__blank"
>
Apply
</a>
<div class="card__summary">
<div class="card__department">{{ .department | markdownify }}</div>
<div class="card__location">{{ .location | markdownify }}</div>
<p>{{ .description | markdownify }}</p>
</div>
</div>

<div class="card__meta">
<div class="date">
Open {{ .open_date | time.Format ":date_long" }} to
{{ .close_date | time.Format ":date_long" }}
</div>
{{ range .cop_topics }}
{{ $topic := . }}
{{ $acronym := index $acronymToCop $topic }}
<div class="cop-topic--{{ $acronym }}">
{{- $topic -}}
</div>
{{ end }}
</div>
</article>
{{ end }}
{{ end }}

{{ if not $anyActivePost }}
<div id="no_job_postings">
There are no active job postings at the moment. Please check back another
time.
</div>
{{ end }}
3 changes: 1 addition & 2 deletions themes/digital.gov/layouts/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{{ range .Data.Pages }}
<url>
<loc>https://digital.gov{{ .Permalink | relURL }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<loc>https://digital.gov{{ .Permalink | relURL }}</loc>{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
</url>
Expand Down
127 changes: 127 additions & 0 deletions themes/digital.gov/src/scss/new/_card-job.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
@use "uswds-core" as *;
@use "sass:map";

.paper {
@include u-bg("blue-warm-5");
@include u-padding-y(1);

@include at-media("tablet") {
@include u-padding-y(3);
}
}

.card.card-job {
align-items: start;
display: grid;
grid-template-areas:
"c-content c-content"
"c-meta c-meta";
grid-template-columns: auto 1fr;
position: relative;

.h3 {
margin: 0;
}
.card__apply {
position: absolute;
right: 0;
top: 1rem;
}

.card__summary {
@include u-margin-top(0);

p {
@include u-line-height("sans", 3);
@include u-font("sans", "md");
@include u-text("normal");

max-width: none;
}

.card__department {
@include u-font("sans", "xs");
}

.card__location {
@include u-font("sans", "xs");
}
}

.card__source {
@include u-margin-top("05");
@include u-display("block");

a {
@include u-color("blue-50v");

&::after {
content: "";

@include u-position("absolute");
@include u-top(0);
@include u-left(0);
@include u-right(0);
@include u-bottom(0);
}
}
}

.card__content {
@include at-media("tablet") {
grid-area: c-content;
}
}

.card__media {
@include u-square(7);

order: -1;

img {
@include u-border("1px", "gray-cool-10", "solid");
@include u-circle(7);

@include at-media("mobile-lg") {
@include u-circle(7);
}
}
}

$communities-of-practice: (
"FCN": color("magenta-50"),
"ML": color("red-50"),
"PL": color("blue-cool-60v"),
"SM": color("gold-40v"),
"UX": color("mint-cool-50"),
"WAO": color("orange-60"),
"WCM": color("indigo-60v"),
"CC": color("blue-60v"),
);

.card__meta {
grid-area: c-meta;
.date {
font-style: italic;
}

@each $community, $color in $communities-of-practice {
.cop-topic--#{$community} {
@include u-margin-top(0);
@include u-margin-right("105");
@include u-font("sans", "xs");
border: map.get($communities-of-practice, $community);
color: map.get($communities-of-practice, $community);
}
}
}
}

#no_job_postings {
@include u-margin-y(1);
@include u-font("sans", "lg");
@include u-text("light");
@include u-text("primary-darker");
@include u-line-height("sans", 2);
text-align: center;
}
1 change: 1 addition & 0 deletions themes/digital.gov/src/scss/new/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
@forward "card-article";
@forward "card-elsewhere";
@forward "card-event";
@forward "card-job";
@forward "article";
@forward "page-head";
@forward "news";
Expand Down