vitrina 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +13 -0
- data/.github/FUNDING.yml +4 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- data/.github/workflows/gempush.yml +41 -0
- data/.gitignore +7 -0
- data/.travis.yml +8 -0
- data/404.md +5 -0
- data/CHANGELOG.md +59 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +407 -0
- data/_config.yml +39 -0
- data/_data/general.json +133 -0
- data/_data/home.json +316 -0
- data/_data/links.json +34 -0
- data/_data/resume.json +80 -0
- data/_includes/foot.html +6 -0
- data/_includes/footer.html +21 -0
- data/_includes/head.html +13 -0
- data/_includes/header.html +63 -0
- data/_includes/pagination.html +75 -0
- data/_includes/util/grid_columns.html +49 -0
- data/_includes/util/item_content.html +8 -0
- data/_includes/util/items.html +63 -0
- data/_includes/util/navbar_items.html +76 -0
- data/_includes/util/prepend_link.html +5 -0
- data/_includes/util/timeline_cards.html +20 -0
- data/_layouts/blog.html +53 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/contact.html +80 -0
- data/_layouts/default.html +33 -0
- data/_layouts/error.html +10 -0
- data/_layouts/home.html +103 -0
- data/_layouts/papers.html +80 -0
- data/_layouts/post.html +33 -0
- data/_layouts/projects.html +58 -0
- data/_layouts/resume.html +62 -0
- data/_papers/A-systematic-review-on-the-productive-effects-of-hobbies.md +15 -0
- data/_papers/Applications-of-open-collaboration-in-software-development.md +14 -0
- data/_posts/2019-04-03-welcome-human.md +52 -0
- data/_projects/Make.md +5 -0
- data/_projects/Meet.md +5 -0
- data/_projects/Mood.md +5 -0
- data/_projects/Take.md +5 -0
- data/_projects/Think.md +5 -0
- data/_sass/_bulma.scss +3 -0
- data/_sass/_fork_awesome.scss +11 -0
- data/_sass/code.scss +128 -0
- data/_sass/customize.scss +69 -0
- data/_sass/elements.scss +489 -0
- data/assets/css/styles.scss +15 -0
- data/assets/img/card.png +0 -0
- data/assets/img/icon.png +0 -0
- data/assets/img/logo.png +0 -0
- data/assets/img/made-with-bulma.png +0 -0
- data/assets/img/make.png +0 -0
- data/assets/img/meet.png +0 -0
- data/assets/img/mood.png +0 -0
- data/assets/img/take.png +0 -0
- data/assets/img/think.png +0 -0
- data/assets/js/navbar.js +10 -0
- data/assets/js/validate.js +77 -0
- data/blog/index.html +4 -0
- data/contact.md +4 -0
- data/index.md +3 -0
- data/node_modules/.yarn-integrity +18 -0
- data/node_modules/bulma/CHANGELOG.md +1390 -0
- data/node_modules/bulma/LICENSE +21 -0
- data/node_modules/bulma/README.md +130 -0
- data/node_modules/bulma/bulma.sass +9 -0
- data/node_modules/bulma/css/bulma.css +10855 -0
- data/node_modules/bulma/css/bulma.css.map +1 -0
- data/node_modules/bulma/css/bulma.min.css +1 -0
- data/node_modules/bulma/package.json +52 -0
- data/node_modules/bulma/sass/.DS_Store +0 -0
- data/node_modules/bulma/sass/base/_all.sass +5 -0
- data/node_modules/bulma/sass/base/generic.sass +142 -0
- data/node_modules/bulma/sass/base/helpers.sass +281 -0
- data/node_modules/bulma/sass/base/minireset.sass +79 -0
- data/node_modules/bulma/sass/components/_all.sass +15 -0
- data/node_modules/bulma/sass/components/breadcrumb.sass +75 -0
- data/node_modules/bulma/sass/components/card.sass +79 -0
- data/node_modules/bulma/sass/components/dropdown.sass +81 -0
- data/node_modules/bulma/sass/components/level.sass +77 -0
- data/node_modules/bulma/sass/components/list.sass +39 -0
- data/node_modules/bulma/sass/components/media.sass +50 -0
- data/node_modules/bulma/sass/components/menu.sass +57 -0
- data/node_modules/bulma/sass/components/message.sass +99 -0
- data/node_modules/bulma/sass/components/modal.sass +113 -0
- data/node_modules/bulma/sass/components/navbar.sass +441 -0
- data/node_modules/bulma/sass/components/pagination.sass +150 -0
- data/node_modules/bulma/sass/components/panel.sass +119 -0
- data/node_modules/bulma/sass/components/tabs.sass +151 -0
- data/node_modules/bulma/sass/elements/_all.sass +15 -0
- data/node_modules/bulma/sass/elements/box.sass +24 -0
- data/node_modules/bulma/sass/elements/button.sass +323 -0
- data/node_modules/bulma/sass/elements/container.sass +24 -0
- data/node_modules/bulma/sass/elements/content.sass +155 -0
- data/node_modules/bulma/sass/elements/form.sass +1 -0
- data/node_modules/bulma/sass/elements/icon.sass +21 -0
- data/node_modules/bulma/sass/elements/image.sass +71 -0
- data/node_modules/bulma/sass/elements/notification.sass +43 -0
- data/node_modules/bulma/sass/elements/other.sass +39 -0
- data/node_modules/bulma/sass/elements/progress.sass +67 -0
- data/node_modules/bulma/sass/elements/table.sass +127 -0
- data/node_modules/bulma/sass/elements/tag.sass +128 -0
- data/node_modules/bulma/sass/elements/title.sass +70 -0
- data/node_modules/bulma/sass/form/_all.sass +8 -0
- data/node_modules/bulma/sass/form/checkbox-radio.sass +21 -0
- data/node_modules/bulma/sass/form/file.sass +180 -0
- data/node_modules/bulma/sass/form/input-textarea.sass +64 -0
- data/node_modules/bulma/sass/form/select.sass +85 -0
- data/node_modules/bulma/sass/form/shared.sass +55 -0
- data/node_modules/bulma/sass/form/tools.sass +205 -0
- data/node_modules/bulma/sass/grid/_all.sass +4 -0
- data/node_modules/bulma/sass/grid/columns.sass +504 -0
- data/node_modules/bulma/sass/grid/tiles.sass +34 -0
- data/node_modules/bulma/sass/layout/_all.sass +5 -0
- data/node_modules/bulma/sass/layout/footer.sass +9 -0
- data/node_modules/bulma/sass/layout/hero.sass +145 -0
- data/node_modules/bulma/sass/layout/section.sass +13 -0
- data/node_modules/bulma/sass/utilities/.DS_Store +0 -0
- data/node_modules/bulma/sass/utilities/_all.sass +8 -0
- data/node_modules/bulma/sass/utilities/animations.sass +5 -0
- data/node_modules/bulma/sass/utilities/controls.sass +50 -0
- data/node_modules/bulma/sass/utilities/derived-variables.sass +106 -0
- data/node_modules/bulma/sass/utilities/functions.sass +110 -0
- data/node_modules/bulma/sass/utilities/initial-variables.sass +77 -0
- data/node_modules/bulma/sass/utilities/mixins.sass +261 -0
- data/node_modules/fork-awesome/CHANGELOG.md +91 -0
- data/node_modules/fork-awesome/CONTRIBUTORS.md +31 -0
- data/node_modules/fork-awesome/LICENSES +452 -0
- data/node_modules/fork-awesome/README.md +93 -0
- data/node_modules/fork-awesome/css/fork-awesome.css +2573 -0
- data/node_modules/fork-awesome/css/fork-awesome.min.css +12 -0
- data/node_modules/fork-awesome/css/fork-awesome.min.css.map +1 -0
- data/node_modules/fork-awesome/css/v5-compat.css +446 -0
- data/node_modules/fork-awesome/css/v5-compat.min.css +12 -0
- data/node_modules/fork-awesome/css/v5-compat.min.css.map +1 -0
- data/node_modules/fork-awesome/fonts/forkawesome-webfont.eot +0 -0
- data/node_modules/fork-awesome/fonts/forkawesome-webfont.svg +2849 -0
- data/node_modules/fork-awesome/fonts/forkawesome-webfont.ttf +0 -0
- data/node_modules/fork-awesome/fonts/forkawesome-webfont.woff +0 -0
- data/node_modules/fork-awesome/fonts/forkawesome-webfont.woff2 +0 -0
- data/node_modules/fork-awesome/less/animated.less +34 -0
- data/node_modules/fork-awesome/less/bordered-pulled.less +25 -0
- data/node_modules/fork-awesome/less/core.less +12 -0
- data/node_modules/fork-awesome/less/fixed-width.less +6 -0
- data/node_modules/fork-awesome/less/fork-awesome.less +27 -0
- data/node_modules/fork-awesome/less/icons.less +879 -0
- data/node_modules/fork-awesome/less/larger.less +13 -0
- data/node_modules/fork-awesome/less/list.less +19 -0
- data/node_modules/fork-awesome/less/mixins.less +60 -0
- data/node_modules/fork-awesome/less/path.less +15 -0
- data/node_modules/fork-awesome/less/rotated-flipped.less +20 -0
- data/node_modules/fork-awesome/less/screen-reader.less +5 -0
- data/node_modules/fork-awesome/less/stacked.less +20 -0
- data/node_modules/fork-awesome/less/v5-compat.less +176 -0
- data/node_modules/fork-awesome/less/variables.less +890 -0
- data/node_modules/fork-awesome/package.json +49 -0
- data/node_modules/fork-awesome/scss/_animated.scss +34 -0
- data/node_modules/fork-awesome/scss/_bordered-pulled.scss +25 -0
- data/node_modules/fork-awesome/scss/_core.scss +12 -0
- data/node_modules/fork-awesome/scss/_fixed-width.scss +6 -0
- data/node_modules/fork-awesome/scss/_functions.scss +11 -0
- data/node_modules/fork-awesome/scss/_icons.scss +879 -0
- data/node_modules/fork-awesome/scss/_larger.scss +13 -0
- data/node_modules/fork-awesome/scss/_list.scss +19 -0
- data/node_modules/fork-awesome/scss/_mixins.scss +60 -0
- data/node_modules/fork-awesome/scss/_path.scss +15 -0
- data/node_modules/fork-awesome/scss/_rotated-flipped.scss +20 -0
- data/node_modules/fork-awesome/scss/_screen-reader.scss +5 -0
- data/node_modules/fork-awesome/scss/_stacked.scss +20 -0
- data/node_modules/fork-awesome/scss/_variables.scss +890 -0
- data/node_modules/fork-awesome/scss/fork-awesome.scss +28 -0
- data/package.json +32 -0
- data/papers.md +4 -0
- data/projects.md +4 -0
- data/resume.md +4 -0
- data/screenshot.png +0 -0
- data/scripts/build.sh +10 -0
- data/scripts/install.sh +4 -0
- data/scripts/validate.rb +28 -0
- data/vitrina.gemspec +23 -0
- metadata +187 -2
data/_data/links.json
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"reference": "https://twitter.com/",
|
4
|
+
"icon": "fa-twitter"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"reference": "https://github.com/",
|
8
|
+
"icon": "fa-github"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"reference": "https://medium.com/",
|
12
|
+
"icon": "fa-medium"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"reference": "https://discord.com/",
|
16
|
+
"icon": "fa-discord-alt"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"reference": "https://www.reddit.com/",
|
20
|
+
"icon": "fa-reddit-alien"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"reference": "https://www.deviantart.com/",
|
24
|
+
"icon": "fa-deviantart"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"reference": "https://www.pinterest.com/",
|
28
|
+
"icon": "fa-pinterest"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"reference": "https://codepen.io",
|
32
|
+
"icon": "fa-codepen"
|
33
|
+
}
|
34
|
+
]
|
data/_data/resume.json
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
{
|
2
|
+
"photo": "/assets/img/icon.png",
|
3
|
+
"name": "Vitrina",
|
4
|
+
"title": "Malding Scientist",
|
5
|
+
"skills": [
|
6
|
+
{
|
7
|
+
"icon": "fa-html5",
|
8
|
+
"progress": {
|
9
|
+
"value": 90,
|
10
|
+
"max": 100
|
11
|
+
}
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"icon": "fa-android",
|
15
|
+
"progress": {
|
16
|
+
"value": 50,
|
17
|
+
"max": 100
|
18
|
+
}
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"icon": "fa-gimp",
|
22
|
+
"progress": {
|
23
|
+
"value": 30,
|
24
|
+
"max": 100
|
25
|
+
}
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"icon": "fa-css3",
|
29
|
+
"progress": {
|
30
|
+
"value": 90,
|
31
|
+
"max": 100
|
32
|
+
}
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"icon": "fa-php",
|
36
|
+
"progress": {
|
37
|
+
"value": 75,
|
38
|
+
"max": 100
|
39
|
+
}
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"icon": "fa-python",
|
43
|
+
"progress": {
|
44
|
+
"value": 95,
|
45
|
+
"max": 100
|
46
|
+
}
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"profile": [
|
50
|
+
{
|
51
|
+
"title": "Education",
|
52
|
+
"info": [
|
53
|
+
{
|
54
|
+
"years": "2015-2069",
|
55
|
+
"text": "B.S. in Malding Science, Vitrina University"
|
56
|
+
}
|
57
|
+
]
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"title": "Experience",
|
61
|
+
"info": [
|
62
|
+
{
|
63
|
+
"years": "1001-1312",
|
64
|
+
"text": "Malder in Chief - <em>Malding Industries</em>",
|
65
|
+
"list": [
|
66
|
+
{
|
67
|
+
"text": "Achived malding supreme ultra nuclear."
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"text": "Lead malding experts to accomplish MALDNESS."
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"text": "Instructed junior staff on the Art of Malding."
|
74
|
+
}
|
75
|
+
]
|
76
|
+
}
|
77
|
+
]
|
78
|
+
}
|
79
|
+
]
|
80
|
+
}
|
data/_includes/foot.html
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
<!-- jQuery -->
|
2
|
+
<script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
|
3
|
+
|
4
|
+
<!-- Default scripts -->
|
5
|
+
<script type="text/javascript" src="{{ '/assets/js/navbar.js' | absolute_url }}" integrity="sha384-/gP+91gAFnWtZpy36VihV4TJOfyzBpII643sv0A+dAsC+S0N4dJGlTzTGikTu4dg" crossorigin="anonymous"></script>
|
6
|
+
<script type="text/javascript" src="{{ '/assets/js/validate.js' | absolute_url }}"></script>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{% assign data = site.data.general.footer %}
|
2
|
+
|
3
|
+
<div class="container">
|
4
|
+
<div class="columns">
|
5
|
+
|
6
|
+
{% for column in data %}
|
7
|
+
<div class="column {{ column.style }}">
|
8
|
+
|
9
|
+
{% for item in column.content %}
|
10
|
+
<div class="content">
|
11
|
+
{% include util/items.html %}
|
12
|
+
</div>
|
13
|
+
|
14
|
+
{% endfor %}
|
15
|
+
|
16
|
+
</div> {% comment %} column {% endcomment %}
|
17
|
+
|
18
|
+
{% endfor %}
|
19
|
+
|
20
|
+
</div> {% comment %} columns {% endcomment %}
|
21
|
+
</div> {% comment %} container {% endcomment %}
|
data/_includes/head.html
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
<meta charset='utf-8'>
|
2
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
4
|
+
|
5
|
+
{% if page.title %}
|
6
|
+
<title>{{ page.title }} | {{ site.title | default: 'Vitrina' }}</title>
|
7
|
+
{% else %}
|
8
|
+
<title>{{ site.title | default: 'Vitrina' }}</title>
|
9
|
+
{% endif %}
|
10
|
+
|
11
|
+
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | absolute_url }}" >
|
12
|
+
|
13
|
+
{% seo %}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
{% assign data = site.data.general.header %}
|
2
|
+
{% assign burger_spans = 3 %}
|
3
|
+
|
4
|
+
<nav class="navbar is-primary {{ data.menu.style }}" role="navigation" aria-label="main navigation">
|
5
|
+
|
6
|
+
{% if data.brand %}
|
7
|
+
<div id="navbarBrand" class="navbar-brand">
|
8
|
+
{% assign link = data.brand.link %}
|
9
|
+
{% include util/prepend_link.html %}
|
10
|
+
<a class="navbar-item" href="{{ link }}">
|
11
|
+
|
12
|
+
{% if data.brand.image %}
|
13
|
+
{% assign link = data.brand.image %}
|
14
|
+
{% include util/prepend_link.html %}
|
15
|
+
<img src="{{ link }}" alt="{{ data.brand.name }}">
|
16
|
+
|
17
|
+
{% endif %}
|
18
|
+
|
19
|
+
</a> {% comment %} navbar-item {% endcomment %}
|
20
|
+
|
21
|
+
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbarBurger">
|
22
|
+
|
23
|
+
{% for i in (1..burger_spans) %}
|
24
|
+
<span aria-hidden="true"></span>
|
25
|
+
{% endfor %}
|
26
|
+
|
27
|
+
</a> {% comment %} navbar-burger {% endcomment %}
|
28
|
+
</div> {% comment %} navbar-brand {% endcomment %}
|
29
|
+
|
30
|
+
{% endif %}
|
31
|
+
|
32
|
+
{% if data.menu %}
|
33
|
+
<div id="navbarMenu" class="navbar-menu">
|
34
|
+
|
35
|
+
{% if data.menu.start %}
|
36
|
+
<div class="navbar-start">
|
37
|
+
|
38
|
+
{% for item in data.menu.start %}
|
39
|
+
{% include util/navbar_items.html %}
|
40
|
+
{% endfor %}
|
41
|
+
|
42
|
+
</div> {% comment %} navbar-start {% endcomment %}
|
43
|
+
|
44
|
+
{% endif %}
|
45
|
+
|
46
|
+
{% if data.menu.end %}
|
47
|
+
{% assign dropdown_right = true %}
|
48
|
+
|
49
|
+
<div class="navbar-end">
|
50
|
+
<div class="navbar-item">
|
51
|
+
|
52
|
+
{% for item in data.menu.end %}
|
53
|
+
{% include util/navbar_items.html %}
|
54
|
+
{% endfor %}
|
55
|
+
|
56
|
+
</div> {% comment %} navbar-end {% endcomment %}
|
57
|
+
|
58
|
+
{% endif %}
|
59
|
+
|
60
|
+
</div> {% comment %} navbar-menu {% endcomment %}
|
61
|
+
{% endif %}
|
62
|
+
|
63
|
+
</nav> {% comment %} navbar {% endcomment %}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
{% if paginator.total_pages > 1 %}
|
2
|
+
{% assign next_pages = paginator.total_pages | minus: paginator.page %}
|
3
|
+
{% assign page_offset = 2 %}
|
4
|
+
{% assign shown_pages = page_offset | times: 2 | plus: 1 %}
|
5
|
+
{% assign start_page = 1 %}
|
6
|
+
{% assign end_page = paginator.total_pages %}
|
7
|
+
|
8
|
+
{% if paginator.page > page_offset %}
|
9
|
+
{% if next_pages > page_offset %}
|
10
|
+
{% assign start_page = paginator.page | minus: page_offset %}
|
11
|
+
{% assign end_page = paginator.page | plus: page_offset %}
|
12
|
+
{% else %}
|
13
|
+
{% if paginator.page >= shown_pages %}
|
14
|
+
{% assign start_page = paginator.total_pages | minus: shown_pages | plus: 1 %}
|
15
|
+
{% endif %}
|
16
|
+
{% endif %}
|
17
|
+
{% else %}
|
18
|
+
{% if next_pages >= shown_pages %}
|
19
|
+
{% assign end_page = shown_pages %}
|
20
|
+
{% endif %}
|
21
|
+
{% endif %}
|
22
|
+
|
23
|
+
<div class="page-nav">
|
24
|
+
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
|
25
|
+
|
26
|
+
{% if paginator.previous_page %}
|
27
|
+
<a class="pagination-previous" href="{{ paginator.previous_page_path | relative_url }}">Prev</a>
|
28
|
+
{% else %}
|
29
|
+
<a class="pagination-previous" disabled>Prev</a>
|
30
|
+
{% endif %}
|
31
|
+
|
32
|
+
{% if paginator.next_page %}
|
33
|
+
<a class="pagination-next" href="{{ paginator.next_page_path | relative_url }}">Next</a>
|
34
|
+
{% else %}
|
35
|
+
<a class="pagination-next" disabled>Next</a>
|
36
|
+
{% endif %}
|
37
|
+
|
38
|
+
<ul class="pagination-list">
|
39
|
+
{% if paginator.page != 1 %}
|
40
|
+
<li><a class="pagination-link" href="{{ site.paginate_path | relative_url | replace: ':num', '' }}">First</a></li>
|
41
|
+
{% else %}
|
42
|
+
<li><a class="pagination-link" disabled>First</a></li>
|
43
|
+
{% endif %}
|
44
|
+
|
45
|
+
<li><span class="pagination-ellipsis">…</span></li>
|
46
|
+
|
47
|
+
{% for page in (start_page..end_page) %}
|
48
|
+
{% if page == paginator.page %}
|
49
|
+
<li><a class="pagination-link is-current">{{ page }}</a></li>
|
50
|
+
|
51
|
+
{% elsif page == 1 %}
|
52
|
+
<li><a class="pagination-link" href="{{ site.paginate_path | relative_url | replace: ':num', '' }}">1</a></li>
|
53
|
+
|
54
|
+
{% else %}
|
55
|
+
<li><a class="pagination-link" href="{{ site.paginate_path | relative_url | replace: ':num', page }}">{{ page }}</a></li>
|
56
|
+
|
57
|
+
{% endif %}
|
58
|
+
|
59
|
+
{% endfor %}
|
60
|
+
|
61
|
+
<li><span class="pagination-ellipsis">…</span></li>
|
62
|
+
|
63
|
+
{% if paginator.page != paginator.total_pages %}
|
64
|
+
<li><a class="pagination-link" href="{{ site.paginate_path | relative_url | replace: ':num', paginator.total_pages }}">Last</a></li>
|
65
|
+
{% else %}
|
66
|
+
<li><a class="pagination-link" disabled>Last</a></li>
|
67
|
+
{% endif %}
|
68
|
+
|
69
|
+
</ul> {% comment %} pagination-list {% endcomment %}
|
70
|
+
|
71
|
+
</nav> {% comment %} pagination {% endcomment %}
|
72
|
+
|
73
|
+
</div> {% comment %} page-nav {% endcomment %}
|
74
|
+
|
75
|
+
{% endif %}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
{% comment %}
|
2
|
+
This requires an array with all cards named part.cards
|
3
|
+
{% endcomment %}
|
4
|
+
|
5
|
+
{% assign grid_width = 4 %}
|
6
|
+
{% assign grid_height = part.cards.size | divided_by: grid_width %}
|
7
|
+
|
8
|
+
<div class="columns">
|
9
|
+
|
10
|
+
{% for i in (1..grid_width) %}
|
11
|
+
<div class="column is-3">
|
12
|
+
|
13
|
+
{% for n in (0..grid_height) %}
|
14
|
+
{% assign index = grid_width | times: n | plus: i | minus: 1 %}
|
15
|
+
{% assign card = part.cards[index] %}
|
16
|
+
|
17
|
+
{% if card == nil %}
|
18
|
+
{% continue %}
|
19
|
+
{% endif %}
|
20
|
+
|
21
|
+
<div class="card">
|
22
|
+
|
23
|
+
{% if card.image %}
|
24
|
+
<div class="card-image">
|
25
|
+
<figure class="image">
|
26
|
+
{% assign link = card.image %}
|
27
|
+
{% include util/prepend_link.html %}
|
28
|
+
<img src="{{ link }}" alt="{{ card.title }}">
|
29
|
+
</figure>
|
30
|
+
</div>
|
31
|
+
|
32
|
+
{% endif %}
|
33
|
+
|
34
|
+
<div class="card-content">
|
35
|
+
|
36
|
+
{% for item in card.content %}
|
37
|
+
{% include util/items.html %}
|
38
|
+
{% endfor %}
|
39
|
+
|
40
|
+
</div> {% comment %} card-content {% endcomment %}
|
41
|
+
</div> {% comment %} card {% endcomment %}
|
42
|
+
|
43
|
+
{% endfor %}
|
44
|
+
|
45
|
+
</div> {% comment %} container {% endcomment %}
|
46
|
+
|
47
|
+
{% endfor %}
|
48
|
+
|
49
|
+
</div> {% comment %} columns {% endcomment %}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
{% if item.type == "buttons" %}
|
2
|
+
<div class="buttons {{ item.style }}">
|
3
|
+
|
4
|
+
{% for button in item.content %}
|
5
|
+
{% assign link = button.link %}
|
6
|
+
{% include util/prepend_link.html %}
|
7
|
+
<a class="button {{ button.style }}" href="{{ link }}">
|
8
|
+
|
9
|
+
{% if button.icon %}
|
10
|
+
<span class="icon {{ button.icon.style }}">
|
11
|
+
<i class="fa {{ button.icon.name }}"></i>
|
12
|
+
</span>
|
13
|
+
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
<span>{{ button.content | newline_to_br }}</span>
|
17
|
+
</a> {% comment %} button {% endcomment %}
|
18
|
+
|
19
|
+
{% endfor %}
|
20
|
+
|
21
|
+
</div> {% comment %} buttons {% endcomment %}
|
22
|
+
|
23
|
+
{% elsif item.type == "link" %}
|
24
|
+
{% assign link = item.link %}
|
25
|
+
{% include util/prepend_link.html %}
|
26
|
+
<a class="{{ item.style }}" href="{{ link }}">
|
27
|
+
{% include util/item_content.html %}
|
28
|
+
</a>
|
29
|
+
|
30
|
+
{% elsif item.type == "image" %}
|
31
|
+
{% if item.link %}
|
32
|
+
{% assign link = item.link %}
|
33
|
+
{% include util/prepend_link.html %}
|
34
|
+
<a href="{{ link }}">
|
35
|
+
{% assign link = item.file %}
|
36
|
+
{% include util/prepend_link.html %}
|
37
|
+
<img class="{{ item.style }}" src="{{ link }}" alt="{{ item.name }}" width="{{ item.width }}" height="{{ item.height }}"></img>
|
38
|
+
</a>
|
39
|
+
|
40
|
+
{% else %}
|
41
|
+
{% assign link = item.file %}
|
42
|
+
{% include util/prepend_link.html %}
|
43
|
+
<img class="{{ item.style }}" src="{{ link }}" alt="{{ item.name }}" width="{{ item.width }}" height="{{ item.height }}"></img>
|
44
|
+
|
45
|
+
{% endif %}
|
46
|
+
|
47
|
+
{% elsif item.type == "text" %}
|
48
|
+
<p class="{{ item.style }}">
|
49
|
+
{% include util/item_content.html %}
|
50
|
+
</p>
|
51
|
+
|
52
|
+
{% elsif item.type == "icons" %}
|
53
|
+
<span class="icon {{ item.style }}">
|
54
|
+
<span class="fa-stack">
|
55
|
+
|
56
|
+
{% for icon in item.content %}
|
57
|
+
<i class="fa {{ icon.name }} {{ icon.style }}"></i>
|
58
|
+
{% endfor %}
|
59
|
+
|
60
|
+
</span> {% comment %} span {% endcomment %}
|
61
|
+
</span> {% comment %} span {% endcomment %}
|
62
|
+
|
63
|
+
{% endif %}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
{% if item.type == "buttons" %}
|
2
|
+
<div class="navbar-item">
|
3
|
+
<div class="buttons">
|
4
|
+
|
5
|
+
{% for button in item.content %}
|
6
|
+
{% assign link = button.link %}
|
7
|
+
{% include util/prepend_link.html %}
|
8
|
+
<a class="button {{ button.style }}" href="{{ link }}">
|
9
|
+
|
10
|
+
{% if button.icon %}
|
11
|
+
<span class="icon {{ button.icon.style }}">
|
12
|
+
<i class="fa {{ button.icon.name }}"></i>
|
13
|
+
</span>
|
14
|
+
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
<span>{{ button.content | newline_to_br }}</span>
|
18
|
+
</a> {% comment %} button {% endcomment %}
|
19
|
+
|
20
|
+
{% endfor %}
|
21
|
+
|
22
|
+
</div> {% comment %} buttons {% endcomment %}
|
23
|
+
</div> {% comment %} navbar-item {% endcomment %}
|
24
|
+
|
25
|
+
{% elsif item.type == "link" %}
|
26
|
+
{% assign link = item.link %}
|
27
|
+
{% include util/prepend_link.html %}
|
28
|
+
<a class="navbar-item {{ item.style }}" href="{{ link }}">
|
29
|
+
{% include util/item_content.html %}
|
30
|
+
</a>
|
31
|
+
|
32
|
+
{% elsif item.type == "text" %}
|
33
|
+
<div class="navbar-item {{ item.style }}">
|
34
|
+
{% include util/item_content.html %}
|
35
|
+
</div>
|
36
|
+
|
37
|
+
{% elsif item.type == "dropdown" %}
|
38
|
+
<div class="navbar-item has-dropdown is-hoverable">
|
39
|
+
<a class="navbar-link {{ item.style }}">
|
40
|
+
{% include util/item_content.html %}
|
41
|
+
</a>
|
42
|
+
|
43
|
+
{% if dropdown_right %}
|
44
|
+
<div class="navbar-dropdown is-right">
|
45
|
+
{% else %}
|
46
|
+
<div class="navbar-dropdown">
|
47
|
+
{% endif %}
|
48
|
+
|
49
|
+
{% for option in item.links %}
|
50
|
+
|
51
|
+
{% if option.divider %}
|
52
|
+
<hr class="navbar-divider">
|
53
|
+
|
54
|
+
{% else %}
|
55
|
+
{% assign link = option.link %}
|
56
|
+
{% include util/prepend_link.html %}
|
57
|
+
<a class="navbar-item" href="{{ link }}">
|
58
|
+
|
59
|
+
{% if option.icon %}
|
60
|
+
<span class="icon {{ option.icon.style }}">
|
61
|
+
<i class="fa {{ option.icon.name }}"></i>
|
62
|
+
</span>
|
63
|
+
|
64
|
+
{% endif %}
|
65
|
+
|
66
|
+
<span>{{ option.content | newline_to_br }}</span>
|
67
|
+
</a>
|
68
|
+
|
69
|
+
{% endif %}
|
70
|
+
|
71
|
+
{% endfor %}
|
72
|
+
|
73
|
+
</div> {% comment %} navbar-dropdown {% endcomment %}
|
74
|
+
</div> {% comment %} navbar-item {% endcomment %}
|
75
|
+
|
76
|
+
{% endif %}
|