mitlibraries-theme 0.1.0 → 0.2.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 +4 -4
- data/README.md +14 -0
- data/app/views/layouts/_head.html.erb +2 -0
- data/lib/mitlibraries/theme/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6637a4c25f8f546f753cff291fccbf26c03786a4eb4ee8179eb000530d345e5
|
|
4
|
+
data.tar.gz: 7536e2a71affd41701f8ff4ebb0822d6148fe4e999f7d3bca6616578da7d08c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc4049adeacb90318c4faa74e5cd87ff775093c212418f4bcbe103cb20c8a0b59419121a3240a02b890c3b22ac8b2880eae0872bf53b9ed34769c7abefcaf31f
|
|
7
|
+
data.tar.gz: bc4e2d103b84bb819f5c2a12081721940a70d738055178a4c1ca1828190a6c43a323293b945c86bfee5ec796d1cd861dba7156fd7dcc99c66e8420dfd2cdf244
|
data/README.md
CHANGED
|
@@ -57,6 +57,20 @@ called multiple times the results are concatenated. This is intended primarily
|
|
|
57
57
|
for adding external support libraries. For JS you are writing, include via
|
|
58
58
|
`application.scss` as normal.
|
|
59
59
|
|
|
60
|
+
## Adding Additional Meta headers to HTML Head
|
|
61
|
+
|
|
62
|
+
You can load additional meta headers to individual pages using:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
<% content_for :additional_meta_tag do %>
|
|
66
|
+
<meta name="description" content="Words and stuff about stuff or something.">
|
|
67
|
+
<meta name="keywords" content="words,stuff,yoyos">
|
|
68
|
+
<% end %>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
This can appear as many times as you need on as many templates as you need. If
|
|
72
|
+
called multiple times the results are concatenated.
|
|
73
|
+
|
|
60
74
|
## Development
|
|
61
75
|
|
|
62
76
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
<title><%= content_for?(:title) ? yield(:title) : " MIT Libraries" %></title>
|
|
5
5
|
<%= csrf_meta_tags %>
|
|
6
6
|
|
|
7
|
+
<%= yield :additional_meta_tag %>
|
|
8
|
+
|
|
7
9
|
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
|
|
8
10
|
<!--[if lt IE 9]>
|
|
9
11
|
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js" type="text/javascript"></script>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mitlibraries-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Prevost
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|