Skip to content

Instantly share code, notes, and snippets.

@sandi-racy
Created December 26, 2017 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandi-racy/93f493d4c4830ab91f43e187a86083c7 to your computer and use it in GitHub Desktop.
Save sandi-racy/93f493d4c4830ab91f43e187a86083c7 to your computer and use it in GitHub Desktop.
<template lang="jade">
.page
.row
.col-md-8.col-md-offset-2
.row.technology__introduction
.col-md-12
h1 Technologies that I use
.row
.col-md-4(v-for="technology in technologies")
img(:src="technology.metadata.image.url").img-responsive
</template>
<script>
import Cosmic from 'cosmicjs'
export default {
data() {
return {
technologies: []
}
},
mounted() {
const params = {
type_slug: 'technologies',
limit: 50,
skip: 0,
sort: 'created_at'
}
Cosmic.getObjectsByType(cosmicJsConfig, params, (error, response) => {
this.technologies = response.objects.all
})
}
}
</script>
<style lang="stylus" scoped>
.technology__introduction
padding-bottom: 50px
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment