jekyll-rebellion 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +46 -0
- data/_includes/blog-list.html +35 -0
- data/_includes/component.html +1 -0
- data/_includes/components/big-picture.html +25 -0
- data/_includes/components/contents.html +25 -0
- data/_includes/components/event-item.html +33 -0
- data/_includes/components/event-list.html +22 -0
- data/_includes/components/floating-boxes.html +37 -0
- data/_includes/components/halves.html +33 -0
- data/_includes/components/pull-quote.html +26 -0
- data/_includes/components/rich-text.html +11 -0
- data/_includes/components/section-full-width.html +8 -0
- data/_includes/components/section.html +10 -0
- data/_includes/components/text-section.html +10 -0
- data/_includes/components/youtube-video.html +16 -0
- data/_includes/desktop-header.html +35 -0
- data/_includes/footer.html +50 -0
- data/_includes/google-analytics.html +8 -0
- data/_includes/head.html +12 -0
- data/_includes/header.html +18 -0
- data/_includes/mobile-header.html +54 -0
- data/_includes/site-title.html +10 -0
- data/_includes/social-links.html +31 -0
- data/_layouts/base-post.html +59 -0
- data/_layouts/default.html +65 -0
- data/_layouts/home.html +10 -0
- data/_layouts/page.html +10 -0
- data/_layouts/post.html +9 -0
- data/_sass/rebellion.scss +44 -0
- data/_sass/rebellion/base.scss +318 -0
- data/_sass/rebellion/components.scss +326 -0
- data/_sass/rebellion/desktop-header.scss +81 -0
- data/_sass/rebellion/footer.scss +83 -0
- data/_sass/rebellion/header.scss +106 -0
- data/_sass/rebellion/mobile-header.scss +213 -0
- data/assets/css/rebellion-style.scss +50 -0
- data/assets/css/style.scss +2 -0
- data/assets/facebook.svg +4 -0
- data/assets/fucxedcaps-v2-webfont.woff +0 -0
- data/assets/fucxedcaps-v2-webfont.woff2 +0 -0
- data/assets/instagram.svg +9 -0
- data/assets/js.js +42 -0
- data/assets/logo-black.svg +5 -0
- data/assets/logo-square.svg +1 -0
- data/assets/logo-white.svg +1 -0
- data/assets/twitter.svg +4 -0
- metadata +160 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 51b5200ade4fabeda4bd69ae8ca17151ed0cd17078123983faf573568ce71ae9
|
4
|
+
data.tar.gz: 1a4fe5fc41748fc8049a205db16dbd0fc5128246e2a7a89c634cc9ba325ac6af
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c16b9a1c6503262db5c8dbaaa038467640843d1243f0308ed825338bd5178dee91130496e7f95ce52f8c01af673a61ef4ba7d878b883801ee97d7e05c708293a
|
7
|
+
data.tar.gz: 81f0a9cf6630db81a7d4e3444aefb4c7f68e619c3a16359c46baa0146205c24719b723c188280bf4fffbdcba928fef5ec36115d6af7ef6a314025f700f4d0d92
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 David Gundry
|
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,46 @@
|
|
1
|
+
# Rebellion
|
2
|
+
|
3
|
+
Rebellion is an Extinction Rebellion Jekyll theme.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your Jekyll site's `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem "jekyll-rebellion"
|
11
|
+
```
|
12
|
+
|
13
|
+
And add this line to your Jekyll site's `_config.yml`:
|
14
|
+
|
15
|
+
```yaml
|
16
|
+
theme: jekyll-rebellion
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
$ bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
$ gem install jekyll-rebellion
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
TODO: Write usage instructions here.
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/davidgundry/jekyll-rebellion. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
34
|
+
|
35
|
+
## Development
|
36
|
+
|
37
|
+
To set up your environment to develop this theme, run `bundle install`.
|
38
|
+
|
39
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
40
|
+
|
41
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` (excluding the `demo` folder) tracked with Git will be bundled. To add a custom directory to your theme-gem, please edit the regexp in `rebellion.gemspec` accordingly.
|
42
|
+
|
43
|
+
## License
|
44
|
+
|
45
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
46
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
|
2
|
+
<div markdown="0">
|
3
|
+
{% for post in posts %}
|
4
|
+
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
|
5
|
+
{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
|
6
|
+
{% capture this_day %}{{ post.date | date: "%d" }}{% endcapture %}
|
7
|
+
{% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
|
8
|
+
{% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
|
9
|
+
|
10
|
+
{% if forloop.first %}
|
11
|
+
<h2 id="{{ this_year }}-ref">{{this_year}}</h2>
|
12
|
+
<h3 id="{{ this_year }}-{{ this_month }}-ref">{{ this_month }}</h3>
|
13
|
+
<ol>
|
14
|
+
{% endif %}
|
15
|
+
|
16
|
+
<li class="li{{this_day}}"><a href="{{ post.url }}">{{ post.title }}</a></li>
|
17
|
+
|
18
|
+
{% if forloop.last %}
|
19
|
+
</ol>
|
20
|
+
{% else %}
|
21
|
+
{% if this_year != next_year %}
|
22
|
+
</ol>
|
23
|
+
<h2 id="{{ next_year }}-ref">{{next_year}}</h2>
|
24
|
+
<h3 id="{{ next_year }}-{{ next_month }}-ref">{{ next_month }}</h3>
|
25
|
+
<ol>
|
26
|
+
{% else %}
|
27
|
+
{% if this_month != next_month %}
|
28
|
+
</ol>
|
29
|
+
<h3 id="{{ this_year }}-{{ next_month }}-ref">{{ next_month }}</h3>
|
30
|
+
<ol>
|
31
|
+
{% endif %}
|
32
|
+
{% endif %}
|
33
|
+
{% endif %}
|
34
|
+
{% endfor %}
|
35
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
{% include components/{{blok.component}}.html blok=blok %}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
blok {
|
4
|
+
image: string,
|
5
|
+
jump_target: string,
|
6
|
+
jump_text: string,
|
7
|
+
show_jump_button: boolean,
|
8
|
+
half_size: boolean
|
9
|
+
}
|
10
|
+
|
11
|
+
{% endcomment %}
|
12
|
+
{{blok._editable}}
|
13
|
+
{% if blok.half_size %}
|
14
|
+
<div class="Rebellion-Section Rebellion-Half-Picture" style="background-image: url('{{blok.image}}');">
|
15
|
+
{% else %}
|
16
|
+
<div class="Rebellion-Section Rebellion-Big-Picture" style="background-image: url('{{blok.image}}');">
|
17
|
+
{% endif %}
|
18
|
+
{% if blok.show_jump_button %}
|
19
|
+
<div class="Rebellion-Near-Bottom">
|
20
|
+
<div class="Rebellion-Flex-Line">
|
21
|
+
<a href="#{{blok.jump_target}}"><span class="Rebellion-Button">{{blok.jump_text}}</span></a>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
{% endif %}
|
25
|
+
</div>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
page.story.content.body: [
|
4
|
+
{
|
5
|
+
show_in_contents: boolean,
|
6
|
+
anchor: string,
|
7
|
+
contents_title: string,
|
8
|
+
[...] other properties
|
9
|
+
}]
|
10
|
+
{% endcomment %}
|
11
|
+
{{blok._editable}}
|
12
|
+
<div class="Rebellion-Section Rebellion-Contents">
|
13
|
+
<div class="Rebellion-Wrapper-Wide">
|
14
|
+
<h2>{{ page.title }}</h2>
|
15
|
+
{% if page.story.content.body %}
|
16
|
+
<ol>
|
17
|
+
{% for page_blok in page.story.content.body %}
|
18
|
+
{% if page_blok.show_in_contents %}
|
19
|
+
<li><a href="#{{ page_blok.anchor }}">{{ page_blok.contents_title }}</a></li>
|
20
|
+
{% endif %}
|
21
|
+
{% endfor %}
|
22
|
+
</ol>
|
23
|
+
{% endif %}
|
24
|
+
</div>
|
25
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
blok {
|
4
|
+
day: string,
|
5
|
+
month: string,
|
6
|
+
summary: string,
|
7
|
+
time: string,
|
8
|
+
location: string,
|
9
|
+
image: string
|
10
|
+
url: string
|
11
|
+
}
|
12
|
+
|
13
|
+
{% endcomment %}
|
14
|
+
{{blok._editable}}
|
15
|
+
<div class="Rebellion-Event-Item">
|
16
|
+
<div class="top">
|
17
|
+
<div class="date">
|
18
|
+
<span class="day-number">{{ blok.day }}</span>
|
19
|
+
<span class="month">{{ blok.month }}</span>
|
20
|
+
</div>
|
21
|
+
<div class="description">
|
22
|
+
<h3>{{ blok.summary }}</h3>
|
23
|
+
<time>{{ blok.time }}</time>
|
24
|
+
<div class="bottom-line">
|
25
|
+
<p>{{ blok.location }}</p>
|
26
|
+
<a href="{{ blok.url }}" class="Rebellion-Button">Details</a>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
{% if blok.image %}
|
31
|
+
<img src="{{ blok.image }}" />
|
32
|
+
{% endif %}
|
33
|
+
</div>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
blok {
|
4
|
+
events: [
|
5
|
+
{
|
6
|
+
day: string,
|
7
|
+
month: string,
|
8
|
+
summary: string,
|
9
|
+
time: string,
|
10
|
+
location: string,
|
11
|
+
image: string,
|
12
|
+
component: "event-item"
|
13
|
+
}]
|
14
|
+
}
|
15
|
+
|
16
|
+
{% endcomment %}
|
17
|
+
{{blok._editable}}
|
18
|
+
<div class="Rebellion-Event-List">
|
19
|
+
{% for blok in blok.body %}
|
20
|
+
{% include component.html blok=blok %}
|
21
|
+
{% endfor %}
|
22
|
+
</div>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
blok {
|
4
|
+
title: string,
|
5
|
+
show_title: boolean,
|
6
|
+
boxes: [
|
7
|
+
{
|
8
|
+
title: string,
|
9
|
+
text: string,
|
10
|
+
link: {
|
11
|
+
url: string
|
12
|
+
}
|
13
|
+
button_text: string
|
14
|
+
}]
|
15
|
+
}
|
16
|
+
|
17
|
+
{% endcomment %}
|
18
|
+
{{blok._editable}}
|
19
|
+
<div class="Rebellion-Section">
|
20
|
+
{% if blok.anchor %}
|
21
|
+
<a id="{{ blok.anchor }}"></a>
|
22
|
+
{% endif %}
|
23
|
+
{% if blok.show_title %}
|
24
|
+
<h1>{{ blok.title }}</h1>
|
25
|
+
{% endif %}
|
26
|
+
<div class="Rebellion-Floating-Boxes">
|
27
|
+
{% for box in blok.boxes %}
|
28
|
+
<div class="Rebellion-Floating-Box">
|
29
|
+
<h2>{{ box.title }}</h2>
|
30
|
+
<p>{{ box.text }}</p>
|
31
|
+
{% unless box.hide_link %}
|
32
|
+
<div class="at-bottom"><div class="Rebellion-Flex-Line"><a href="{{ box.link.url }}"><span class="Rebellion-Button">{{ box.button_text }}</span></a></div></div>
|
33
|
+
{% endunless %}
|
34
|
+
</div>
|
35
|
+
{% endfor %}
|
36
|
+
</div>
|
37
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
blok {
|
4
|
+
image: string,
|
5
|
+
image_side: "right" || "left"
|
6
|
+
body: [
|
7
|
+
{
|
8
|
+
component: string
|
9
|
+
[...] other properties
|
10
|
+
}]
|
11
|
+
color: color string
|
12
|
+
invert_text_color: boolean
|
13
|
+
anchor: string
|
14
|
+
}
|
15
|
+
|
16
|
+
{% endcomment %}
|
17
|
+
{{blok._editable}}
|
18
|
+
<div class="Rebellion-Halves image-{{blok.image_side}}">
|
19
|
+
{% if blok.anchor %}
|
20
|
+
<a id="{{ blok.anchor }}"></a>
|
21
|
+
{% endif %}
|
22
|
+
{% if blok.change_background_color && blok.color %}
|
23
|
+
<div class="half{% if blok.invert_text_color == true %} invert-text{% endif %}" style="background-color:{{ blok.color.color }};">
|
24
|
+
{% else %}
|
25
|
+
<div class="half">
|
26
|
+
{% endif %}
|
27
|
+
|
28
|
+
{% for blok in blok.body %}
|
29
|
+
{% include component.html blok=blok %}
|
30
|
+
{% endfor %}
|
31
|
+
</div>
|
32
|
+
<div class="half half-image" style="background-image: url('{{ blok.image }}')"></div>
|
33
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
blok {
|
4
|
+
text: string,
|
5
|
+
show_join: boolean,
|
6
|
+
show_donate: boolean
|
7
|
+
}
|
8
|
+
|
9
|
+
{% endcomment %}
|
10
|
+
{{blok._editable}}
|
11
|
+
<div class="Rebellion-Section Rebellion-PullQuote">
|
12
|
+
<div class="Rebellion-Wrapper-Wide">
|
13
|
+
<h1>{{blok.text}}</h1>
|
14
|
+
{% if blok.show_join or blok.show_donate %}
|
15
|
+
<div class="Rebellion-Flex-Line">
|
16
|
+
{% if blok.show_join %}
|
17
|
+
<a href="{{ site.join }}"><span class="Rebellion-Button">Join Us</span></a>
|
18
|
+
{% endif %}
|
19
|
+
{% if blok.show_donate %}
|
20
|
+
<a href="{{ site.donate }}"><span class="Rebellion-Button">Donate</span></a>
|
21
|
+
{% endif %}
|
22
|
+
</div>
|
23
|
+
{% endif %}
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
blok {
|
4
|
+
video_id: string
|
5
|
+
}
|
6
|
+
|
7
|
+
{% endcomment %}
|
8
|
+
{{ blok._editable }}
|
9
|
+
<div class="Rebellion-Youtube-Video">
|
10
|
+
<iframe
|
11
|
+
src="https://www.youtube-nocookie.com/embed/{{ blok.video_id }}?rel=0;"
|
12
|
+
frameborder="0"
|
13
|
+
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
14
|
+
allowfullscreen>
|
15
|
+
</iframe>
|
16
|
+
</div>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<nav class="desktop">
|
2
|
+
<div class="edgePadding"></div>
|
3
|
+
{% include site-title.html %}
|
4
|
+
<div class="centralPadding"></div>
|
5
|
+
|
6
|
+
{%- for path in page_paths -%}
|
7
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
8
|
+
|
9
|
+
{% assign excluded_layout = false %}
|
10
|
+
{% for tag in site.main_nav_exclude_layouts %}
|
11
|
+
{% if tag == my_page.layout %}
|
12
|
+
{% assign excluded_layout = true %}
|
13
|
+
{% endif %}
|
14
|
+
{% endfor %}
|
15
|
+
|
16
|
+
{%- unless my_page.main_nav_exclude or excluded_layout -%}
|
17
|
+
{%- if my_page.title -%}
|
18
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
19
|
+
{% unless path == page_paths.last %}
|
20
|
+
<div class="withinPadding"></div>
|
21
|
+
{% endunless %}
|
22
|
+
{%- endif -%}
|
23
|
+
{%- endunless -%}
|
24
|
+
{%- endfor -%}
|
25
|
+
|
26
|
+
<div class="social-links-padding"></div>
|
27
|
+
{% include social-links.html %}
|
28
|
+
|
29
|
+
{% if site.donate %}
|
30
|
+
<div class="withinPadding"></div>
|
31
|
+
<a class="Rebellion-Button" href="{{ site.donate }}">Donate</a>
|
32
|
+
{% endif %}
|
33
|
+
|
34
|
+
<div class="edgePadding"></div>
|
35
|
+
</nav>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<footer class="Rebellion-Footer">
|
2
|
+
<div class="Rebellion-Wrapper-Narrow">
|
3
|
+
<div class="logo-line">
|
4
|
+
<a class="site-title" rel="author" href="{{ "/" | relative_url }}" title="{{ site.title }}">
|
5
|
+
{% if site.logo_light %}
|
6
|
+
<img class="main-logo" src="{{ site.logo_light }}" alt="{{ site.title | escape }}"/>
|
7
|
+
{% else %}
|
8
|
+
<span>{{ site.title | escape }}</span>
|
9
|
+
{% endif %}
|
10
|
+
</a>
|
11
|
+
|
12
|
+
{% include social-links.html %}
|
13
|
+
</div>
|
14
|
+
<nav>
|
15
|
+
<div class="col">
|
16
|
+
{%- for path in page_paths -%}
|
17
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
18
|
+
{% assign excluded_layout = false %}
|
19
|
+
{% for tag in site.main_nav_exclude_layouts %}
|
20
|
+
{% if tag == my_page.layout %}
|
21
|
+
{% assign excluded_layout = true %}
|
22
|
+
{% endif %}
|
23
|
+
{% endfor %}
|
24
|
+
|
25
|
+
{%- unless my_page.main_nav_exclude or excluded_layout -%}
|
26
|
+
{%- if my_page.title -%}
|
27
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
28
|
+
{%- endif -%}
|
29
|
+
{% endunless %}
|
30
|
+
{%- endfor -%}
|
31
|
+
|
32
|
+
</div>
|
33
|
+
<div class="col">
|
34
|
+
{%- for path in page_paths -%}
|
35
|
+
{%- assign my_page = site.pages | where: "path", path | first -%}
|
36
|
+
{%- if my_page.footer_nav_include -%}
|
37
|
+
{%- if my_page.title -%}
|
38
|
+
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
39
|
+
{%- endif -%}
|
40
|
+
{% endif %}
|
41
|
+
{%- endfor -%}
|
42
|
+
</div>
|
43
|
+
</nav>
|
44
|
+
</div>
|
45
|
+
<p>This site uses the <a href="https://github.com/davidgundry/rebellion/">Rebellion</a> theme for Jekyll.
|
46
|
+
{% if site.copyright_notice %}
|
47
|
+
{{ site.copyright_notice }}
|
48
|
+
{% endif %}
|
49
|
+
</p>
|
50
|
+
</footer>
|