From 30f9448d724b572b0cd7bef2a1b941e02b8dd24d Mon Sep 17 00:00:00 2001 From: Hippo Date: Tue, 24 Dec 2019 15:06:27 +0530 Subject: [PATCH] Change GhostPage template to a symlink Because that's what it is. No point updating the same content twice in different files :P The reason is, Gridsome needs GhostPage to exist so the page gets a valid path, but doesn't actually use it because it loads GhostPost first. We could technically leave GhostPage as an empty file, but if the order changes someday and GhostPage starts getting prioritised over GhostPost we'll be in a mess. Might as well keep ourselves covered. --- src/templates/GhostPage.vue | 166 +----------------------------------- 1 file changed, 1 insertion(+), 165 deletions(-) mode change 100644 => 120000 src/templates/GhostPage.vue diff --git a/src/templates/GhostPage.vue b/src/templates/GhostPage.vue deleted file mode 100644 index 7da6653..0000000 --- a/src/templates/GhostPage.vue +++ /dev/null @@ -1,165 +0,0 @@ - - - - - query Post ($path: String!) { - post: ghostPost (path: $path) { - id - title - path - date: published_at (format: "D. MMMM YYYY") - tags { - id - slug - path - title: name - belongsTo { - edges { - node { - ... on GhostPost { - id - title - path - } - } - } - } - } - authors { - name - id - slug - image: profile_image - } - description: excerpt - content: html - image: feature_image - } - page: ghostPage (path: $path) { - id - title - path - date: updated_at (format: "D. MMMM YYYY") - description: excerpt - content: html - } - } - diff --git a/src/templates/GhostPage.vue b/src/templates/GhostPage.vue new file mode 120000 index 0000000..5d16ec6 --- /dev/null +++ b/src/templates/GhostPage.vue @@ -0,0 +1 @@ +./GhostPost.vue \ No newline at end of file