This repository has been archived by the owner on Dec 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
149 lines (137 loc) · 4.47 KB
/
config.php
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?php
return [
'production' => false,
'baseUrl' => 'https://www.luckymedia.dev',
'siteName' => 'Lucky Media',
'siteDescription' => 'The art of beautiful design and professional digital experience.',
'homepage' => [
'menu' => [
0 => [
'name' => 'Home',
'link' => '/#app',
],
1 => [
'name' => 'About us',
'link' => '/#about',
'scroll' => true,
],
2 => [
'name' => 'Services',
'link' => '/#services',
'scroll' => true,
],
3 => [
'name' => 'Portfolio',
'link' => '/portfolio',
],
4 => [
'name' => 'Blog',
'link' => '/blog',
],
5 => [
'name' => 'Contact',
'link' => '/contact',
],
],
'cards' => [
'0' => [
'icon' => 'thunder',
'title' => 'Branding Strategy',
'desc' => 'We help brands achieve digital transformation.'
],
'1' => [
'icon' => 'window',
'title' => 'Web Development',
'desc' => 'Dedicated to innovative, user-oriented web development.'
],
'2' => [
'icon' => 'frame',
'title' => 'Design Services',
'desc' => 'Original designs that convert visitors into clients.'
],
'3' => [
'icon' => 'bulb',
'title' => 'Creative Ideas',
'desc' => 'We combine creativity with deep technical experience.'
],
'4' => [
'icon' => 'chat',
'title' => 'Social Media',
'desc' => 'We build attractive digital marketing campaigns.'
],
'5' => [
'icon' => 'network',
'title' => 'Outsourcing solutions',
'desc' => 'We provide professional staff and proven experience.'
],
],
],
'technologies' => [
'0' => [
'name' => 'Php',
'img' => 'assets/images/logos/php.png',
'img_large' => 'assets/images/logos/[email protected]',
'link' => 'https://www.php.net/',
],
'1' => [
'name' => 'Laravel',
'img' => 'assets/images/logos/laravel.png',
'img_large' => 'assets/images/logos/[email protected]',
'link' => 'https://www.laravel.com/',
],
'2' => [
'name' => 'Tailwind',
'img' => 'assets/images/logos/tailwind.png',
'img_large' => 'assets/images/logos/[email protected]',
'link' => 'https://tailwindcss.com/',
],
'3' => [
'name' => 'Javascript',
'img' => 'assets/images/logos/js.png',
'img_large' => 'assets/images/logos/[email protected]',
'link' => '/',
],
'4' => [
'name' => 'VueJS',
'img' => 'assets/images/logos/vue.png',
'img_large' => 'assets/images/logos/[email protected]',
'link' => 'https://vuejs.org/',
],
'5' => [
'name' => 'ReactJS',
'img' => 'assets/images/logos/react.png',
'img_large' => 'assets/images/logos/[email protected]',
'link' => 'https://reactjs.org/',
],
],
'collections' => [
'projects' => [
'path' => 'portfolio/{filename}',
'extends' => '_layouts.project',
'sort' => '-date',
],
'posts' => [
'path' => 'blog/{filename}',
'extends' => '_layouts.post',
'sort' => '-date',
],
'testimonials' => [
'sort' => '-date',
],
],
'getDescription' => function ($page) {
return strip_tags($page->getContent());
},
'getSeoDesc' => function($page) {
$string = strip_tags($page->getContent());
$stringCut = substr($string, 0, 160);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')) . '....';
return $string;
},
'getShortDescription' => function ($page) {
$string = strip_tags($page->getContent());
$stringCut = substr($string, 0, 200);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')) . '....';
return $string;
},
];