Skip to content

Commit af27b53

Browse files
authored
Fix links to static files and add blog post (#541)
1 parent ae0b054 commit af27b53

File tree

4 files changed

+79
-17
lines changed

4 files changed

+79
-17
lines changed

.github/ISSUE_TEMPLATE/blog-post.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,38 @@ labels: ["blog"]
66
assignees: []
77
---
88

9-
<!--
10-
Fill out the fields below as best you can. Don't worry about getting it perfect. Just bullet points is fine if that's all you have time / energy for.
11-
-->
9+
<!-- Do your best to fill this out. Just bullet points is fine! -->
1210

13-
### What happened
11+
### What happened?
1412

1513
- This happened
1614
- This happened
1715

18-
### Any pull quotes?
19-
20-
<!-- Pull quotes are the most impactful thing we can communicate! -->
21-
22-
### Why is it valuable
16+
### Why should we be excited about it?
2317

2418
- Because A
2519
- Because B
2620

27-
### Links to learn more
21+
### Where can we learn more?
2822

2923
- Link A
3024
- Link B
3125

26+
---
27+
28+
<!-- BONUS SECTION: These are optional, but super helpful if you have time! -->
3229
### Media and images
33-
<!-- (optional) Have any images we can use in the post? Drag and drop here! -->
30+
<!-- Drag/drop any images we can use in the post! -->
3431

3532

3633
### Acknowledgements
37-
<!-- (optional) acknowledgements for contributors, funders, or collaborators. -->
34+
<!-- Give a shout-out to any person or org that particularly helped. -->
35+
3836

39-
-
40-
-
37+
---
4138

39+
<!-- Ignore this part, it's just a checklist for us to follow-up on -->
40+
- [ ] Post published.
41+
- [ ] Shared on socials
42+
- [ ] Shared in the team Slack.
43+
- [ ] (If applicable) Emailed to the partner/community member who was featured.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ venv
66
.obsidian
77
_build
88
_vendor
9+
__pycache__
910
# Member logo cloud
1011
# These are generated by scripts/extract_org_logos.py
1112
content/members/images
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Community learning: Hub config to pass oauth tokens into user environments"
3+
date: 2025-11-06
4+
authors:
5+
- Chris Holdgraf
6+
categories:
7+
- community-impact
8+
tags:
9+
- open-source
10+
- community
11+
- learning
12+
- jupyterhub
13+
---
14+
15+
One of our favorite things to see: communities learning from and building on each other's work!
16+
17+
[MAAP](https://ops.maap-project.org/) recently [contributed infrastructure configuration](https://github.com/2i2c-org/infrastructure/pull/7068) inspired by [EarthScope's approach](https://github.com/2i2c-org/infrastructure/blob/0046e14a68d7af9e353c494ee6ad39beb0ce970a/config/clusters/earthscope/common.values.yaml#L29) to handling authentication tokens. Both communities need to pass OAuth tokens into user environments so their SDKs can access protected data - and MAAP adapted EarthScope's pattern to fit their needs.
18+
19+
This is the kind of peer-to-peer knowledge sharing we hope to foster with our [open infrastructure model](https://github.com/2i2c-org/infrastructure). When infrastructure is open and communities can see each other's solutions, they can adapt and build on proven approaches rather than starting from scratch.
20+
21+
## Learn more
22+
23+
- [MAAP's PR](https://github.com/2i2c-org/infrastructure/pull/7068) adapting the configuration
24+
- [EarthScope's original config](https://github.com/2i2c-org/infrastructure/blob/0046e14a68d7af9e353c494ee6ad39beb0ce970a/config/clusters/earthscope/common.values.yaml#L29)
25+
- [Our infrastructure repository](https://github.com/2i2c-org/infrastructure) where all community configurations live
26+
27+
## Acknowledgments
28+
29+
- [MAAP team](https://ops.maap-project.org/) for adapting and contributing this configuration
30+
- [EarthScope Consortium](/collaborators/earthscope/) for the original implementation

layouts/_default/_markup/render-link.html

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,35 @@
1010

1111
{{/* This is a custom link resolver that resolves both internal and external links, thanks to @cmd-ntrf for the helpful fix. */}}
1212

13-
<a {{ if strings.HasPrefix .Destination "http" }}href="{{ .Destination | safeURL }}" target="_blank" rel="noopener" {{ else if strings.HasPrefix .Destination "#" }}href="{{ .Destination | safeURL }}" {{ else }} href="{{ (.Page.GetPage .Destination).RelPermalink | safeURL }}" {{ end }} {{ with .Title}} title="{{ . }}"{{ end }}>
14-
{{- $title | safeHTML -}}
15-
</a>
13+
{{- $destination := "" -}}
14+
{{- if strings.HasPrefix .Destination "http" -}}
15+
{{- $destination = .Destination -}}
16+
<a href="{{ $destination | safeURL }}" target="_blank" rel="noopener" {{ with .Title}} title="{{ . }}"{{ end }}>
17+
{{- $title | safeHTML -}}
18+
</a>
19+
{{- else if strings.HasPrefix .Destination "#" -}}
20+
{{- $destination = .Destination -}}
21+
<a href="{{ $destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }}>
22+
{{- $title | safeHTML -}}
23+
</a>
24+
{{- else -}}
25+
{{- /* Try to get as a page first, otherwise treat as a resource */ -}}
26+
{{- $page := .Page.GetPage .Destination -}}
27+
{{- if $page -}}
28+
<a href="{{ $page.RelPermalink | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }}>
29+
{{- $title | safeHTML -}}
30+
</a>
31+
{{- else -}}
32+
{{- /* It's a resource like an image, PDF, or SVG - use relative path or relURL */ -}}
33+
{{- if strings.HasPrefix .Destination "/" -}}
34+
{{- $destination = .Destination -}}
35+
{{- else if strings.HasPrefix .Destination "./" -}}
36+
{{- $destination = printf "%s%s" .Page.RelPermalink (strings.TrimPrefix "./" .Destination) -}}
37+
{{- else -}}
38+
{{- $destination = printf "%s%s" .Page.RelPermalink .Destination -}}
39+
{{- end -}}
40+
<a href="{{ $destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }}>
41+
{{- $title | safeHTML -}}
42+
</a>
43+
{{- end -}}
44+
{{- end -}}

0 commit comments

Comments
 (0)