diff options
Diffstat (limited to 'src/components/Post.astro')
| -rw-r--r-- | src/components/Post.astro | 9 | 
1 files changed, 3 insertions, 6 deletions
| diff --git a/src/components/Post.astro b/src/components/Post.astro index 6805846..1aa7a0d 100644 --- a/src/components/Post.astro +++ b/src/components/Post.astro @@ -1,27 +1,24 @@  --- -import { creatorColor, formatTime } from '../lib/util'; +import { formatTime } from '../lib/util';  export interface Props {    id: string;    date: number; -  creator: string;    box: string;    board: string  } -const { id, date, creator, box, board = '' } = Astro.props; +const { id, date, box, board = '' } = Astro.props;  ---  <div class={box} id={id}>    <span style="line-height: 2rem;">      {(board != '') ? (        <a href=`/board/${board}/${id}` style="font-family: mono">{id}</a>      ) : ( -      <span style="font=family: mono">{id}</span> +      <span style="font-family: mono">{id}</span>      )}      at {formatTime(date)} <br> -    ->  <span style=`${creatorColor(creator)}; font-family: mono`> -      {creator}      </span> <br>    </span> <hr>    <slot /> | 
