Background
The academy-theme now provides an org-id shortcode (see layer5io/academy-theme#215) that dynamically extracts the organization UUID from the current learning-path page's directory path (learning-paths/{orgID}/...). It also provides a generic slack-invite shortcode at the theme level.
Current state
Content files in this repo call org-namespaced shortcodes, hardcoding the org UUID as part of the shortcode name:
{{< d011fd20-a3f5-4480-883b-dfb34321d168/slack-invite link="..." >}}
This creates a maintenance burden: if the UUID changes or the org directory is renamed, all content files referencing it break.
Requested change
Once academy-theme#215 is merged and the theme version is bumped in go.mod:
- Replace all occurrences of
{{< d011fd20-a3f5-4480-883b-dfb34321d168/slack-invite link="..." >}} with {{< slack-invite link="..." >}}
- Remove
layouts/shortcodes/d011fd20-a3f5-4480-883b-dfb34321d168/slack-invite.html if it exists locally (the theme now owns it)
- Use
{{< org-id >}} anywhere the UUID is needed as a text value in content
References
Background
The academy-theme now provides an
org-idshortcode (see layer5io/academy-theme#215) that dynamically extracts the organization UUID from the current learning-path page's directory path (learning-paths/{orgID}/...). It also provides a genericslack-inviteshortcode at the theme level.Current state
Content files in this repo call org-namespaced shortcodes, hardcoding the org UUID as part of the shortcode name:
This creates a maintenance burden: if the UUID changes or the org directory is renamed, all content files referencing it break.
Requested change
Once academy-theme#215 is merged and the theme version is bumped in
go.mod:{{< d011fd20-a3f5-4480-883b-dfb34321d168/slack-invite link="..." >}}with{{< slack-invite link="..." >}}layouts/shortcodes/d011fd20-a3f5-4480-883b-dfb34321d168/slack-invite.htmlif it exists locally (the theme now owns it){{< org-id >}}anywhere the UUID is needed as a text value in contentReferences