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

Handle Avada custom post types #51

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

aurelienpierre
Copy link
Contributor

Avada (https://avada.com/) is a WP theme claiming close to 1 million clients. It achieved this by being a one-size-fits-all Swiss army knife, based on a page builder and dozens of shortcodes. As such, it has become unbearably bloated and slow over years. Meaning it's a natural candidate to decluttering and Hugo migraton.

Here I introduce generic support for 2 custom post types (portfolio and FAQ). I think it would be a good idea to let users apply the same code path to any arbitrary post type they want, defined as argument when calling wp2hugo from CLI

@@ -228,6 +235,22 @@ func (p *Parser) getWebsiteInfo(feed *rss.Feed, authors []string) (*WebsiteInfo,
}
posts = append(posts, *post)
}
case "avada_portfolio", "avada_faq":
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: add a link to avada here

@ashishb
Copy link
Owner

ashishb commented Sep 12, 2024

Thanks for the contribution.
Fix the lint issues and I will merge it in.

Avada (https://avada.com/) is a WP theme claiming close to 1 million clients. It achieved this by being a one-size-fits-all Swiss army knife, based on a page builder and dozens of shortcodes. As such, it has become unbearably bloated and slow over years. Meaning it's a natural candidate to decluttering and Hugo migraton.

Here I introduce generic support for 2 custom post types (portfolio and FAQ). I think it would be a good idea to let users apply the same code path to any arbitrary post type they want, defined as argument when calling wp2hugo from CLI
@ashishb
Copy link
Owner

ashishb commented Sep 13, 2024

Fix the lint issues and I will merge it in.

I fixed the formatting issues.

@ashishb ashishb merged commit 52cf24e into ashishb:main Sep 13, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants