Added work portfolio
This commit is contained in:
@@ -4,7 +4,7 @@ description: "An AR cloud content management system"
|
||||
date: "2024"
|
||||
demoURL: "/quickviewdemo"
|
||||
---
|
||||
import { Tweet, Vimeo, YouTube } from 'astro-embed';
|
||||
import { Tweet, Vimeo, YouTube, LinkPreview } from 'astro-embed';
|
||||
import DevIcon from 'devicons-astro';
|
||||
|
||||
<YouTube id="tRZPLgZB_II" />
|
||||
|
||||
@@ -14,6 +14,7 @@ export function formatDate(date: Date) {
|
||||
}
|
||||
|
||||
export function readingTime(html: string) {
|
||||
if (!html) return "1 min read";
|
||||
const textOnly = html.replace(/<[^>]+>/g, "");
|
||||
const wordCount = textOnly.split(/\s+/).length;
|
||||
const readingTimeMinutes = ((wordCount / 200) + 1).toFixed();
|
||||
|
||||
Reference in New Issue
Block a user