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

Dynamically loading the "whats new" #553

Merged
merged 5 commits into from
Feb 21, 2024

Conversation

dperrymorrow
Copy link
Contributor

@dperrymorrow dperrymorrow commented Jan 8, 2024

Dynamically loading "Whats New" features listed on developer site from the blog.

Belongs to: 691

Loading feed.json from the blog, filtering by "Feature" then displaying the first three posts under the "whats new" section on the homepage.

Previously this was done manually each time we released a new post about a feature.

QA:

  • navigate to site homepage
  • inspect whats new section, the anchor links and images should be coming from the blog

@dperrymorrow dperrymorrow added site-generator Static site generator bugs or changes. task One or more no-coding actions to execute for this project. labels Jan 8, 2024
@dperrymorrow dperrymorrow self-assigned this Jan 8, 2024
@dperrymorrow dperrymorrow marked this pull request as ready for review January 9, 2024 22:44
Copy link
Member

@sbastn sbastn left a comment

Choose a reason for hiding this comment

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

Works great! Just left a couple of question that are not blockers.

@@ -9,55 +9,55 @@ <h2 class="pv2 normal">Get your DNS hosting and domains set up and running quick
<div class="pv4 flex flex-wrap justify-center justify-start-ns">
<div class="text-centered mr3">
<a class="tc link dim" href="https://dnsimple.com/api/ruby?utm_source=developer&utm_medium=web&utm_content=cta-lang" target="_blank">
<img class="h2 w3" src="/assets/images/ruby.svg">
<img class="h2 w3" src="/assets/images/ruby.svg" />
Copy link
Member

Choose a reason for hiding this comment

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

Are all the /> changes done in purpose or is your IDE closing them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My IDE is closing them, but they should be closed no?

@@ -91,42 +91,47 @@ <h2 class="pa0 pb1">Popular articles</h2>
</div>
</div>

<% featured = blog_articles %>
Copy link
Member

Choose a reason for hiding this comment

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

Why do you alias blog_articles with featured instead of using blog_articles directly? Maybe blog_articles is not a good name? ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didnt want it to make the network request to the blog more than once. Not sure if that really matters since this is at compile time and not run time, but yeah...

Copy link

@laetitiaeden laetitiaeden left a comment

Choose a reason for hiding this comment

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

This is going to make our life easier

@weppos
Copy link
Member

weppos commented Feb 21, 2024

@dperrymorrow anything holding this PR to go live?

@dperrymorrow
Copy link
Contributor Author

dperrymorrow commented Feb 21, 2024

@dperrymorrow anything holding this PR to go live?

no, I was trying to do the same for the support site, but @sbastn and I were running into unexpected issues. Not sure if it makes sense to have support dynamic while still having to manually update support site.

Seb pointed out my IDE closed those <img> tags which should not be, they are auto-closing. I will make that change, and then it could merge.

@dperrymorrow dperrymorrow merged commit c3bb75e into main Feb 21, 2024
6 checks passed
@dperrymorrow dperrymorrow deleted the dperrymorrow/dynamic-whats-new branch February 21, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-generator Static site generator bugs or changes. task One or more no-coding actions to execute for this project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants