Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…lfinance into feature/homepage-bugfixes
  • Loading branch information
Vaibhav sasulkar committed Jul 23, 2024
2 parents b1134a6 + 15e3bea commit 75ea608
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions blocks/breadcrumb/breadcrumb.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const getPageTitle = async (url) => {
if (resp.ok) {
const html = document.createElement('div');
html.innerHTML = await resp.text();
return html.querySelector('title').innerText;
return html.querySelector('[name="page-name"]')?.getAttribute("content");
}

return '';
Expand All @@ -29,6 +29,7 @@ const getAllPathsExceptCurrent = async (paths, startLevel) => {
let pathVal = '';
// Excluding current link
for (let i = 0; i <= pathsList.length - 2; i += 1) {
// for (let i = 0; i <= pathsList.length - 1; i += 1) {
pathVal = `${pathVal}/${pathsList[i]}`;
let url = `${window.location.origin}${pathVal}`;
if (window.location.host.includes('author')) {
Expand Down Expand Up @@ -91,7 +92,7 @@ export default async function decorate(block) {
const currentPath = document.createElement('a');
currentPath.href = window.location.href;
// const currentTitle = document.querySelector('title').innerText;
const currentTitle = getMetadata("og:title")
const currentTitle = getMetadata("page-name")
currentPath.innerText = currentTitle.replace(' | Pricefx', '');
breadcrumbLinks.push(currentPath.outerHTML);
}
Expand Down
8 changes: 6 additions & 2 deletions styles/list-content/list-content.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@
}

.section.list-content-wrapper .default-content-wrapper p,
.section.types-of-interest-rates-wrapper .default-content-wrapper p ,
.section.list-content-wrapper .default-content-wrapper p > strong{
.section.types-of-interest-rates-wrapper .default-content-wrapper p {
font-size: 0.875rem;
line-height: 20px;
}
Expand All @@ -137,4 +136,9 @@
font-size: 1rem;
line-height: 24px;
}

.section.list-content-wrapper.about-us-text-bold .default-content-wrapper p > strong{
font-size: 0.875rem;
line-height: 20px;
}
}

0 comments on commit 75ea608

Please sign in to comment.