jekyll-llnl-theme 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1576b04b042ec97e26ccc2d3a6c137cb003b861f
4
+ data.tar.gz: d86c3dbfd1b3995c830b4c75f3bd3502d7374b35
5
+ SHA512:
6
+ metadata.gz: 8430d9938bfe2e03a4300c89183a08e08ad35756c1f0639f1641e79c1759be52625a67ad314c56fc5dc418fdbef2197a87fca4cb382bce0cf653812ff231f6ce
7
+ data.tar.gz: ce520d7300879f79348a015b7d4833ef7aa13ca67916c25f6944a6441a7fae7af9ade2ce078d39a33f09e53b7a43c93dcdadc2b31a8809ead783b76788ccb264
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Lawrence Livermore National Security, LLC
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.
data/README.md ADDED
@@ -0,0 +1,105 @@
1
+ # LLNL Theme for Jekyll Websites
2
+
3
+ Author: Ian Lee <lee1001@llnl.gov> and Elsa Gonsiorowski <gonsie@llnl.gov>
4
+
5
+ ## Installation
6
+
7
+ Add this line to you Jekyll site's `Gemfile`:
8
+
9
+ ```ruby
10
+ gem "jekyll-llnl-theme"
11
+ ```
12
+
13
+ And add this line to your Jekyll site's `_config.yml`:
14
+
15
+ ```yaml
16
+ remote_theme: llnl/jekyll-llnl-theme
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install jekyll-llnl-theme
26
+
27
+ ## Usage
28
+
29
+ This theme supports multiple page websites.
30
+ Any page which is located at `/`, such as `/about.md`, will be added to the navigation bar at the top.
31
+ Each page should include the following YAML front matter:
32
+
33
+ ```yaml
34
+ ---
35
+ layout: default
36
+ title: Title of the Page
37
+ ---
38
+ ```
39
+
40
+ Currently, there is only the `default` layout.
41
+
42
+ ### Adding a Blog
43
+
44
+ In true Jekyll fashion, a blog can be created by adding a `_posts/` directory.
45
+ See the [Jekyll Documentation](https://jekyllrb.com/docs/posts/) for details on formatting blog entries.
46
+
47
+ The following code is an example of how to create a list of blog entries:
48
+
49
+ ```html
50
+ <ul>
51
+ {% for post in site.posts %}
52
+ <li>
53
+ <a href="{{ post.url }}">{{ post.title }}</a>
54
+ </li>
55
+ {% endfor %}
56
+ </ul>
57
+ ```
58
+
59
+ ## Development
60
+
61
+ ### With Ruby Gems
62
+
63
+ Assuming working on OS X, tested on OS X 10.11.2. `gem` (Ruby package manager)
64
+ was preinstalled, so just working from there:
65
+
66
+ ```shell
67
+ # Install the dependencies:
68
+ $ gem install jekyll
69
+
70
+ # Build and serve the website
71
+ $ jekyll serve --baseurl=''
72
+
73
+ # Browse to (by default) `localhost:4000` in a web browser
74
+ $ open localhost:4000
75
+ ```
76
+
77
+ For more information, check out the full documentation at: http://jekyllrb.com/
78
+
79
+ ### With Bundler
80
+
81
+ Using [Bundler](https://bundler.io):
82
+
83
+ ```shell
84
+ # Install the dependencies
85
+ $ bundle Install
86
+
87
+ # Build and serve the website
88
+ $ bundle exec jekyll serve --baseurl=''
89
+
90
+ # Browse to (by default) `localhost:4000` in a web browser
91
+ $ open localhost:4000
92
+ ```
93
+
94
+ ## Contributing
95
+
96
+ Bug reports and pull requests are welcome on GitHub at https://github.com/llnl/jekyll-llnl-theme.
97
+ This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [LLNL Contributing Guide](https://github.com/LLNL/open-source-guidelines/blob/master/CONTRIBUTING.md) code of conduct.
98
+
99
+ ## Release
100
+
101
+ This Jekyll theme is released under the MIT License. For more details see the
102
+ LICENSE File.
103
+
104
+ LLNL-CODE-705597
105
+ LLNL-WEB-680594
@@ -0,0 +1,24 @@
1
+ <div id="footer-slim" class="footer">
2
+ <div class="container">
3
+
4
+ <hr />
5
+
6
+ <br />
7
+
8
+ <div class="row">
9
+ <div class="col-md-12 subfooter">
10
+ <a href="http://www.llnl.gov/" target="_blank"><img src="https://cdn.llnl.gov/onelab/0.1/images/llnl.png" alt="LLNL"/></a>
11
+ <p> Lawrence Livermore National Laboratory <br /> 7000 East Avenue &bull; Livermore, CA 94550 </p>
12
+ <p> Operated by Lawrence Livermore National Security, LLC, for the <br /> Department of Energy's National Nuclear Security Administration. </p>
13
+ <a class="nnsa" href="http://nnsa.energy.gov/" target="_blank"><img src="https://cdn.llnl.gov/onelab/0.1/images/nnsa.png" alt="NNSA"/></a>
14
+ <a class="doe" href="http://energy.gov/" target="_blank"><img src="https://cdn.llnl.gov/onelab/0.1/images/doe_small.png" alt="U.S. DOE"/></a>
15
+ <a class="llns" href="http://www.llnsllc.com/" target="_blank"><img src="https://cdn.llnl.gov/onelab/0.1/images/llns.png" alt="LLNS"/></a>
16
+ </div>
17
+
18
+ <div class="col-md-12 subfooter">
19
+ <span>LLNL-WEB-680594 &nbsp;|&nbsp;&nbsp;</span>
20
+ <a href="https://www.llnl.gov/disclaimer" target="_blank">Privacy &amp; Legal Notice</a>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </div>
@@ -0,0 +1,14 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <title>{{ site.name }}</title>
4
+
5
+ <!-- For project-specific css, prepend URLs with {{ site.baseurl }} -->
6
+ <!-- Otherwise, defaults to assets from llnl.github.io -->
7
+
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
+ <link rel="shortcut icon" href="https://cdn.llnl.gov/onelab/0.1/images/favicon.ico">
10
+
11
+ <link rel="stylesheet" href="https://cdn.llnl.gov/onelab/0.1/css/onelab.css" media="screen">
12
+ <link rel="stylesheet" href="https://cdn.llnl.gov/bootstrap/3.3.5/css/bootstrap.min.css" media="screen">
13
+ <link rel="stylesheet" href="https://cdn.llnl.gov/font-awesome/4.4.0/css/font-awesome.min.css" media="screen">
14
+ </head>
@@ -0,0 +1,30 @@
1
+ <nav id="header-slim" class="navbar navbar-default">
2
+
3
+ <div class="container">
4
+ <div class="navbar-header">
5
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#siteNavbar">
6
+ <span class="icon-bar"></span>
7
+ <span class="icon-bar"></span>
8
+ <span class="icon-bar"></span>
9
+ </button>
10
+
11
+ <p id="llnl-menu-tab" class="pull-left"><a href="https://www.llnl.gov"></a></p>
12
+ <a class="navbar-brand" href="{{ site.baseurl }}/">{{ site.name }}</a>
13
+ </div>
14
+
15
+ <div id="siteNavbar" class="collapse navbar-collapse">
16
+ <ul class="nav navbar-nav navbar-right navbar-collapse">
17
+ {% if page.path == "index.md" %} <li class="active"> {% else %} <li> {% endif %}
18
+ <a href="{{ site.baseurl }}/">Home</a></li>
19
+ {% for node in site.pages reversed %}
20
+ {% unless node.path == "index.md" %}
21
+ {% if node.url == page.url %} <li class="active"> {% else %} <li> {% endif %}
22
+ <a href="{{ node.url | prepend: site.baseurl }}">{{ node.title }}</a></li>
23
+ {% endunless %}
24
+ {% endfor %}
25
+ <li id="github"><a href="https://github.com/llnl/{{ site.githubrepo }}"><span class="fa fa-github fa-lg"></span></a></li>
26
+ </ul>
27
+ </div>
28
+
29
+ </div>
30
+ </nav>
@@ -0,0 +1,17 @@
1
+ {% if site.piwik_id %}
2
+ <!-- Piwik -->
3
+ <script type="text/javascript">
4
+ var _paq = _paq || [];
5
+ _paq.push(['trackPageView']);
6
+ _paq.push(['enableLinkTracking']);
7
+ (function() {
8
+ var u="//analytics.llnl.gov/";
9
+ _paq.push(['setTrackerUrl', u+'piwik.php']);
10
+ _paq.push(['setSiteId', {{ site.piwik_id }}]);
11
+ var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
12
+ g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
13
+ })();
14
+ </script>
15
+ <noscript><p><img src="//analytics.llnl.gov/piwik.php?idsite={{ site.piwik_id }}" style="border:0;" alt="" /></p></noscript>
16
+ <!-- End Piwik Code -->
17
+ {% endif %}
@@ -0,0 +1,3 @@
1
+ <!-- jQuery first, then Bootstrap JS. -->
2
+ <script src="https://cdn.llnl.gov/jquery/2.1.4/js/jquery-2.1.4.min.js"></script>
3
+ <script src="https://cdn.llnl.gov/bootstrap/3.3.5/js/bootstrap.min.js"></script>
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include header.html %}
9
+
10
+ <div class="container">
11
+ {{ content }}
12
+ </div>
13
+
14
+ {% include footer.html %}
15
+
16
+ {% include scripts.html %}
17
+
18
+ {% include piwik.html %}
19
+
20
+ </body>
21
+ </html>
22
+
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-llnl-theme
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Elsa Gonsiorowski
8
+ - Ian Lee
9
+ - Lawrence Livermore National Security, LLC
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2017-12-13 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: jekyll
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "~>"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.5'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - "~>"
27
+ - !ruby/object:Gem::Version
28
+ version: '3.5'
29
+ - !ruby/object:Gem::Dependency
30
+ name: bundler
31
+ requirement: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - "~>"
34
+ - !ruby/object:Gem::Version
35
+ version: '1.12'
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '1.12'
43
+ - !ruby/object:Gem::Dependency
44
+ name: rake
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '10.0'
50
+ type: :development
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: '10.0'
57
+ description:
58
+ email:
59
+ - gonsie@me.com
60
+ executables: []
61
+ extensions: []
62
+ extra_rdoc_files: []
63
+ files:
64
+ - LICENSE
65
+ - README.md
66
+ - _includes/footer.html
67
+ - _includes/head.html
68
+ - _includes/header.html
69
+ - _includes/piwik.html
70
+ - _includes/scripts.html
71
+ - _layouts/default.html
72
+ homepage: https://github.com/llnl/jekyll-llnl-theme
73
+ licenses:
74
+ - MIT
75
+ metadata: {}
76
+ post_install_message:
77
+ rdoc_options: []
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ requirements: []
91
+ rubyforge_project:
92
+ rubygems_version: 2.6.12
93
+ signing_key:
94
+ specification_version: 4
95
+ summary: LLNL Themed Jekyll Template and Gem
96
+ test_files: []