Skip to content

Commit

Permalink
support author and pubDatetime as event time
Browse files Browse the repository at this point in the history
  • Loading branch information
shawn111 committed Nov 8, 2024
1 parent 0b51405 commit a6aaa3a
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface Props {
}

export default function Card({ href, frontmatter, secHeading = true }: Props) {
const { title, pubDatetime, modDatetime, description } = frontmatter;
const { title, pubDatetime, modDatetime, description, author } = frontmatter;
const ylink = "https://www.youtube.com/watch?v="+frontmatter.youtube;
//Astro.props;

Expand All @@ -27,9 +27,9 @@ export default function Card({ href, frontmatter, secHeading = true }: Props) {
className="inline-block text-lg font-medium text-skin-accent decoration-dashed underline-offset-4 focus-visible:no-underline focus-visible:underline-offset-0"
>
{secHeading ? (
<h2 {...headerProps}>{title}</h2>
<h2 {...headerProps}> {author} - {title}</h2>
) : (
<h3 {...headerProps}>{title}</h3>
<h3 {...headerProps}> {author} - {title}</h3>
)}
</a>

Expand Down
3 changes: 2 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const SITE: Site = {
lightAndDarkMode: true,
postPerIndex: 4,
postPerPage: 3,
scheduledPostMargin: 15 * 60 * 1000, // 15 minutes
//scheduledPostMargin: 15 * 60 * 1000, // 15 minutes
scheduledPostMargin: 30 * 24 * 60 * 60 * 1000, // 15 minutes
showArchives: true,
editPost: {
url: "https://github.com/kalug/kalug/edit/main/src/content/blog",
Expand Down
4 changes: 2 additions & 2 deletions src/content/blog/bootc.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: "[event 1130] TOOCON - bootc, a kind of bootable container"
pubDatetime: 2024-10-26
pubDatetime: 2024-10-26 20:20:00
slug: bootc
tags:
- meetup
- TOOCON
author: shawn
description: bootc, a kind of bootable container
youtube: Kq-21SuFyIs
hackmd: oBZXg0-RRyi86LZ1Y0S-_w
Expand Down
3 changes: 2 additions & 1 deletion src/content/blog/lets-meet-online.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "MOPCON - kalug.tw go online"
pubDatetime: 2024-10-26
pubDatetime: 2024-10-27T11:00:00+08
author: shawn
slug: lets-meet-online
tags:
- jitsi
Expand Down
5 changes: 3 additions & 2 deletions src/content/blog/meetup-2411.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: "[Event notice] KaLUG2411 Warp - AI terminal"
pubDatetime: 2024-10-27
pubDatetime: 2024-11-30T15:00:00+08
slug: meetup2411
author: tuna
tags:
- warp
- cli
Expand All @@ -24,4 +25,4 @@ Tuna 要分享 warp 這個工具,現在有 Mac/Linux 版本了, 帶AI的 termi
[![Warp demo](https://img.youtube.com/vi/34INSNevPOk/0.jpg)](https://www.youtube.com/watch?v=34INSNevPOk)


https://hackmd.io/@Tuna/rJb7iv0lyx
https://hackmd.io/@Tuna/rJb7iv0lyx
7 changes: 3 additions & 4 deletions src/content/blog/proxmox-ve-cli.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "1128 Proxmox VE CLI 工具"
pubDatetime: 2024-10-26
title: "1114 Proxmox VE CLI 工具"
pubDatetime: 2024-11-14T20:00:00+08
slug: proxmox-ve-cli
author: lloyd
tags:
Expand All @@ -9,7 +9,6 @@ description: proxmox
---



[![hackmd-github-sync-badge](https://hackmd.io/nak2PLqRTnyOJEwLiuAU-A/badge)](https://hackmd.io/nak2PLqRTnyOJEwLiuAU-A)


Expand All @@ -21,4 +20,4 @@ description: proxmox
link: https://meet.google.com/pxq-sdrw-ccr


https://pve.proxmox.com/wiki/Command_Line_Tools
https://pve.proxmox.com/wiki/Command_Line_Tools

0 comments on commit a6aaa3a

Please sign in to comment.