-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal links on site head #158
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something seems wrong with the demo page, see deployed demo, at the very bottom. https://deploy-preview-158--hugo-scroll.netlify.app/#github
Comment has been resolvedspi left a comment: Try to join the review on Netlify regarding issue #158 Browser metadata
|
additional space removed
leading '---' added
Added leading '---' to internal.md. Seems to work now - just the contacts button on the cover page leads to nowhere as the destination is missing. Will create a demo page... |
sample page created
@spi43984 If you go check the demo now, there are some outstanding issues
|
fair point - as there is already a contact section, will prepare another example, maybe legal or something
What was the error? Can you please give some more context?
The second line circumvents the first one and renders homepage content even it is an external link. Is there a combination possible like
Edit:
seems to do the trick... |
added nested where clause to render content only if: - external == nil and - internal_hide ne true
please review |
Looks good now, thanks!
Unable to reproduce the error, looks ok now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple suggestions regarding configuration property names to make them more obvious :)
I needed some links on the cover page to link to internal sites and not showing the leading fork awesome icon.
For some of these pages I also wanted to get the content still rendered on the homepage - for others not.
With these changes two parameters are introduced in the markdown files:
internal = the URL to link to
internal_hide = if true then do not render this markdown file (as a side-effect this works on all homepage markdown files to show or hide them)