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

figure out how to handle image shortcodes #2

Open
afeld opened this issue May 22, 2019 · 3 comments
Open

figure out how to handle image shortcodes #2

afeld opened this issue May 22, 2019 · 3 comments

Comments

@afeld
Copy link
Member

afeld commented May 22, 2019

Need to replace the !!img1!!s, etc. Can try to do so at import time or build time. The former is probably easier.

https://gohugo.io/content-management/image-processing/

@dmgig
Copy link

dmgig commented May 23, 2019

One thing comes to mind - we have code running in production which converts those !!imgX!! tags to our WordPress-style shortcodes for old and new article templates alike.

Maybe it makes sense to process everything in the database and resave - converting them all permanently?

@dmgig
Copy link

dmgig commented May 23, 2019

Seems like after that, the only issue is converting the [gallery id="123" size="medium"] to {{< gallery id="123" size="medium" >}}?

@afeld
Copy link
Member Author

afeld commented May 24, 2019

Yep yep, that's what I meant by "at import time".

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