Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Stavroulakis committed Sep 14, 2017
2 parents e467235 + 04e0f74 commit 33029f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 9 additions & 2 deletions src/components/vwpPostCard.vue
Expand Up @@ -5,12 +5,14 @@
<img v-bind:src="cdnUrl(post.better_featured_image.media_details.sizes.medium.source_url)" v-bind:alt="post.better_featured_image.description">
</figure>
</div>
<div class="card-content">
<div class="card-content" v-if="post && post.title">
<div class="content">
<div v-if="isNew(post.date)" class="is-new">new</div>
<div class="post-title">
<div v-if="post.slug && categorySlug">
<router-link :to="'/category/' + categorySlug + '/' + post.slug"><span v-html="post.title.rendered"></span></router-link>
<a v-on:click="gotoPost(post)">
<span v-html="post.title.rendered"></span>
</a>
</div>
</div>
<p class="is-clearfix"></p>
Expand All @@ -31,6 +33,11 @@ export default {
name: 'vwp-post-card',
props: ['post', 'categorySlug', 'newFlag'],
methods: {
gotoPost: function (post) {
if (this.categorySlug && post && post.slug) {
this.$router.push({ path: '/category/' + this.categorySlug + '/' + post.slug })
}
},
cdnUrl: function (url) {
return url.replace('https://api.fullstackweekly.com', 'https://fullstackweekly.azureedge.net')
},
Expand Down
3 changes: 0 additions & 3 deletions src/theme/Category.vue
Expand Up @@ -75,7 +75,4 @@ export default {
.category-posts{
flex-wrap:wrap;
}
.hero-body{
padding-top: 0;
}
</style>

0 comments on commit 33029f0

Please sign in to comment.