netlify is more reliable
This commit is contained in:
1 parent
7fe8f5d154
commit
4dfff986d4
16 files changed
+42
-105
No files matched your search
@@ -17,9 +17,8 @@ section
|
||||
import PostTeaser from './PostTeaser.vue'
|
||||
import Empty from './Empty.vue'
|
||||
import QParser from 'q2filter'
|
||||
import { normalizeArray, searchPosts } from '@/assets/util'
|
||||
import { normalizeArray, searchPosts, HASH } from '@/assets/util'
|
||||
import { Vue, Component, Prop, Watch } from 'nuxt-property-decorator'
|
||||
import { globalStore } from '../store'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -70,10 +69,10 @@ export default class PostQuery extends Vue {
|
||||
tag: this.tag,
|
||||
} : this.q,
|
||||
current: true,
|
||||
posts: await fetch(`/build/header/posts.json?h=${globalStore.hash.posts._header}`).then((r) => r.json()),
|
||||
posts: await fetch(`/build/header/posts.json?h=${HASH.posts._header}`).then((r) => r.json()),
|
||||
}).map(async (h) => {
|
||||
if (!h.teaser) {
|
||||
h.teaser = await fetch(`/build/teaser/${h.path}?h=${globalStore.hash.posts[h.path]}`).then((r) => r.text())
|
||||
h.teaser = await fetch(`/build/teaser/${h.path}?h=${HASH.posts[h.path]}`).then((r) => r.text())
|
||||
}
|
||||
return h
|
||||
}))
|
||||
|
||||
Reference in new issue
Block a user