-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Shortcode for AMP output not rendered on the fly #7448
Comments
Are you saying that it only shows the second time you start the server? Or do you mean that changes to the shortcode does not show unless it's restarted? If It's the latter, I thought we had tests for that... |
This one. |
I can confirm this — doesn't even trigger the live reload for me. Will test out the PR when it's merged and report back. :) |
I apologise for this. This used to work, but I broke it when making this "template dependency change" graph thing more general, which I guess all in all will be a good thing. On step forward. |
No worries at all, can confirm it now works perfectly for me on AMP templates so thanks! 👍 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
AMP shortcode isn't rendered unless Hugo is restarted.
config.toml
MD post
{{< figureimage src="/images/blog/blah.jpg" alt="Blah" href="https://blah.com/" site="blah.com" url="https://blah.com/" width="640" height="427" >}}
figureimage.html
<figure><img src="{{.Get
src}}" alt="{{.Get
alt}}"><figcaption>Photo by <a href="{{ .Get
href}}" target="_blank" rel="noopener noreferrer">{{ .Get
alt}}</a> on <a href="{{ .Get
url}}" target="_blank" rel="noopener noreferrer">{{ .Get
site}}</a></figcaption></figure>
figureimage.amp.html
<amp-img src="{{.Get
src}}" alt="{{.Get
alt}}" width="{{.Get
width}}" height="{{.Get
height}}"></amp-img>
The text was updated successfully, but these errors were encountered: