butiran

shortcode link/gh

· 1 min read

shortcode

{{ $parts := split (index .Params 0) "." }}
{{ $repo := index $parts 0 }}
{{ $folder := index $parts 1 }}
<a href="https://github.com/dudung/
{{ $repo }}/blob/main/{{ $folder }}/
README.md" target="_blank" rel="noopener">
  <code>{{ $repo }}.{{ $folder }}</code>
</a>

usage

{{< link/gh 25g72.01 >}}
25g72.01

notes

  • There is discussion in developing the shortcode 1.

refs


  1. GPT-4o, “Shortcode vs Full URL”, ChatGPT, 26 Jul 2025, url https://chatgpt.com/share/688422f9-c880-800a-86df-6a10c6c8a237 [20250726]. ↩︎