We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32592cb commit 05e913dCopy full SHA for 05e913d
pages/blog/_blogpost.vue
@@ -58,7 +58,7 @@ export default {
58
{
59
hid: "twitter:image",
60
name: "twitter:image",
61
- content: this.post.thumbnail
+ content: this.imageURL
62
}
63
]
64
};
@@ -72,6 +72,12 @@ export default {
72
// Once the component is mounted, we need to run Prism again to highlight the code blocks
73
mounted() {
74
Prism.highlightAll();
75
+ },
76
+ computed: {
77
+ // image will always return the correct URL for the thumbnail, both for development and once deployed
78
+ imageURL: function() {
79
+ return `${process.env.BASE_URL}${this.post.thumbnail}`
80
+ }
81
82
83
</script>
0 commit comments