prosecco 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +100 -0
  4. data/_includes/footer.html +1 -0
  5. data/_includes/head.html +8 -0
  6. data/_includes/header.html +11 -0
  7. data/_includes/nav.html +9 -0
  8. data/_includes/post_preview.html +17 -0
  9. data/_layouts/archive.html +32 -0
  10. data/_layouts/default.html +15 -0
  11. data/_layouts/home.html +43 -0
  12. data/_layouts/post.html +38 -0
  13. data/_sass/bulma.sass +10 -0
  14. data/_sass/sass/base/_all.sass +5 -0
  15. data/_sass/sass/base/generic.sass +143 -0
  16. data/_sass/sass/base/helpers.sass +1 -0
  17. data/_sass/sass/base/minireset.sass +79 -0
  18. data/_sass/sass/components/_all.sass +15 -0
  19. data/_sass/sass/components/breadcrumb.sass +75 -0
  20. data/_sass/sass/components/card.sass +83 -0
  21. data/_sass/sass/components/dropdown.sass +81 -0
  22. data/_sass/sass/components/level.sass +77 -0
  23. data/_sass/sass/components/media.sass +52 -0
  24. data/_sass/sass/components/menu.sass +57 -0
  25. data/_sass/sass/components/message.sass +99 -0
  26. data/_sass/sass/components/modal.sass +115 -0
  27. data/_sass/sass/components/navbar.sass +443 -0
  28. data/_sass/sass/components/pagination.sass +150 -0
  29. data/_sass/sass/components/panel.sass +119 -0
  30. data/_sass/sass/components/tabs.sass +174 -0
  31. data/_sass/sass/elements/_all.sass +16 -0
  32. data/_sass/sass/elements/box.sass +24 -0
  33. data/_sass/sass/elements/button.sass +325 -0
  34. data/_sass/sass/elements/container.sass +27 -0
  35. data/_sass/sass/elements/content.sass +155 -0
  36. data/_sass/sass/elements/form.sass +1 -0
  37. data/_sass/sass/elements/icon.sass +21 -0
  38. data/_sass/sass/elements/image.sass +71 -0
  39. data/_sass/sass/elements/notification.sass +50 -0
  40. data/_sass/sass/elements/other.sass +39 -0
  41. data/_sass/sass/elements/progress.sass +71 -0
  42. data/_sass/sass/elements/table.sass +131 -0
  43. data/_sass/sass/elements/tag.sass +138 -0
  44. data/_sass/sass/elements/title.sass +70 -0
  45. data/_sass/sass/form/_all.sass +9 -0
  46. data/_sass/sass/form/checkbox-radio.sass +22 -0
  47. data/_sass/sass/form/file.sass +182 -0
  48. data/_sass/sass/form/input-textarea.sass +66 -0
  49. data/_sass/sass/form/select.sass +87 -0
  50. data/_sass/sass/form/shared.sass +57 -0
  51. data/_sass/sass/form/tools.sass +215 -0
  52. data/_sass/sass/grid/_all.sass +5 -0
  53. data/_sass/sass/grid/columns.sass +504 -0
  54. data/_sass/sass/grid/tiles.sass +34 -0
  55. data/_sass/sass/helpers/_all.sass +12 -0
  56. data/_sass/sass/helpers/color.sass +37 -0
  57. data/_sass/sass/helpers/flexbox.sass +35 -0
  58. data/_sass/sass/helpers/float.sass +8 -0
  59. data/_sass/sass/helpers/other.sass +11 -0
  60. data/_sass/sass/helpers/overflow.sass +2 -0
  61. data/_sass/sass/helpers/position.sass +5 -0
  62. data/_sass/sass/helpers/spacing.sass +31 -0
  63. data/_sass/sass/helpers/typography.sass +98 -0
  64. data/_sass/sass/helpers/visibility.sass +122 -0
  65. data/_sass/sass/layout/_all.sass +6 -0
  66. data/_sass/sass/layout/footer.sass +9 -0
  67. data/_sass/sass/layout/hero.sass +147 -0
  68. data/_sass/sass/layout/section.sass +13 -0
  69. data/_sass/sass/utilities/_all.sass +9 -0
  70. data/_sass/sass/utilities/animations.sass +5 -0
  71. data/_sass/sass/utilities/controls.sass +50 -0
  72. data/_sass/sass/utilities/derived-variables.sass +107 -0
  73. data/_sass/sass/utilities/functions.sass +115 -0
  74. data/_sass/sass/utilities/initial-variables.sass +78 -0
  75. data/_sass/sass/utilities/mixins.sass +285 -0
  76. data/assets/css/markdown_styles.scss +41 -0
  77. data/assets/css/style.scss +7 -0
  78. data/assets/css/syntax.css +60 -0
  79. metadata +176 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 37021b48a49fafa941bc2c566458d81df4846ed73cecdcc8a2ab583f57631aa5
