jekyll-theme-easy-wedding 0.1.13 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +48 -52
- data/_includes/celebrations.html +5 -0
- data/_includes/footer.html +1 -3
- data/_includes/photo-gallery.html +2 -2
- data/assets/css/styles.scss +65 -0
- data/assets/main-bundle.js +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 849a775c2703eb2d4e50e5900d4d1a0a07acfc92da5ba07c1c77b090e8e1fefc
|
4
|
+
data.tar.gz: 8c3a806b0ae42bf94f2d907a04137249775532e75db8b581dae60297ebdd56e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7b740f2a5af1693dee42ea37eddde5d731b6a0c67191fc4d186c2634a4a1c67eb18378e8bca00278e44da9e94e62c1c0d6bf46729aa4d5adb4d6968746d84cc
|
7
|
+
data.tar.gz: 22428c98919b47d89a6021a3003947dfee9293b0e1c4514f0a04aef15aff51f7d494f53168f0cc0bdf131e24f1a8e25de6404d0d92fde8f28608e5bac9ba8165
|
data/README.md
CHANGED
@@ -1,52 +1,48 @@
|
|
1
|
-
# jekyll-theme-easy-wedding
|
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
|
-
## License
|
50
|
-
|
51
|
-
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
52
|
-
|
1
|
+
# jekyll-theme-easy-wedding
|
2
|
+
Are you or a friend getting married? Do you want a quick way to make a **customizable** website? This is the theme for you! When I got married, I created a website to commemorate the occasion as well provide information to my guests. Then, I had a bunch of friends get married, and they wanted me to make them a site too. So, instead of making _basically_ the same site over and over, I decided to templatize it so that I just have to change the data in a yaml file.
|
3
|
+
|
4
|
+
Most of the original work is from https://github.com/cbaclig/wedding and is thanks to [@cbaclig](https://github.com/cbaclig).
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your Jekyll site's `Gemfile`:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "jekyll-theme-easy-wedding"
|
12
|
+
```
|
13
|
+
|
14
|
+
And add this line to your Jekyll site's `_config.yml`:
|
15
|
+
|
16
|
+
```yaml
|
17
|
+
theme: jekyll-theme-easy-wedding
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle
|
23
|
+
|
24
|
+
Or install it yourself as:
|
25
|
+
|
26
|
+
$ gem install jekyll-theme-easy-wedding
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
The best place to start is by copying the [example folder](https://github.com/cnorick/jekyll-theme-easy-wedding/tree/main/example) to your project, then start editing the .yaml files in [\_data](https://github.com/cnorick/jekyll-theme-easy-wedding/tree/main/example/\_data) to customize the site for your needs.
|
31
|
+
|
32
|
+
## Contributing
|
33
|
+
|
34
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. 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.
|
35
|
+
|
36
|
+
## Development
|
37
|
+
|
38
|
+
To set up your environment to develop this theme, run `bundle install`.
|
39
|
+
|
40
|
+
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.
|
41
|
+
|
42
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
43
|
+
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-easy-wedding.gemspec` accordingly.
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
48
|
+
|
data/_includes/celebrations.html
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
{% for event in site.data.events %}
|
2
2
|
<section class="container content-section">
|
3
|
+
{% if site.data.events.size == 1 %}
|
4
|
+
<div class="row justify-content-center">
|
5
|
+
{% else %}
|
3
6
|
<div class="row {% cycle 'justify-content-start', 'justify-content-end' %}">
|
7
|
+
{% endif %}
|
8
|
+
|
4
9
|
<div class="col-lg-7 col-sm-8">
|
5
10
|
<h2>
|
6
11
|
{{ event.name }}
|
data/_includes/footer.html
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
<footer class="site-footer">
|
2
2
|
<p>
|
3
|
-
Custom Wedding Sites, Crafted with 💙
|
4
|
-
<br/>
|
5
|
-
by <a href="https://content.nathanorick.com/weddings/landing">Nathan and Sarah</a>
|
3
|
+
Custom Wedding Sites, Crafted with 💙 by <a href="https://content.nathanorick.com/weddings/landing">Nathan and Sarah</a>
|
6
4
|
</p>
|
7
5
|
</footer>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
width: 300px;
|
11
11
|
height: auto;
|
12
12
|
padding: 15px;
|
13
|
-
border: solid 1px
|
13
|
+
border: solid 1px var(--secondary-color-darker);
|
14
14
|
margin: 8px;
|
15
|
-
background-color:
|
15
|
+
background-color: var(--secondary-color);
|
16
16
|
cursor: zoom-in;
|
17
17
|
}
|
18
18
|
</style>
|
data/assets/css/styles.scss
CHANGED
@@ -1,7 +1,72 @@
|
|
1
1
|
---
|
2
2
|
---
|
3
3
|
|
4
|
+
@use "sass:color";
|
5
|
+
|
6
|
+
@function text-clr($color) {
|
7
|
+
@if (lightness($color) > 50) {
|
8
|
+
@return #000;
|
9
|
+
} @else {
|
10
|
+
@return #fff;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
// Theme Variables
|
15
|
+
$text-color: {{site.data.settings.theme.text_color | default: "#404040"}};
|
16
|
+
|
17
|
+
$primary-color: {{site.data.settings.theme.primary_color | default: "#fff"}};
|
18
|
+
$primary-text-color: text-clr($primary-color);
|
19
|
+
$primary-color-darker: scale-color({{site.data.settings.theme.primary_color | default: "#fff"}}, $lightness: -10%);
|
20
|
+
$primary-text-color-darker: text-clr($primary-color-darker);
|
21
|
+
$primary-color-darkest: scale-color({{site.data.settings.theme.primary_color | default: "#fff"}}, $lightness: -30%);
|
22
|
+
$primary-text-color-darkest: text-clr($primary-color-darkest);
|
23
|
+
|
24
|
+
$secondary-color: {{site.data.settings.theme.secondary_color | default: "#afa63d"}};
|
25
|
+
$secondary-text-color: text-clr($secondary-color);
|
26
|
+
$secondary-color-darker: scale-color({{site.data.settings.theme.secondary_color | default: "#fff"}}, $lightness: -10%);
|
27
|
+
$secondary-text-color-darker: text-clr($secondary-color-darker);
|
28
|
+
$secondary-color-darkest: scale-color({{site.data.settings.theme.secondary_color | default: "#fff"}}, $lightness: -30%);
|
29
|
+
$secondary-text-color-darkest: text-clr($secondary-color-darkest);
|
30
|
+
|
31
|
+
$accent-color: {{site.data.settings.theme.accent_color | default: "#219ab3"}};
|
32
|
+
$accent-color-darker: scale-color({{site.data.settings.theme.accent_color | default: "#fff"}}, $lightness: -10%);
|
33
|
+
$accent-color-darkest: scale-color({{site.data.settings.theme.accent_color | default: "#fff"}}, $lightness: -30%);
|
34
|
+
|
35
|
+
$background-color: {{site.data.settings.theme.background_color | default: "#fff"}};
|
36
|
+
|
4
37
|
:root {
|
5
38
|
--intro-background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 0%,
|
6
39
|
rgba(0,0,0,0.65) 100%),url({{site.data.settings.hero_image}}) no-repeat center center scroll;
|
40
|
+
|
41
|
+
--intro-background-position: {{site.data.settings.hero_position | default: "center center"}};
|
42
|
+
|
43
|
+
@media (max-width: 767px) {
|
44
|
+
{% if site.data.settings.mobile_hero_image %}
|
45
|
+
--intro-background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 0%,
|
46
|
+
rgba(0,0,0,0.65) 100%),url({{site.data.settings.mobile_hero_image}}) no-repeat center center scroll;
|
47
|
+
--intro-background-position: {{site.data.settings.mobile_hero_position | default: "center center"}};
|
48
|
+
{% endif %}
|
49
|
+
}
|
50
|
+
|
51
|
+
--text-color: #{$text-color};
|
52
|
+
|
53
|
+
--primary-color: #{$primary-color};
|
54
|
+
--primary-color-darker: #{$primary-color-darker};
|
55
|
+
--primary-color-darkest: #{$primary-color-darkest};
|
56
|
+
--primary-text-color: #{$primary-text-color};
|
57
|
+
--primary-text-color-darker: #{$primary-text-color-darker};
|
58
|
+
--primary-text-color-darkest: #{$primary-text-color-darkest};
|
59
|
+
|
60
|
+
--secondary-color: #{$secondary-color};
|
61
|
+
--secondary-color-darker: #{$secondary-color-darker};
|
62
|
+
--secondary-color-darkest: #{$secondary-color-darkest};
|
63
|
+
--secondary-text-color: #{$secondary-text-color};
|
64
|
+
--secondary-text-color-darker: #{$secondary-text-color-darker};
|
65
|
+
--secondary-text-color-darkest: #{$secondary-text-color-darkest};
|
66
|
+
|
67
|
+
--accent-color: #{$accent-color};
|
68
|
+
--accent-color-darker: #{$accent-color-darker};
|
69
|
+
--accent-color-darkest: #{$accent-color-darkest};
|
70
|
+
|
71
|
+
--background-color: #{$background-color};
|
7
72
|
}
|