Blame view

src/api/post.js 1.98 KB
93a68cfa1   Jatinder Singh   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  const posts =  [
    {
      title: 'A sample post with image',
      desc: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry scrambled it to make text of the printing and typesetting industry scrambled a type specimen book text of the dummy text of the printing printing and typesetting industry scrambled dummy text of the printing.',
      featuredImage: '/static/discover_word/thumb/ds_1.jpg',
      author: 'Jessie Wang',
      createdAt: new Date().toLocaleDateString()
    },
    {
      title: 'A sample post with image',
      desc: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry scrambled it to make text of the printing and typesetting industry scrambled a type specimen book text of the dummy text of the printing printing and typesetting industry scrambled dummy text of the printing.',
      featuredImage: '/static/discover_word/thumb/ds_2.jpg',
      author: 'Li Love',
      createdAt: new Date().toLocaleDateString()
    },
    {
      title: 'A sample post with image',
      desc: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry scrambled it to make text of the printing and typesetting industry scrambled a type specimen book text of the dummy text of the printing printing and typesetting industry scrambled dummy text of the printing.',
      featuredImage: '/static/discover_word/thumb/ds_3.jpg',
      author: 'Jim Wang',
      createdAt: new Date().toLocaleDateString()
    },
    {
      title: 'A sample post with image',
      desc: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry scrambled it to make text of the printing and typesetting industry scrambled a type specimen book text of the dummy text of the printing printing and typesetting industry scrambled dummy text of the printing.',
      featuredImage: '/static/discover_word/thumb/ds_4.jpg',
      author: 'John Doe',
      createdAt: new Date().toLocaleDateString()
    },
  ];
  
  const getPost = (limit) => {
    return (limit) ? posts.slice(0, limit) : posts;
  };
  
  export {
    getPost
  };