jekyll-theme-projects 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bc2c5904a8cea91c6195ba97e1ae930e407372f5e63d3b3d4435c396f5b57131
4
+ data.tar.gz: a3c54a4455c474f12c5563f16872115a53917f4dbcc63c670b6dff24d82d19fd
5
+ SHA512:
6
+ metadata.gz: 005f1009f54f151c7944ba0f4d50b890d5010fdf71f46d94d0f5186a6015da43017bf93a407f41fb963fcafd2b693e3a930cbed623a57514e5de66f80f5a35ab
7
+ data.tar.gz: fc20b0ea086e10fc64449298635a5083875f5fe48665fa89e33c2261a359a9adfdcbf910431a2257ba6f3b2c5cc46cb7af6bb6770c481dfdf1246a38e8dd4f0b
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Sylvan Le Deunff
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,52 @@
1
+ # theme
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "theme"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: theme
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install theme
31
+
32
+ ## Usage
33
+
34
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+
36
+ ## Contributing
37
+
38
+ 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.
39
+
40
+ ## Development
41
+
42
+ To set up your environment to develop this theme, run `bundle install`.
43
+
44
+ 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.
45
+
46
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
+ To add a custom directory to your theme-gem, please edit the regexp in `theme.gemspec` accordingly.
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
+
@@ -0,0 +1,44 @@
1
+ {% assign title = page.title %}
2
+ {% assign description = page.description %}
3
+ {% assign buttons = page.buttons || [] %}
4
+ {% assign logo = page.logo %}
5
+
6
+ <style>
7
+ #index-banner {
8
+ box-shadow: 0 0 0.2rem rgba(0, 0, 0, .1), 0 0.2rem 0.4rem rgba(0, 0, 0, .2);
9
+ }
10
+ </style>
11
+
12
+ <div class="section" id="index-banner">
13
+ <div class="container">
14
+
15
+ <a href="#" data-target="slide-out" class="btn top-nav sidenav-trigger full hide-on-large-only"><i
16
+ class="material-icons">menu</i></a>
17
+
18
+ <div class="row" style="margin-bottom: 0;">
19
+ <div class="col s12 m11 offset-m1 xl10 offset-xl1 center-on-small-only">
20
+ <h1 class="header" style="margin-top: 0;">
21
+ {{page.title}}
22
+
23
+ {% if page.logo %}
24
+ <img src="{{page.logo}}">
25
+ {% endif %}
26
+ </h1>
27
+ {% if page.description %}
28
+ <h4 class="light">{{page.description}}</h4>
29
+ {% endif %}
30
+
31
+ {% if buttons %}
32
+ <hr style="margin: 1em 0">
33
+
34
+ {% for button in buttons %}
35
+ <a href="{{button.link}}" class="waves-effect waves-light btn-large">
36
+ <i class="{{button.icon}} right"></i>
37
+ {{button.title}}
38
+ </a>
39
+ {% endfor %}
40
+ {% endif %}
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
@@ -0,0 +1,88 @@
1
+ <style>
2
+ body {
3
+ padding-left: 300px !important;
4
+ }
5
+
6
+ @media only screen and (max-width : 992px) {
7
+ body {
8
+ padding-left: 0 ! important;
9
+ }
10
+ }
11
+
12
+ .sidenav .collapsible-body a{
13
+ font-weight: normal !important;
14
+ }
15
+ </style>
16
+
17
+
18
+ <!-- Workout distinct sidenav sections -->
19
+ {% assign sections = '' | split: '' %}
20
+ {% for page in site.pages %}
21
+ {% for section in page.sections %}
22
+ {% assign sections = sections | push: section %}
23
+ {% endfor %}
24
+ {% endfor %}
25
+ {% assign sections = sections | uniq | sort %}
26
+
27
+ <!-- Workout sidenav sections headings-->
28
+ {% assign sectionsHeadings = '' | split: '' %}
29
+ {% for section in sections %}
30
+ {% assign sectionsHeadings = sectionsHeadings | push: site.sections[section] %}
31
+ {% endfor %}
32
+
33
+ <!-- Iterate through headings -->
34
+ {% assign numberOfHeadings = sectionsHeadings | size | minus: 1 %}
35
+
36
+
37
+ <!-- Main navigation -->
38
+ <ul id="slide-out" class="nav sidenav sidenav-fixed">
39
+ <li class="logo">
40
+ <a id="logo-container" style="display: inline-block; height: 100%" href="/" class="brand-logo">
41
+ <img id="front-page-logo" style="display: inline-block; padding: 1rem 0; max-width: 100%" src="https://upload.wikimedia.org/wikipedia/commons/b/bd/Logo_Enssat.png">
42
+ </a>
43
+ </li>
44
+
45
+ <li>
46
+ <div style="position: relative">
47
+ <input placeholder="Browse projects" style="line-height: 1rem; padding: 0 2rem">
48
+ <i class="fa fa-search" style="position: absolute; right: 1rem; top: 1.2rem"></i>
49
+ </div>
50
+ </li>
51
+
52
+ <li class="no-padding">
53
+ <ul class="collapsible collapsible-accordion">
54
+ {% for i in (0..numberOfHeadings) %}
55
+ <li>
56
+ <a class="collapsible-header waves-effect waves-teal" tabindex="0">
57
+ {{ sectionsHeadings[i] }}
58
+ </a>
59
+ <div class="collapsible-body">
60
+ <ul>
61
+ {% for node in site.pages %}
62
+ {% if node.sections contains sections[i] %}
63
+ <li>
64
+ <a href="{{node.url}}">{{node.title}}</a>
65
+ </li>
66
+ {% endif %}
67
+ {% endfor %}
68
+ </ul>
69
+ </li>
70
+ {% endfor %}
71
+ </ul>
72
+ </li>
73
+ </ul>
74
+
75
+
76
+ <script>
77
+ document.addEventListener('DOMContentLoaded', function () {
78
+ // initialize sidenav behaviour
79
+ const sidenavOptions = {};
80
+ const sidenav = document.querySelector('.sidenav');
81
+ M.Sidenav.init(sidenav, sidenavOptions);
82
+
83
+ // initialize collapsible behaviour
84
+ const collapsibleOptions = {};
85
+ const collapsibles = document.querySelectorAll('.collapsible');
86
+ M.Collapsible.init(collapsibles, collapsibleOptions);
87
+ });
88
+ </script>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Document</title>
7
+ <!-- Materialize CSS -->
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
9
+ <!-- Google's materials icons -->
10
+ <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
11
+ <!-- Fontawesome icons -->
12
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.1/css/all.css" integrity="sha384-vp86vTRFVJgpjF9jiIGPEEqYqlDwgyBgEF109VFjmqGmIY/Y4HV4d3Gp2irVfcrp" crossorigin="anonymous">
13
+ </head>
14
+ <body>
15
+ {% include header.html %}
16
+ {% include sidenav.html %}
17
+
18
+ <main style="padding: 2rem; max-width: 70rem; margin: 0 auto;">
19
+ {{ content }}
20
+ </main>
21
+
22
+ <!-- Materialize JavaScript -->
23
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
24
+ </body>
25
+ </html>
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ <ul>
8
+ {% for rapper in page.rappers %}
9
+ <li>{{rapper}}</li>
10
+ {% endfor %}
11
+ </ul>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,10 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/4.0.0/github-markdown.min.css" integrity="sha512-Oy18vBnbSJkXTndr2n6lDMO5NN31UljR8e/ICzVPrGpSud4Gkckb8yUpqhKuUNoE+o9gAb4O/rAxxw1ojyUVzg==" crossorigin="anonymous" />
6
+
7
+ <main class="markdown-body" style="margin: 3rem auto; max-width: 60rem">
8
+ {{ content }}
9
+ </main>
10
+
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-projects
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Sylvan Le Deunff
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-11-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-relative-links
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.6.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.6.0
41
+ description:
42
+ email:
43
+ - sylvan.ledeunff@orange.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - LICENSE.txt
49
+ - README.md
50
+ - _includes/header.html
51
+ - _includes/sidenav.html
52
+ - _layouts/default.html
53
+ - _layouts/page.html
54
+ - _layouts/post.html
55
+ - _layouts/project.html
56
+ homepage: https://github.com/sylvanld/jekyll-theme-projects
57
+ licenses:
58
+ - MIT
59
+ metadata: {}
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubygems_version: 3.1.2
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: Custom material theme to showcase projects
79
+ test_files: []