jekyll-dlp 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +40 -0
- data/_data/footer_links.yml +4 -0
- data/_data/homepage.yml +42 -0
- data/_data/nav.yml +4 -0
- data/_includes/css.html +3 -0
- data/_includes/footer.html +12 -0
- data/_includes/js.html +1 -0
- data/_includes/meta.html +27 -0
- data/_includes/nav.html +18 -0
- data/_layouts/blank.html +16 -0
- data/_layouts/default.html +28 -0
- data/_layouts/home.html +85 -0
- data/_sass/materialize/LICENSE +21 -0
- data/_sass/materialize/components/_badges.scss +55 -0
- data/_sass/materialize/components/_buttons.scss +322 -0
- data/_sass/materialize/components/_cards.scss +195 -0
- data/_sass/materialize/components/_carousel.scss +90 -0
- data/_sass/materialize/components/_chips.scss +90 -0
- data/_sass/materialize/components/_collapsible.scss +91 -0
- data/_sass/materialize/components/_color-classes.scss +32 -0
- data/_sass/materialize/components/_color-variables.scss +370 -0
- data/_sass/materialize/components/_datepicker.scss +191 -0
- data/_sass/materialize/components/_dropdown.scss +85 -0
- data/_sass/materialize/components/_global.scss +769 -0
- data/_sass/materialize/components/_grid.scss +156 -0
- data/_sass/materialize/components/_icons-material-design.scss +5 -0
- data/_sass/materialize/components/_materialbox.scss +43 -0
- data/_sass/materialize/components/_modal.scss +94 -0
- data/_sass/materialize/components/_navbar.scss +208 -0
- data/_sass/materialize/components/_normalize.scss +447 -0
- data/_sass/materialize/components/_preloader.scss +334 -0
- data/_sass/materialize/components/_pulse.scss +34 -0
- data/_sass/materialize/components/_sidenav.scss +216 -0
- data/_sass/materialize/components/_slider.scss +92 -0
- data/_sass/materialize/components/_table_of_contents.scss +33 -0
- data/_sass/materialize/components/_tabs.scss +99 -0
- data/_sass/materialize/components/_tapTarget.scss +103 -0
- data/_sass/materialize/components/_timepicker.scss +183 -0
- data/_sass/materialize/components/_toast.scss +58 -0
- data/_sass/materialize/components/_tooltip.scss +32 -0
- data/_sass/materialize/components/_transitions.scss +13 -0
- data/_sass/materialize/components/_typography.scss +60 -0
- data/_sass/materialize/components/_variables.scss +349 -0
- data/_sass/materialize/components/_waves.scss +114 -0
- data/_sass/materialize/components/forms/_checkboxes.scss +200 -0
- data/_sass/materialize/components/forms/_file-input.scss +44 -0
- data/_sass/materialize/components/forms/_forms.scss +22 -0
- data/_sass/materialize/components/forms/_input-fields.scss +354 -0
- data/_sass/materialize/components/forms/_radio-buttons.scss +115 -0
- data/_sass/materialize/components/forms/_range.scss +161 -0
- data/_sass/materialize/components/forms/_select.scss +180 -0
- data/_sass/materialize/components/forms/_switches.scss +89 -0
- data/assets/css/main.css +65 -0
- data/assets/css/materialize.scss +44 -0
- metadata +140 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2e6a4a9e649838a626c79c6d4c51200fe94ebb2225b836fcf82850adfdc42e69
|
4
|
+
data.tar.gz: 1ed079ab84951e84df8325692c396f89084e9080f2a0bbf67b8166f797b152dc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9a00cd3aa9a5682343201319b960864f79c74376fec1f59c62f9839acdaf605601a552eb40c9db9b4533cfcb9cd358e29095c74e511d89a9ff5067b0d64f8411
|
7
|
+
data.tar.gz: e93c5bea676a91e200d7184444c2d7edd616ac1c6c39059aae3d743b349fe532087af38401592f00fb85184d88b262cd04ee4f0cbb919b5d463797410fc46087
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Digital Literacy Project
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# jekyll-dlp
|
2
|
+
|
3
|
+
A Jekyll theme for the website of the [Digital Literacy Project](https://github.com/DigitalLiteracyProject) based on [Materialize](https://materializecss.com/).
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your Jekyll site's `Gemfile`:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "jekyll-dlp"
|
12
|
+
```
|
13
|
+
|
14
|
+
And add this line to your Jekyll site's `_config.yml`:
|
15
|
+
|
16
|
+
```yaml
|
17
|
+
theme: jekyll-dlp
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle
|
23
|
+
|
24
|
+
Or install it yourself as:
|
25
|
+
|
26
|
+
$ gem install jekyll-dlp
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
Default layout: two-column setup. If you include `toc: true` in your front matter for a page, then will feature a table of contents in the right column (assuming you have `jekyll-toc` installed as a plugin).
|
31
|
+
|
32
|
+
Blank layout: literally nothing except head, nav, footer. A blank slate for you.
|
33
|
+
|
34
|
+
Home layout: for use with home data. In your `_data` folder, create `homepage.yml`. See `homepage.yml` in the theme `_data` directory for an example.
|
35
|
+
|
36
|
+
Navigation and footer links: see theme `_data` directory for instructions.
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/_data/homepage.yml
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# The headline to appear over the image
|
2
|
+
headline: a string
|
3
|
+
|
4
|
+
# The call to action button text and link to appear over the image
|
5
|
+
cta:
|
6
|
+
name: text in the button
|
7
|
+
link: url, where the button goes
|
8
|
+
|
9
|
+
# The main image to appear on the home page
|
10
|
+
home_image:
|
11
|
+
image: a url
|
12
|
+
alt: alt text for image
|
13
|
+
|
14
|
+
# Big text description below image and above the fold
|
15
|
+
description: a string
|
16
|
+
|
17
|
+
# Two or three cards that will appear below the description.
|
18
|
+
# Each card features an image, name, a link, and a description.
|
19
|
+
cards:
|
20
|
+
- name: a string
|
21
|
+
link: url
|
22
|
+
image: url to image
|
23
|
+
description: a string
|
24
|
+
- name: a string
|
25
|
+
link: url
|
26
|
+
image: url to image
|
27
|
+
description: a string
|
28
|
+
# must have at least 2 of these
|
29
|
+
|
30
|
+
# The statistics to appear in the bottom box before the footer.
|
31
|
+
# Includes a headline, and 3-4 items, each of which includes
|
32
|
+
# a number and a description to appear below the number.
|
33
|
+
stats:
|
34
|
+
headline: a string
|
35
|
+
items:
|
36
|
+
- number: a number
|
37
|
+
description: a string
|
38
|
+
- number: a number
|
39
|
+
description: a string
|
40
|
+
- number: a number
|
41
|
+
description: a string
|
42
|
+
# must have at least 3 of these
|
data/_data/nav.yml
ADDED
data/_includes/css.html
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
<footer class="page-footer">
|
2
|
+
<div class="footer-copyright">
|
3
|
+
<div class="container">
|
4
|
+
© {{ site.copyright }}
|
5
|
+
<span class="right">
|
6
|
+
{% for item in site.data.footer_links %}
|
7
|
+
<a href="{{ item.link }}" class="grey-text text-lighten-4"> {{ item.name }}</a>
|
8
|
+
{% endfor %}
|
9
|
+
</span>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
</footer>
|
data/_includes/js.html
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
data/_includes/meta.html
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
<meta charset="utf-8">
|
2
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
3
|
+
<meta name="robots" content="index, follow" />
|
4
|
+
<meta property="og:title" content="{{ page.title }}">
|
5
|
+
<meta property="og:type" content="website">
|
6
|
+
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
|
7
|
+
<meta property="og:site_name" content="{{ site.title }}">
|
8
|
+
|
9
|
+
{% if page.image %}
|
10
|
+
<meta property="og:image" content="{{ page.image }}">
|
11
|
+
{% else %}
|
12
|
+
{% if site.image %}
|
13
|
+
<meta property="og:image" content="{{ site.image }}">
|
14
|
+
{% endif%}
|
15
|
+
{% endif %}
|
16
|
+
|
17
|
+
{% if page.description %}
|
18
|
+
<meta property="og:description" content="{{ page.description }}">
|
19
|
+
<meta name="description" content="{{ page.description }}">
|
20
|
+
{% else %}
|
21
|
+
{% if site.description %}
|
22
|
+
<meta property="og:description" content="{{ site.description }}">
|
23
|
+
<meta name="description" content="{{ site.description }}">
|
24
|
+
{% endif %}
|
25
|
+
{% endif %}
|
26
|
+
|
27
|
+
<title>{{ page.title }}</title>
|
data/_includes/nav.html
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
<nav>
|
2
|
+
<div class="nav-wrapper">
|
3
|
+
<div class="container">
|
4
|
+
<a href="/" class="brand-logo">
|
5
|
+
{% if site.logo %}
|
6
|
+
<img src="{{ site.logo }}" alt="{{ site.title }}" title="{{ site.title }}">
|
7
|
+
{% else %}
|
8
|
+
{{ site.title }}
|
9
|
+
{% endif %}
|
10
|
+
</a>
|
11
|
+
<ul id="nav-mobile" class="right hide-on-med-and-down">
|
12
|
+
{% for item in site.data.nav %}
|
13
|
+
<li><a href="{{ item.link }}">{{ item.name }}</a></li>
|
14
|
+
{% endfor %}
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</nav>
|
data/_layouts/blank.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en-us" }}">
|
3
|
+
<head>
|
4
|
+
{% include meta.html %}
|
5
|
+
{% include css.html %}
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
{% include nav.html %}
|
9
|
+
|
10
|
+
{{ content }}
|
11
|
+
|
12
|
+
{% include footer.html %}
|
13
|
+
|
14
|
+
{% include js.html %}
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en-us" }}">
|
3
|
+
<head>
|
4
|
+
{% include meta.html %}
|
5
|
+
{% include css.html %}
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
{% include nav.html %}
|
9
|
+
|
10
|
+
<div class="container">
|
11
|
+
<div class="row">
|
12
|
+
<div class="col m9">
|
13
|
+
{{ content }}
|
14
|
+
</div>
|
15
|
+
<div class="col m3">
|
16
|
+
{% if page.toc %}
|
17
|
+
<h5 class="ptb-2">On this page</h5>
|
18
|
+
{{ content | toc_only }}
|
19
|
+
{% endif %}
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
{% include footer.html %}
|
25
|
+
|
26
|
+
{% include js.html %}
|
27
|
+
</body>
|
28
|
+
</html>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en-us" }}">
|
3
|
+
<head>
|
4
|
+
{% include meta.html %}
|
5
|
+
{% include css.html %}
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
{% include nav.html %}
|
9
|
+
|
10
|
+
<div class="home">
|
11
|
+
{% assign item = site.data.homepage.home_image %}
|
12
|
+
<div class="home-image">
|
13
|
+
<img src="{{ item.image }}" alt="{{ item.alt }}" title="{{ item.alt }}" class="responsive-img">
|
14
|
+
</div>
|
15
|
+
<div class="container headline-container">
|
16
|
+
<div class="row headline-container">
|
17
|
+
<div class="headline valign-wrapper col s3">
|
18
|
+
<div>
|
19
|
+
<h3>{{ site.data.homepage.headline }}</h3>
|
20
|
+
<a href="{{ site.data.homepage.cta.link }}" class="btn-large waves-effect waves-light">{{ site.data.homepage.cta.name }}<i class="material-icons right">chevron_right</i></a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<div class="container">
|
27
|
+
<div class="row ptb-2">
|
28
|
+
<div class="col s12">
|
29
|
+
<p class="big center-align">{{ site.data.homepage.description }}</p>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="row">
|
33
|
+
{% if site.data.homepage.cards.size == 3 %}
|
34
|
+
{% assign colsize = "s4" %}
|
35
|
+
{% else %}
|
36
|
+
{% assign colsize = "s6" %}
|
37
|
+
{% endif %}
|
38
|
+
|
39
|
+
{% for card in site.data.homepage.cards %}
|
40
|
+
<div class="col {{ colsize}}">
|
41
|
+
<div class="card z-depth-0">
|
42
|
+
<div class="card-image">
|
43
|
+
<a href="{{ card.link }}">
|
44
|
+
<img src="{{ card.image }}" alt="{{ card.name }}" title="{{ card.name }}">
|
45
|
+
<span class="card-title">{{ card.name }}</span>
|
46
|
+
</a>
|
47
|
+
</div>
|
48
|
+
<div class="card-content center-align">
|
49
|
+
<p>{{ card.description }}</p>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
{% endfor %}
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
<div class="pink darken-4 white-text">
|
57
|
+
<div class="container ptb-2">
|
58
|
+
<div class="row">
|
59
|
+
<div class="col s12 center-align">
|
60
|
+
<h4>{{ site.data.homepage.stats.headline }}</h4>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<div class="row">
|
64
|
+
{% if site.data.homepage.stats.items.size == 3 %}
|
65
|
+
{% assign colsize = "s4" %}
|
66
|
+
{% else %}
|
67
|
+
{% assign colsize = "s3" %}
|
68
|
+
{% endif %}
|
69
|
+
|
70
|
+
{% for item in site.data.homepage.stats.items %}
|
71
|
+
<div class="col {{ colsize }} center-align">
|
72
|
+
<h1>{{ item.number }}</h1>
|
73
|
+
<p>{{ item.description }}</p>
|
74
|
+
</div>
|
75
|
+
{% endfor %}
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
{% include footer.html %}
|
81
|
+
|
82
|
+
{% include js.html %}
|
83
|
+
</body>
|
84
|
+
</html>
|
85
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014-2018 Materialize
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,55 @@
|
|
1
|
+
// Badges
|
2
|
+
span.badge {
|
3
|
+
min-width: 3rem;
|
4
|
+
padding: 0 6px;
|
5
|
+
margin-left: 14px;
|
6
|
+
text-align: center;
|
7
|
+
font-size: 1rem;
|
8
|
+
line-height: $badge-height;
|
9
|
+
height: $badge-height;
|
10
|
+
color: color('grey', 'darken-1');
|
11
|
+
float: right;
|
12
|
+
box-sizing: border-box;
|
13
|
+
|
14
|
+
&.new {
|
15
|
+
font-weight: 300;
|
16
|
+
font-size: 0.8rem;
|
17
|
+
color: #fff;
|
18
|
+
background-color: $badge-bg-color;
|
19
|
+
border-radius: 2px;
|
20
|
+
}
|
21
|
+
&.new:after {
|
22
|
+
content: " new";
|
23
|
+
}
|
24
|
+
|
25
|
+
&[data-badge-caption]::after {
|
26
|
+
content: " " attr(data-badge-caption);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
// Special cases
|
31
|
+
nav ul a span.badge {
|
32
|
+
display: inline-block;
|
33
|
+
float: none;
|
34
|
+
margin-left: 4px;
|
35
|
+
line-height: $badge-height;
|
36
|
+
height: $badge-height;
|
37
|
+
-webkit-font-smoothing: auto;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Line height centering
|
41
|
+
.collection-item span.badge {
|
42
|
+
margin-top: calc(#{$collection-line-height / 2} - #{$badge-height / 2});
|
43
|
+
}
|
44
|
+
.collapsible span.badge {
|
45
|
+
margin-left: auto;
|
46
|
+
}
|
47
|
+
.sidenav span.badge {
|
48
|
+
margin-top: calc(#{$sidenav-line-height / 2} - #{$badge-height / 2});
|
49
|
+
}
|
50
|
+
|
51
|
+
table span.badge {
|
52
|
+
display: inline-block;
|
53
|
+
float: none;
|
54
|
+
margin-left: auto;
|
55
|
+
}
|