Commit a85517b2 authored by Stephan Plöhn's avatar Stephan Plöhn

[Posts] Changed posts and image animation

parent 89096a1c
......@@ -14,7 +14,7 @@
<div v-html="post.text"></div>
<div v-if="post.images" class="[email protected]" data-uk-grid uk-lightbox="animation: scale"
data-uk-scrollspy="cls: uk-animation-scale-down; target: .post_gallery__item; delay: 300; repeat: true">
data-uk-scrollspy="cls: uk-animation-slide-bottom-small; target: .post_gallery__item; delay: 300; repeat: true">
<a v-for="image in post.images" v-bind:key="image.id" :href="image.directus_files_id.data.thumbnails[7].url"
:title="image.directus_files_id.title" :data-caption="image.directus_files_id.title" data-type="image"
class="post_gallery__item">
......
......@@ -3,7 +3,7 @@
<h1>{{ title }}</h1>
<div class="posts"
data-uk-scrollspy="cls: uk-animation-slide-left-small; target: .posts_article; delay: 300; repeat: true">
data-uk-scrollspy="cls: uk-animation-slide-bottom-small; target: .posts_article; delay: 300; repeat: true">
<article v-for="post in posts" v-bind:key="post.slug" class="posts_article">
<div class="posts_date">
<time :datetime="post.published_on">{{ post.published_on | moment }}</time>
......@@ -39,6 +39,10 @@ var moment = require('moment')
export default {
async asyncData ({ route, app, params, error }) {
/**
* @TODO: I can't click on Posts in the Sidebar when tag is active as a GET parameter
*/
var query = '?filter[is_page][empty]&fields=title,slug,published_on,image.*,intro,is_page&sort=-published_on'
if (route.query.tag) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment