Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lukefretwell committed Jan 8, 2024
1 parent 89c3c96 commit 304a73a
Show file tree
Hide file tree
Showing 947 changed files with 44,661 additions and 24,015 deletions.
Binary file modified .DS_Store
Binary file not shown.
18 changes: 17 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ permalink: /404.html
books-number: 7
dm-number: &dm-number 5
labs-number: 3
podcast-number: &podcast-number 4
research-number: &research-number 4
thoughts-number: &thoughts-number 9

Expand Down Expand Up @@ -122,6 +123,15 @@ defaults:
parent: "labs"
layout: "profile"
short: "true"
- scope:
path: "_podcast"
type: "podcast"
values:
folder: "Podcast"
img-path: "people"
parent: "podcast"
layout: "podcast"
short: "true"

# Collections
collections:
Expand Down Expand Up @@ -149,6 +159,9 @@ collections:
people:
output: true
permalink: people/:title
podcast:
output: true
permalink: podcast/:title
topics:
output: true
permalink: topics/:title
Expand All @@ -168,7 +181,10 @@ order:
-
name: research
number: *research-number

-
name: podcast
number: *podcast-number

# Exclude
exclude:
- gemfiles/
Expand Down
6 changes: 3 additions & 3 deletions _data/menu-content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ docs:
- title: DM
url: /dm/

- title: Podcast
url: /podcast

- title: Research
url: /research/

- title: Podcast
url: https://podcast.govfresh.com

- title: Signal
url: /signal/

Expand Down
6 changes: 3 additions & 3 deletions _data/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ docs:
- title: DM
url: /dm/

- title: Podcast
url: /podcast/

- title: Research
url: /research/

- title: Podcast
url: https://podcast.govfresh.com

- title: Community
url: /community/

Expand Down
18 changes: 0 additions & 18 deletions _data/podcast.yml

This file was deleted.

14 changes: 14 additions & 0 deletions _data/subscribe-podcast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
docs_list_title: subscribe-podcast
docs:

- title: Apple Podcasts
url: https://podcasts.apple.com/us/podcast/the-govfresh-podcast/id1468169431
img: assets/img/logos/apple-podcasts.png

- title: Spotify
url: https://open.spotify.com/show/7jZIZh0oxJeq9jPheo9eJq
img: assets/img/logos/spotify.png

- title: Pocket Casts
url: https://pca.st/WQa8
img: assets/img/logos/pocket-casts.png
45 changes: 45 additions & 0 deletions _includes/card-podcast.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% if include.level == "secondary" %}
<div class="col-12 col-sm-12 col-md-6 col-lg-4 col-xl-4 d-flex align-items-stretch">
<div class="card mb-3">
<div class="card-body">
{% if item.feat-img %}
<img
src="{{ site.baseurl }}/assets/img/people/{{ item.feat-img }}"
alt="{{ item.title }}"
class="md rounded-circle mb-3">
{% endif %}
<h3 class="h4">
<a href="{{ site.baseurl }}{{ item.url }}" class="stretched-link link-primary link-offset-3 link-underline-opacity-0 link-underline-opacity-0-hover">
{{ item.title }}
</a>
</h3>
</div>
{% if item.number %}
<div class="card-footer text-body-secondary small">
Episode #{{ item.number }}</div>
{% endif %}
</div>
</div>
{% else %}
<div class="col-12 col-sm-12 col-md-6 col-lg-4 col-xl-4 d-flex align-items-stretch">
<div class="card mb-3">
<div class="card-body">
{% if item.feat-img %}
<img
src="{{ site.baseurl }}/assets/img/people/{{ item.feat-img }}"
alt="{{ item.title }}"
class="md rounded-circle mb-3">
{% endif %}
<h3 class="h4">
<a href="{{ site.baseurl }}{{ item.url }}" class="stretched-link link-primary link-offset-3 link-underline-opacity-0 link-underline-opacity-0-hover">
{{ item.title }}
</a>
</h3>
</div>
{% if item.number %}
<div class="card-footer text-body-secondary small">
Episode #{{ item.number }}</div>
{% endif %}
</div>
</div>
{% endif %}
25 changes: 12 additions & 13 deletions _includes/cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
{% include card-books.html %}
{% assign amount = amount | plus: 1 %}
{% endif %}
{% if title != item.title %}
{% endif %}
{% endfor %}
</div>
</div>
Expand Down Expand Up @@ -105,21 +103,22 @@
{% endif %}
{% endfor %}
</div>
{% elsif pull == "dm" %}
<!-- DM -->
{% elsif pull == "podcast" %}
<!-- Podcast -->
<!-- Podcast secondary -->
<div class="card-group">
{% unless title == "Government. Fresh." or page.short == "true" %}
{% assign limit = site.dm | size | plus: 2 %}
{% else %}
{% assign limit = site.dm-number | plus: 0 %}
{% endunless %}
{% assign limit = site.podcast-number | plus: 0 %}
{% assign amount = 1 %}
{% for item in site.dm reversed %}
{% if item.title != page.title and limit > amount %}
{% include card-dm.html %}
{% for item in site.podcast reversed %}
{% if limit > amount and title != item.title and page.short == "true" or title == "Government. Fresh." %}
{% include card-podcast.html level = "secondary" %}
{% assign amount = amount | plus: 1 %}
<!-- Podcast primary -->
{% elsif page.short != "true" and title != "Government. Fresh." %}
{% include card-podcast.html %}
{% assign amount = amount | plus: 1 %}
{% endif %}
{% endfor %}
</div>
{% endif %}
</div></div>
</div>
57 changes: 57 additions & 0 deletions _includes/jumbotron.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,63 @@ <h1 class="display-4">{{ page.title }}</h1>
</div>
</div>
</div>
{% elsif page.layout == "podcast" %}
<div class="pt-5 pb-4 mb-2">
<!-- Audio player -->
<div class="container">
<div class="row">
<div class="col-sm-12">
<h1 class="display-4">{{ page.title }}</h1>
</div>
</div>
<div class="row">
<div class="col-sm-8">
{% if page.description %}
<p class="lead">{{ page.description }} {% include tgwn.html %}</p>
{% endif %}
{% if page.audio %}
<script src="{{ site.baseurl }}/js/plyr.js"></script>
<audio id="player" controls>
<source src="{{ page.audio }}" type="audio/mp3">
</audio>
<script>
const plyr = new Plyr('audio', {
controls: [
'play',
'progress',
'current-time',
'duration',
'mute',
'volume'
]
});
</script>
{% endif %}
</div>
<div class="col-sm-4"></div>
</div>
{% if page.number %}
<div class="row">
<div class="col-sm-6">
<div class="no-underline">
{% for subscribe in site.data.subscribe-podcast.docs %}
<a href="{{ subscribe.url }}" class="mr-5 link-primary link-underline-opacity-0 link-underline-opacity-0-hover">
<img
src="{{ site.baseurl }}/{{ subscribe.img }}"
alt="{{ subscribe.title }}"
class="xxs">
</a>
{% endfor %}
</div>
</div>
<div class="col-sm-6 text-right">
<p class="small text-body-secondary">Episode #{{ page.number }} / {{ page.date | date: "%B %-d, %Y" }}
</p>
</div>
</div>
{% endif %}
</div>
</div>
{% elsif page.layout == "labs" %}
<div class="pt-5 pb-4 mb-2">
<div class="container">
Expand Down
21 changes: 7 additions & 14 deletions _includes/previews.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@
{% assign show = "true" %}
<h2>{{ loop.title }}</h2>
<p class="lead">{{ loop.description }}</p>
{% if true %}
{% include cards.html page=loop.parent page-title=title %}
{% endif %}
<a href="{{ site.baseurl }}/{{ page.parent }}" class="btn btn-primary btn-bd-primary btn-sm">{{ loop.title
}}</a>
{% include cards.html page=loop.parent page-title=title %}
<a href="{{ site.baseurl }}/{{ page.parent }}" class="btn btn-primary btn-bd-primary btn-sm">{{ loop.title }}</a>
</div>
{% endif %}
{% else %}
Expand All @@ -21,23 +18,19 @@ <h2>{{ loop.title }}</h2>
<p class="lead">{{ loop.description }}</p>
{% assign page = loop %}
{% include cards.html page-title=title %}
<a href="{{ site.baseurl }}/{{ page.parent }}" class="btn btn-primary btn-bd-primary btn-sm">{{ loop.title
}}</a>
<a href="{{ site.baseurl }}/{{ page.parent }}" class="btn btn-primary btn-bd-primary btn-sm">{{ loop.title }}</a>
</div>
{% endif %}
{% endfor %}
{% endfor %}
</div>
<script>
if (
!document
.querySelector("div.cards-include > div.card-group")
.innerHTML
.includes("<")
<!--
<script> if ( !document .querySelector("div.cards-include > div.card-group") .innerHTML .includes("<")
) {
document
.querySelector(".preview-include")
.style
.display = "none";
}
</script>
</script>
-->
26 changes: 26 additions & 0 deletions _includes/subscribe-podcast.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<div class="container border-top mt-5 pt-5 pb-5">
<div class="row">
<div class="col-sm-12">
<h2>Subscribe</h2>
<div class="card-group">
{% for subscribe-podcast in site.data.subscribe-podcast.docs %}
<div class="col-12 col-sm-12 col-md-4 col-lg-4 col-xl-4 d-flex align-items-stretch">
<div class="card">
<div class="card-body text-center">
<img
src="{{ site.baseurl }}/{{ subscribe-podcast.img }}"
class="xxs"
alt="{{ subscribe-podcast.title }}">
<h3 class="h5">
<a href="{{ subscribe-podcast.url }}" class="stretched-link link-primary link-underline-opacity-0 link-underline-opacity-0-hover">
{{ subscribe-podcast.title }}
</a>
</h3>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
3 changes: 3 additions & 0 deletions _includes/tgwn.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% if page.tgwn %}
<em>Note: This is an episode of The Government We Need, what is now The GovFresh Podcast.</em>
{% endif %}
19 changes: 0 additions & 19 deletions _labs/cdo-playbook.md

This file was deleted.

8 changes: 4 additions & 4 deletions _labs/usa-govfresh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title: "USA.GovFresh"
shortname: "USA.GovFresh"
description: "Re-imagining USA.gov."
img-feat: code-feat.png
img-og: code-og.png
img-twitter: code-twitter.png
img-alt: "Code icon"
img-feat: usa-govfresh.png
img-og: usa-govfresh.png
img-twitter: usa-govfresh.png
img-alt: "U.S. flag"
website: https://usa.govfresh.com/
github: https://github.com/govfresh/usa
category:
Expand Down
Loading

0 comments on commit 304a73a

Please sign in to comment.