Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/ravelloh/RTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
RavelloH committed Jan 21, 2025
2 parents 6307b0d + 280cc48 commit c722f9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/posts/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ function formatDate(dateStr) {

function createCategory(arr) {
const elements = arr.map((item, index) => (
<a key={2*index} href={'/categories/' + item.name}>
<a key={2 * index} href={'/categories/' + item.name}>
{item.name}
</a>
));
const joinedElements = elements.map((element, index) => {
if (index > 0) {
return [<span key={2*index+1}>/</span>, element];
return [<span key={2 * index + 1}>/</span>, element];
}
return element;
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/Noticebar.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use client';
import { useState, useEffect, useRef} from 'react';
import { useState, useEffect, useRef } from 'react';
import global from '@/assets/js/Global';
import '@/assets/css/Noticebar.css';
import notice from '@/utils/notice';
Expand Down

0 comments on commit c722f9d

Please sign in to comment.