-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
clean_duplicates() is now aware of blogdown rendering method #629
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.
Looks good to me. Thanks!
Testing:
I should note visual inspection shows only the md files left! One thing that does appear left behind are the |
[skip ci]
[skip ci]
Oh shoot you edited your comment... 🤕 Yes, So this would be a feature to add and test with the different scenario. I am guessing you are needing this because you convert a blog to use another method ? |
yes, I was trying to test a workflow for my Hugo Apero workshop to help convert over an existing academic site. Because of the choice I made with syntax highlighters, I was testing converting over a site (where the posts have no need for pandoc) to full markdown mode. I'll file to track! |
This should fix #628
@apreshill could you test this is working for you as expected ?
Code with
x1
,x2
,i1
,i2
is not always easy to understand at reading but I think I got it right.In case of duplicates (two files with same name and extension
.md
AND.html
), if an associated.Rmd
files exists then, ifblogdown.method
ismarkdown
,.html
is deleted, otherwise ( method html).md
.If this works, I'll add the new bullet.
Unit tests are not so easy with blogdown project - they often require a dummy project as in this case. 😟