Fixed blog list
This commit is contained in:
parent
2336254a00
commit
8038088422
1 changed files with 3 additions and 1 deletions
|
@ -39,11 +39,13 @@ async function fetchData() {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
|
||||||
try {
|
try {
|
||||||
data.value = await (await fetch(url.value)).text()
|
data.value = await (await fetch("/blog" + url.value)).text()
|
||||||
|
console.log(url.value)
|
||||||
const processed = fm(data.value)
|
const processed = fm(data.value)
|
||||||
background.value = processed.attributes.background
|
background.value = processed.attributes.background
|
||||||
title.value = processed.attributes.title
|
title.value = processed.attributes.title
|
||||||
description.value = processed.attributes.description
|
description.value = processed.attributes.description
|
||||||
|
console.log(JSON.stringify(processed.attributes.date))
|
||||||
date.value = processed.attributes.date
|
date.value = processed.attributes.date
|
||||||
tags.value = processed.attributes.tags
|
tags.value = processed.attributes.tags
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue