diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-01-27 17:53:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-27 17:53:19 +0100 |
commit | 4f5d597cf08a609e64741b0fdaf16577284249ba (patch) | |
tree | 6fe224aac15e46ed4f527b12b86fdac7ab376b29 /pages/kronika | |
parent | 6a87f4d381bb43bea3a2b64ea930d4f46783e22c (diff) | |
parent | 3c2ac6715dfffc2eda38e014ed0b4986ccc7f75a (diff) | |
download | puszcza-4f5d597cf08a609e64741b0fdaf16577284249ba.tar.gz puszcza-4f5d597cf08a609e64741b0fdaf16577284249ba.zip |
Merge pull request #25 from 19pdh/develop
Camp & images
Diffstat (limited to 'pages/kronika')
-rw-r--r-- | pages/kronika/_year/_month/_day/_title/index.vue | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/pages/kronika/_year/_month/_day/_title/index.vue b/pages/kronika/_year/_month/_day/_title/index.vue index 9fab1d0..331ed7a 100644 --- a/pages/kronika/_year/_month/_day/_title/index.vue +++ b/pages/kronika/_year/_month/_day/_title/index.vue @@ -5,6 +5,12 @@ <p>Nie znaleziono wpisu</p> </div> <section v-else class="article"> + <img + v-if="attributes.image" + :src="attributes.image" + :alt="attributes.title" + :title="attributes.title" + /> <article class="content" v-html="content"></article> </section> </div> @@ -22,19 +28,24 @@ 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, + }, + { + hid: 'og:image', + property: 'og:image', + content: this.attributes.image, + }, + ], } }, async asyncData({ params }) { @@ -46,14 +57,14 @@ export default { return { params, attributes: post.content.meta, - content: post.content.html + content: post.content.html, } }, data() { return { - notFound: false + notFound: false, } - } + }, } </script> @@ -69,7 +80,8 @@ export default { } .article img { width: 100%; - border-radius: 5px; + /*border-radius: 5px;*/ + box-shadow: inset 0px 0px 100px rgba(0, 0, 0, 0.25); } .article h1 { |