Skip to content

Article shortcode to branch-bundled page #1931

Closed Answered by thirstythurston
thirstythurston asked this question in Q&A
Discussion options

You must be logged in to vote

oh I found an answer after a bit of digging and testing. I am not quite sure how to request a change formally so if you don't mind I'll put it here and if someone can respond with helping me figure out a better way to suggest an answer that would be really good.

anyway the solution to this is the article shortcode in blowfish under:
layouts\shortcodes\article.html

the section that iterates over articles and checks if the reference is linking to it's self is:
{{ $RelPermalink := .Get "link" }}
{{ range ( where .Site.RegularPages "RelPermalink" $RelPermalink | first 1 ) }}

Well .Site.RegularPages only returns leaf pages I believe. if that is changed to

{{ $RelPermalink := .Get "link" }}
{{ …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thirstythurston
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant