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

Convert node app to github action #2

Merged
merged 1 commit into from
Sep 20, 2022
Merged

Conversation

marcosvafilho
Copy link
Collaborator

No description provided.

@@ -161,7 +157,7 @@ async function buildNewMarkup(data) {
let markup = `
<li id='${entry.node}' style='display: inline;' lazy='loaded'>
<div class='cover'>
<img src='${entry.cover.replace('src/', '')}' />
<img src='${entry.cover.replace('out/', '')}' />
Copy link
Owner

Choose a reason for hiding this comment

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

I don't get what this is doing. It's removing out from the entry.cover? Why it would out be there? (I see you using it at 144

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We need out while saving and checking the existence of covers because we're in the working dir, which is root. When adding image references to the new markup we need to remove out because the HTML file is already inside of out itself.

@marcosvafilho marcosvafilho merged commit 1057d33 into main Sep 20, 2022
@marcosvafilho marcosvafilho deleted the convert_to_github_action branch September 22, 2022 23:05
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