Skip to content
Open
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,5 @@ scripts/alias-verification/historical-aliases-correct.txt
scripts/alias-verification/historical-aliases-missing.txt
scripts/alias-verification/historical-aliases-report.txt
scripts/alias-verification/historical-fixes.json

**/gpu-dra-demo/**
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,278 changes: 1,278 additions & 0 deletions content/blog/pulumi-eks-dynamic-resource-allocation/index.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions layouts/shortcodes/github-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,24 @@

Usage:
{{< github-card repo="owner/repo" >}}
{{< github-card repo="owner/repo" path="tree/master/example-folder" >}}

Parameters:
- repo (required): The GitHub repository in "owner/repo" format
- path (optional): Additional path within the repo (e.g., "tree/master/folder-name")
*/}}

{{ $repo := .Get "repo" }}
{{ $path := .Get "path" }}

{{ if $repo }}
<a href="https://github.com/{{ $repo }}" target="_blank" rel="noopener noreferrer" class="github-card">
{{ $linkUrl := printf "https://github.com/%s" $repo }}
{{ $displayUrl := printf "github.com/%s" $repo }}
{{ if $path }}
{{ $linkUrl = printf "https://github.com/%s/%s" $repo $path }}
{{ $displayUrl = printf "github.com/%s/%s" $repo $path }}
{{ end }}
<a href="{{ $linkUrl }}" target="_blank" rel="noopener noreferrer" class="github-card">
<img
src="https://opengraph.githubassets.com/1/{{ $repo }}"
alt="GitHub repository: {{ $repo }}"
Expand All @@ -24,7 +33,7 @@
<div class="github-card-content">
<div class="github-card-domain">
<i class="fab fa-github github-card-icon"></i>
github.com/{{ $repo }}
{{ $displayUrl }}
</div>
</div>
</a>
Expand Down
Loading