4
+ data.tar.gz: b6172cd8a9ec4896478331887dd92076785d19c00bed99aa1029b687cf4b4b65
5
+ SHA512:
6
+ metadata.gz: 4d0e1ec8aa9fdc408ef6a5779ba9cee49f49b3438332b9cf263a180c0368cfcbb28649ea3b0bf9abd58c565c96834aef03cbdcf3752cfa773ac0b1f033f137e7
7
+ data.tar.gz: aae3bffeeed5c7c518e1f25c29654036e982647e7db0ed0f27beb77d4e02e0f24dd505cbb75ceb8a7c0d878f2ec5d06636fd8356dbdd8fb6f14d08d5e0b76e6f
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Spencer Dixon
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.
@@ -0,0 +1,100 @@
1
+ # Prosecco 🍾
2
+
3
+ A clean, minimal jekyll blog theme built with Bulma.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your Jekyll site's `Gemfile`:
8
+
9
+ ```ruby
10
+ gem "prosecco"
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ theme: prosecco
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install prosecco
26
+
27
+ ## Layouts
28
+
29
+ There are four layouts avaiable:
30
+
31
+ - Home - (from top to bottom) shows the header, menu, allows content, then displays paginated list of latest posts
32
+ - Archive - shows the header, menu, and a list of blog posts
33
+ - Default - everything inherits from this, use for blank pages
34
+ - Post - Duplicate of default, but with styles enforced for markdown and syntax highlighting, use for blog posts
35
+
36
+
37
+ ## Config
38
+
39
+ Some important config bits you'll need to set up in your `_config.yml`
40
+
41
+ ```
42
+ # Basic
43
+ theme: prosecco
44
+ title: "Spencer Dixon"
45
+ tagline: "Contract Ruby Developer"
46
+ profile_image: 'me2.jpg' # this looks in assets/images
47
+ footer_text: 'Made with Prosecco, a Jekyll theme I made while drinking Prosecco.'
48
+
49
+ timezone: Europe/London
50
+ permalink: /:year-:month-:day/:title/
51
+
52
+ # Pagination
53
+ paginate: 5
54
+ paginate_path: /page:num/
55
+
56
+ # Markdown
57
+ markdown: kramdown
58
+ highlighter: rouge
59
+ kramdown:
60
+ input: GFM
61
+
62
+ # Sass
63
+ sass:
64
+ sass_dir: _sass
65
+ style: :compressed
66
+
67
+ # Navigation
68
+ nav:
69
+ - name: "Home"
70
+ url: "/"
71
+ - name: "Archive"
72
+ url: "/archive"
73
+ - name: "Github"
74
+ url: "https://github.com/spencerldixon"
75
+
76
+ # Plugins
77
+ plugins:
78
+ - jekyll-paginate
79
+ - jemoji
80
+ ```
81
+
82
+
83
+
84
+ ## Contributing
85
+
86
+ Bug reports and pull requests are welcome on GitHub at https://github.com/spencerldixon/prosecco. 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.
87
+
88
+ ## Development
89
+
90
+ To set up your environment to develop this theme, run `bundle install`.
91
+
92
+ 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.
93
+
94
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
95
+ To add a custom directory to your theme-gem, please edit the regexp in `prosecco.gemspec` accordingly.
96
+
97
+ ## License
98
+
99
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
100
+
@@ -0,0 +1 @@
1
+ <p class="has-text-grey has-text-centered my-5 is-size-7">{{ site.footer_text }}</p>
@@ -0,0 +1,8 @@
1
+ <head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width,initial-scale=1">
4
+ <title>{{ site.title }}</title>
5
+ <link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon">
6
+ <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}" type="text/css">
7
+ <link rel="stylesheet" href="{{ "/assets/css/syntax.css" | relative_url }}" type="text/css">
8
+ </head>
@@ -0,0 +1,11 @@
1
+ <div class="is-flex is-flex-direction-column mt-6 mb-5 is-align-items-center is-justify-content-center">
2
+ <figure class="image is-128x128 mb-2">
3
+ <img class="is-rounded" src="{{ site.baseurl }}/assets/images/{{ site.profile_image }}">
4
+ </figure>
5
+
6
+
7
+ <h1 class="title">{{ site.title }}</h1>
8
+ <p class="subtitle is-4">{{ site.tagline }}</p>
9
+ </div>
10
+
11
+ {% include nav.html %}
@@ -0,0 +1,9 @@
1
+ <nav class="is-flex is-align-items-center is-justify-content-center is-flex-wrap-wrap mb-6">
2
+ {% for nav in site.nav %}
3
+ {% if nav.url contains 'http://' or nav.url contains 'https://' %}
4
+ <a class="button is-rounded m-1" href="{{ nav.url }}">{{ nav.name }}</a>
5
+ {% else %}
6
+ <a class="button is-rounded m-1" href="{{ nav.url | prepend: site.baseurl }}">{{ nav.name }}</a>
7
+ {% endif %}
8
+ {% endfor %}
9
+ </nav>
@@ -0,0 +1,17 @@
1
+ <div class="card mb-4">
2
+ <div class="card-content">
3
+ {% if post.link %}
4
+ <a href="{{ post.link }}">
5
+ {% else %}
6
+ <a href="{{ post.url | prepend: site.baseurl }}">
7
+ {% endif %}
8
+
9
+ <p class="title">{{ post.title }}</p>
10
+ </a>
11
+
12
+ <p class="subtitle">{{ post.date | date_to_string }}</p>
13
+ {% if post.description %}
14
+ <p>{{ post.description }}</p>
15
+ {% endif %}
16
+ </div>
17
+ </div>
@@ -0,0 +1,32 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ <div class="card">
8
+ <div class="card-content">
9
+ {% if site.posts.size == 0 %}
10
+ <h2>No posts found</h2>
11
+ {% else %}
12
+
13
+ {% for post in site.posts %}
14
+
15
+ <div class="is-flex is-justify-content-space-between my-5">
16
+ {% if post.link %}
17
+ <a href="{{ post.link }}">
18
+ {% else %}
19
+ <a href="{{ post.url | prepend: site.baseurl }}">
20
+ {% endif %}
21
+
22
+ <p class="title">{{ post.title }}</p>
23
+ </a>
24
+
25
+ <time class="subtitle">{{ post.date | date_to_string }}</time>
26
+ </div>
27
+
28
+
29
+ {% endfor %}
30
+ {% endif %}
31
+ </div>
32
+ </div>
@@ -0,0 +1,15 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ {% include head.html %}
4
+
5
+ <body>
6
+ <div class="container is-max-desktop">
7
+ {% include header.html %}
8
+ {{ content }}
9
+ {% include footer.html %}
10
+ </div>
11
+
12
+ <script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.5.3/modernizr.min.js" type="text/javascript"></script>
13
+ </body>
14
+ </html>
15
+
@@ -0,0 +1,43 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ <div class="is-flex my-6 is-justify-content-center">
8
+ <h1 class="title">📝 Latest Posts</h1>
9
+ </div>
10
+
11
+ {% if site.posts.size == 0 %}
12
+ <h2>No post found</h2>
13
+ {% else %}
14
+
15
+ {% for post in paginator.posts %}
16
+ {% include post_preview.html %}
17
+ {% endfor %}
18
+
19
+ <!-- Pagination links -->
20
+ <div class="list-pagination is-flex my-6 is-justify-content-center">
21
+ <span class="list-pagination-previous">
22
+ {% if paginator.previous_page %}
23
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="previous button is-rounded is-primary">
24
+ 👈 Previous
25
+ </a>
26
+ {% else %}
27
+
28
+ {% endif %}
29
+ </span>
30
+
31
+ <span class="list-pagination-next">
32
+ {% if paginator.next_page %}
33
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="next button is-rounded is-primary">
34
+ Next 👉
35
+ </a>
36
+ {% else %}
37
+
38
+ {% endif %}
39
+ </span>
40
+
41
+ </div>
42
+ {% endif %}
43
+ </div>
@@ -0,0 +1,38 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <title>{{ site.title }}</title>
7
+ <link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon">
8
+ <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}" type="text/css">
9
+ <link rel="stylesheet" href="{{ "/assets/css/markdown_styles.css" | relative_url }}" type="text/css">
10
+ <link rel="stylesheet" href="{{ "/assets/css/syntax.css" | relative_url }}" type="text/css">
11
+ </head>
12
+
13
+ <body>
14
+ <div class="container is-max-desktop">
15
+ {% include header.html %}
16
+
17
+ <div class="mb-6 has-text-centered">
18
+ <h1 class="title is-size-1">{{ page.title }}</h1>
19
+ <h2 class="subtitle mt-1">{{ page.date | date_to_string }}</h2>
20
+ </div>
21
+
22
+ <div class="card">
23
+ <div class="card-content">
24
+ {{ content }}
25
+ </div>
26
+ </div>
27
+
28
+ {% include footer.html %}
29
+ </div>
30
+
31
+ <script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.5.3/modernizr.min.js" type="text/javascript"></script>
32
+ </body>
33
+ </html>
34
+
35
+
36
+
37
+
38
+
@@ -0,0 +1,10 @@
1
+ @charset "utf-8"
2
+ /*! bulma.io v0.9.1 | MIT License | github.com/jgthms/bulma */
3
+ @import "sass/utilities/_all"
4
+ @import "sass/base/_all"
5
+ @import "sass/elements/_all"
6
+ @import "sass/form/_all"
7
+ @import "sass/components/_all"
8
+ @import "sass/grid/_all"
9
+ @import "sass/helpers/_all"
10
+ @import "sass/layout/_all"
@@ -0,0 +1,5 @@
1
+ /* Bulma Base */
2
+ @charset "utf-8"
3
+
4
+ @import "minireset.sass"
5
+ @import "generic.sass"
@@ -0,0 +1,143 @@
1
+ $body-background-color: $scheme-main !default
2
+ $body-size: 16px !default
3
+ $body-min-width: 300px !default
4
+ $body-rendering: optimizeLegibility !default
5
+ $body-family: $family-primary !default
6
+ $body-overflow-x: hidden !default
7
+ $body-overflow-y: scroll !default
8
+
9
+ $body-color: $text !default
10
+ $body-font-size: 1em !default
11
+ $body-weight: $weight-normal !default
12
+ $body-line-height: 1.5 !default
13
+
14
+ $code-family: $family-code !default
15
+ $code-padding: 0.25em 0.5em 0.25em !default
16
+ $code-weight: normal !default
17
+ $code-size: 0.875em !default
18
+
19
+ $small-font-size: 0.875em !default
20
+
21
+ $hr-background-color: $background !default
22
+ $hr-height: 2px !default
23
+ $hr-margin: 1.5rem 0 !default
24
+
25
+ $strong-color: $text-strong !default
26
+ $strong-weight: $weight-bold !default
27
+
28
+ $pre-font-size: 0.875em !default
29
+ $pre-padding: 1.25rem 1.5rem !default
30
+ $pre-code-font-size: 1em !default
31
+
32
+ html
33
+ background-color: $body-background-color
34
+ font-size: $body-size
35
+ -moz-osx-font-smoothing: grayscale
36
+ -webkit-font-smoothing: antialiased
37
+ min-width: $body-min-width
38
+ overflow-x: $body-overflow-x
39
+ overflow-y: $body-overflow-y
40
+ text-rendering: $body-rendering
41
+ text-size-adjust: 100%
42
+
43
+ article,
44
+ aside,
45
+ figure,
46
+ footer,
47
+ header,
48
+ hgroup,
49
+ section
50
+ display: block
51
+
52
+ body,
53
+ button,
54
+ input,
55
+ optgroup,
56
+ select,
57
+ textarea
58
+ font-family: $body-family
59
+
60
+ code,
61
+ pre
62
+ -moz-osx-font-smoothing: auto
63
+ -webkit-font-smoothing: auto
64
+ font-family: $code-family
65
+
66
+ body
67
+ color: $body-color
68
+ font-size: $body-font-size
69
+ font-weight: $body-weight
70
+ line-height: $body-line-height
71
+
72
+ // Inline
73
+
74
+ a
75
+ color: $link
76
+ cursor: pointer
77
+ text-decoration: none
78
+ strong
79
+ color: currentColor
80
+ &:hover
81
+ color: $link-hover
82
+
83
+ code
84
+ background-color: $code-background
85
+ color: $code
86
+ font-size: $code-size
87
+ font-weight: $code-weight
88
+ padding: $code-padding
89
+
90
+ hr
91
+ background-color: $hr-background-color
92
+ border: none
93
+ display: block
94
+ height: $hr-height
95
+ margin: $hr-margin
96
+
97
+ img
98
+ height: auto
99
+ max-width: 100%
100
+
101
+ input[type="checkbox"],
102
+ input[type="radio"]
103
+ vertical-align: baseline
104
+
105
+ small
106
+ font-size: $small-font-size
107
+
108
+ span
109
+ font-style: inherit
110
+ font-weight: inherit
111
+
112
+ strong
113
+ color: $strong-color
114
+ font-weight: $strong-weight
115
+
116
+ // Block
117
+
118
+ fieldset
119
+ border: none
120
+
121
+ pre
122
+ +overflow-touch
123
+ background-color: $pre-background
124
+ color: $pre
125
+ font-size: $pre-font-size
126
+ overflow-x: auto
127
+ padding: $pre-padding
128
+ white-space: pre
129
+ word-wrap: normal
130
+ code
131
+ background-color: transparent
132
+ color: currentColor
133
+ font-size: $pre-code-font-size
134
+ padding: 0
135
+
136
+ table
137
+ td,
138
+ th
139
+ vertical-align: top
140
+ &:not([align])
141
+ text-align: inherit
142
+ th
143
+ color: $text-strong