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

advancing-every-dayChanges #307

Merged
merged 4 commits into from
May 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lintChanges
  • Loading branch information
shivangi1422 committed May 9, 2024
commit a1895fc8bfec2eccd5bf38cc144b7072a4858940
4 changes: 2 additions & 2 deletions blocks/anniversary-blogs/anniversary-blogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function truncateText(text, maxLength) {

function createAnniversaryBlogCard(post) {
const card = div({ class: 'blog-card' });
const image = div({ class: 'blog-card-content' },
const image = div(
{ class: 'blog-card-content' },
a({
href: post.path,
title: post.title,
Expand Down Expand Up @@ -55,7 +56,6 @@ function createAnniversaryBlogs(results, page = 1, pageSize = 10) {
}

function getAnniversaryBlogPages(pages, currentPageUrl) {
console.log(currentPageUrl);
const anniversaryBlogPages = [];
let count = 0;
for (let i = 0; i < pages.length && count < 3; i += 1) {
Expand Down
Loading