Skip to content

Commit

Permalink
use span instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Heinrich-XIAO committed Sep 27, 2024
1 parent cf7304b commit f2f7906
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/css/news.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ hr {
}

.news-post-date {
font-size: 1.5em;
font-size: 1.2em;
font-weight: 700;
}

2 changes: 1 addition & 1 deletion src/server/config/setupTranslations.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function loadTranslationsFolder(folder) {
const parsedHTML = marked.parse((fs.existsSync(fullPath) ?
fs.readFileSync(fullPath) :
fs.readFileSync(path.join(folder, 'news', getDefaultLanguage(), filePath))).toString()); // parsedHTML should be safe to be rendered
return "<div class='news-post'>"+"<div class='news-post-date'>"+format(parseISO(filePath.replace('.md','')),'MMMM d, yyyy:',{timeZone:'UTC'})+"</div>"+"<div class='news-post-markdown'>"+parsedHTML+"</div>"+"</div>";
return "<div class='news-post'>"+"<span class='news-post-date'>"+format(parseISO(filePath.replace('.md','')),'MMMM d, yyyy:',{timeZone:'UTC'})+"</span>"+"<div class='news-post-markdown'>"+parsedHTML+"</div>"+"</div>";
}).join('\n<hr>\n')
};
supportedLanguages.push(languageCode); // Add language to list of supportedLanguages
Expand Down

0 comments on commit f2f7906

Please sign in to comment.