about summary refs log tree commit diff
path: root/pages/kronika/_year
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-28 19:35:17 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-28 19:35:17 +0100
commit0ed99e6c969119440b333cc961f4c312ee62731b (patch)
treed6673f4e8d91fc0e12f6e8a0966aedb36f96996f /pages/kronika/_year
parentab71fb6046e0f3bfb8f103af32ac4b5e821cc835 (diff)
downloadpuszcza-0ed99e6c969119440b333cc961f4c312ee62731b.tar.gz
puszcza-0ed99e6c969119440b333cc961f4c312ee62731b.zip
Fix path
Diffstat (limited to 'pages/kronika/_year')
-rw-r--r--pages/kronika/_year/_month/_day/_title/index.vue20
1 files changed, 10 insertions, 10 deletions
diff --git a/pages/kronika/_year/_month/_day/_title/index.vue b/pages/kronika/_year/_month/_day/_title/index.vue
index 8fdbf93..89ba794 100644
--- a/pages/kronika/_year/_month/_day/_title/index.vue
+++ b/pages/kronika/_year/_month/_day/_title/index.vue
@@ -21,19 +21,19 @@ export default {
           {
             hid: 'og:title',
             property: 'og:title',
-            content: this.attributes.title
+            content: this.attributes.title,
           },
           {
             hid: 'og:type',
             property: 'og:type',
-            content: 'article'
+            content: 'article',
           },
           {
             hid: 'og:article:author',
             property: 'og:article:author',
-            content: this.attributes.author
-          }
-        ]
+            content: this.attributes.author,
+          },
+        ],
       }
     }
   },
@@ -41,9 +41,9 @@ export default {
     const { year, month, day, title } = params
     const response = await axios
       .get(
-        `${window.location.origin}/api/posts/${year}/${month}/${day}/${title}.json`
+        `https://puszcza.netlify.com/api/posts/${year}/${month}/${day}/${title}.json`
       )
-      .catch(err => ({ notFound: true }))
+      .catch((err) => ({ notFound: true }))
 
     const post = response.data
 
@@ -52,14 +52,14 @@ export default {
     return {
       params,
       attributes: post.meta,
-      content: post.content
+      content: post.content,
     }
   },
   data() {
     return {
-      notFound: false
+      notFound: false,
     }
-  }
+  },
 }
 </script>