0052
This commit is contained in:
1 parent
d664326648
commit
612cafe5ad
6 files changed
+22
-7
No files matched your search
@@ -78,8 +78,7 @@ export default function HomePage() {
|
||||
|
||||
const handlePreview = async (slug: string) => {
|
||||
await fetch("/api/hugo");
|
||||
const previewBase = `${location.protocol}//${location.hostname}:1313`;
|
||||
window.open(`${previewBase}/${slug}.html`, "_blank");
|
||||
window.open(`/preview/${slug}.html`, "_blank");
|
||||
};
|
||||
|
||||
const toggleSelect = (slug: string) => {
|
||||
|
||||
Reference in new issue
Block a user