Skip to content
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

shortcodes don't seem to work #2

Closed
dch opened this issue Sep 5, 2014 · 3 comments
Closed

shortcodes don't seem to work #2

dch opened this issue Sep 5, 2014 · 3 comments

Comments

@dch
Copy link
Contributor

dch commented Sep 5, 2014

Not sure if this is PEBKAC, a theme issue or a hugo one, but adding parameter lookups such as {{ .Now.Year }} or {{ .Site.Params.title }} into the .md files doesn't render for me. See http://github.com/dch/blog/ for exact setup.

@zyro
Copy link
Owner

zyro commented Sep 5, 2014

According to this issue on the Hugo repo the Go templates syntax you're describing doesn't work in markdown.

Might be worth a shot defining your own shortcode like {{% site_title %}}, where layouts/shortcodes/site_title.html contains:

{{ .Page.Site.Title }}

@zyro
Copy link
Owner

zyro commented Sep 8, 2014

@dch Have you found a way around this?

@zyro
Copy link
Owner

zyro commented Nov 10, 2014

Issue is not in scope for themes, it's a Hugo problem. Closing.

@zyro zyro closed this as completed Nov 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants