teatro-vecchio 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 82e14d945a94feba3fb9a1827cc7acf7cbf4c172
4
+ data.tar.gz: 639708341c19d7e84625a25f0c1d69e67295ab04
5
+ SHA512:
6
+ metadata.gz: 90d42de524b0c01db2e17d22b541a0817ecf627444551a8cc35792b3df06a586f31bbc73f69d18376a2e271c4cec53e399fc60855873cdffb5435be74e1ce1d9
7
+ data.tar.gz: 6d26f6bdce8ad262033ef64736400fee52f5bc1773d65fe938607bb7070f6d11967625c2c34aa24cef3c0cb63fe0c93f3bca346bd0c409216829709c189da77b
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Alessandro Descovi
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.
data/README.md ADDED
@@ -0,0 +1,64 @@
1
+ [![Gem Version](https://badge.fury.io/rb/teatro-vecchio.svg)](https://badge.fury.io/rb/teatro-vecchio)
2
+
3
+ # teatro-vecchio
4
+
5
+ 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`.
6
+
7
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
8
+
9
+ TODO: Delete this and the text above, and describe your gem
10
+
11
+
12
+ ## Installation
13
+
14
+ Add this line to your Jekyll site's `Gemfile`:
15
+
16
+ ```ruby
17
+ gem "teatro-vecchio"
18
+ ```
19
+
20
+ And add this line to your Jekyll site's `_config.yml`:
21
+
22
+ ```yaml
23
+ theme: teatro-vecchio
24
+ ```
25
+
26
+ If you use github pages:
27
+
28
+ ```yaml
29
+ remote_theme: rubynetti/teatro-vecchio
30
+ theme: teatro-vecchio
31
+ ```
32
+
33
+ And then execute:
34
+
35
+ $ bundle
36
+
37
+ Or install it yourself as:
38
+
39
+ $ gem install teatro-vecchio
40
+
41
+ ## Usage
42
+
43
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
44
+
45
+ ## Plugins
46
+
47
+ Teatro Vecchio comes with [jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) plugin preinstalled to make sure your website gets the most useful meta tags. See usage to know how to set it up.
48
+
49
+ ## Contributing
50
+
51
+ 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.
52
+
53
+ ## Development
54
+
55
+ To set up your environment to develop this theme, run `bundle install`.
56
+
57
+ 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.
58
+
59
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
60
+ To add a custom directory to your theme-gem, please edit the regexp in `teatro-vecchio.gemspec` accordingly.
61
+
62
+ ## License
63
+
64
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,40 @@
1
+ <footer class="site-footer">
2
+
3
+ <h2 class="footer-heading">Contatti</h2>
4
+
5
+ <ul class="contact-list">
6
+
7
+ {%- for path in site.external_links -%}
8
+ <li><a href="{{path[0]}}" target="_blank">{{ path[1] }}</a></li>
9
+ {%- endfor -%}
10
+
11
+ {%- if site.email -%}
12
+ <li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
13
+ {%- endif -%}
14
+
15
+ {%- if site.github_username -%}
16
+ <li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}" target="_blank">Github</a></li>
17
+ {%- endif -%}
18
+
19
+ {%- if site.twitter_username -%}
20
+ <li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}" target="_blank">Twitter</a></li>
21
+ {%- endif -%}
22
+
23
+ </ul>
24
+
25
+ <p>{{ site.description }}</p>
26
+
27
+ </footer>
28
+
29
+ {%- if site.google_analytics_account -%}
30
+ <script>
31
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
32
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
33
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
34
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
35
+
36
+ ga('create', '{{site.google_analytics_account}}', 'auto');
37
+ ga('send', 'pageview');
38
+
39
+ </script>
40
+ {%- endif -%}
@@ -0,0 +1,101 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+
6
+ <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
+ <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8
+ <style>
9
+
10
+ body{
11
+ font-family: "Helvetica";
12
+ font-size: 100%;
13
+ max-width: 75%;
14
+ margin: 0 auto;
15
+ padding-top: 20px;
16
+ background-color: #002b36;
17
+ color: #93a1a1;
18
+ line-height: 1.375
19
+ }
20
+ blockquote, time {
21
+ font-family: "menlo", consolas, monospace;
22
+ }
23
+ pre {
24
+ background-color: #000;
25
+ color: #ccc;
26
+ padding: 20px;
27
+ border-radius: 6px;
28
+ }
29
+
30
+ h1, h2, h3, h4 {font-size: 100%}
31
+ h1 {color: #859900;}
32
+ h2 {color: #cb4b16;}
33
+ h3 {color: #b58900;}
34
+ h4 {color: #6c71c4;}
35
+
36
+ a {
37
+ text-decoration: none
38
+ }
39
+ .post-content a {text-decoration: underline}
40
+ a:hover {text-decoration: underline}
41
+ a, a:visited {color: #268bd2;}
42
+ hr{border: none;border-bottom: 1px solid #bbb}
43
+ .site-title {
44
+ font-weight: bold;
45
+ padding-bottom: 10px;
46
+ display: inline-block;
47
+ color: #dc322f !important;
48
+ }
49
+
50
+ strong {
51
+ color: #d33682;
52
+ }
53
+ img {
54
+ max-width: 100%
55
+ }
56
+
57
+ /* gist */
58
+
59
+ /* Customizzazione di Ale */
60
+ /* colore bordo */
61
+ .gist-file { border: none !important;}
62
+ /* colore sfondo */
63
+ .gist-meta { background-color: #002b36 !important; }
64
+ .gist-data {
65
+ border: none !important;
66
+ background-color: inherit !important;
67
+ }
68
+
69
+
70
+ /* Gist Embed - Dark Theme Styling - Thanks to MattD */
71
+
72
+ /* Body */
73
+ .gist-data tbody { background-color: #002b36; }
74
+ /* Line Numbers */
75
+ .gist-data tbody td:nth-of-type(1) { color: #2B91AF !important;}
76
+ /* Code */
77
+ .gist-data tbody td:nth-of-type(2){ color: #FFFFFF !important;}
78
+ /* Comments */
79
+ .pl-c { color: #57A64A !important; }
80
+ /* Function */
81
+ .pl-k, tbody tr:first-child .blob-code, tbody tr:last-child .blob-code{ color: #569CD6 !important; }
82
+ /* Function Name */
83
+ .pl-en { color: #FFFFFF !important; }
84
+ /* Function Method */
85
+ .pl-c1 { color: #FFFFFF !important; }
86
+ /* "'s around Strings */
87
+ .pl-pds { color: #D69D85 !important; }
88
+ /* Strings */
89
+ .pl-s { color: #D69D85 !important; }
90
+ .pl-smi{ color: #FFFFFF !important; }
91
+
92
+ </style>
93
+
94
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
95
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
96
+
97
+ {% seo title=false %}
98
+
99
+ <link rel="alternate" hreflang="it" href="{{site.url}}/articles{{page.url}}" />
100
+
101
+ </head>
@@ -0,0 +1,3 @@
1
+ <header class="site-header">
2
+ <a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
3
+ </header>
@@ -0,0 +1 @@
1
+ <a href="https://github.com/{{ include.username }}"><span class="icon icon--github">{% include icon-github.svg %}</span><span class="username">{{ include.username }}</span></a>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 16 16"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
@@ -0,0 +1 @@
1
+ <a href="https://twitter.com/{{ include.username }}"><span class="icon icon--twitter">{% include icon-twitter.svg %}</span><span class="username">{{ include.username }}</span></a>
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 16 16"><path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/></svg>
@@ -0,0 +1,19 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include header.html %}
9
+
10
+ <div class="page-content">
11
+ <div class="wrapper">
12
+ {{ content }}
13
+ </div>
14
+ </div>
15
+
16
+ {% include footer.html %}
17
+ </body>
18
+
19
+ </html>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title }}</h1>
8
+ </header>
9
+
10
+ <div class="post-content">
11
+ {{ content }}
12
+ </div>
13
+
14
+ </article>
@@ -0,0 +1,54 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
5
+ <header class="post-header">
6
+ <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
7
+ <p class="post-meta">
8
+ <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%-d/%-m/%Y" }}</time>
9
+ {% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}
10
+ </p>
11
+ </header>
12
+ <div class="post-content" itemprop="articleBody">
13
+ {{ content }}
14
+ </div>
15
+ </article>
16
+
17
+
18
+ <h4 style="margin-top: 40px; margin-bottom: 20px;">Contenuti correlati: </h4>
19
+ <div class="correlati-list">
20
+ <ul>
21
+ {% assign maxRelated = 4 %}
22
+ {% assign minCommonTags = 1 %}
23
+ {% assign maxRelatedCounter = 0 %}
24
+
25
+ {% for post in site.posts %}
26
+
27
+ {% assign sameTagCount = 0 %}
28
+ {% assign commonTags = '' %}
29
+
30
+ {% for category in post.categories %}
31
+ {% if post.url != page.url %}
32
+ {% if page.categories contains category %}
33
+ {% assign sameTagCount = sameTagCount | plus: 1 %}
34
+ {% capture tagmarkup %} <span class="label label-default">{{ category }}</span> {% endcapture %}
35
+ {% assign commonTags = commonTags | append: tagmarkup %}
36
+ {% endif %}
37
+ {% endif %}
38
+ {% endfor %}
39
+
40
+ {% if sameTagCount >= minCommonTags %}
41
+ <li>
42
+ <a href="{{ site.baseurl }}{{ post.url }}">
43
+ {{ post.title }}
44
+ </a>
45
+ </li>
46
+ {% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
47
+ {% if maxRelatedCounter >= maxRelated %}
48
+ {% break %}
49
+ {% endif %}
50
+ {% endif %}
51
+
52
+ {% endfor %}
53
+ </ul>
54
+ </div><!-- correlati-list -->
metadata ADDED
@@ -0,0 +1,114 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: teatro-vecchio
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.5
5
+ platform: ruby
6
+ authors:
7
+ - Alessandro Descovi
8
+ - Giacomo Bertoldi
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2018-04-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jekyll
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '3.7'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '3.7'
28
+ - !ruby/object:Gem::Dependency
29
+ name: jekyll-seo-tag
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '2.4'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '2.4'
42
+ - !ruby/object:Gem::Dependency
43
+ name: bundler
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.16'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.16'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rake
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '12.0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '12.0'
70
+ description:
71
+ email:
72
+ - descovi@gmail.com
73
+ - bertoldi.giacomo@gmail.com
74
+ executables: []
75
+ extensions: []
76
+ extra_rdoc_files: []
77
+ files:
78
+ - LICENSE.txt
79
+ - README.md
80
+ - _includes/footer.html
81
+ - _includes/head.html
82
+ - _includes/header.html
83
+ - _includes/icon-github.html
84
+ - _includes/icon-github.svg
85
+ - _includes/icon-twitter.html
86
+ - _includes/icon-twitter.svg
87
+ - _layouts/default.html
88
+ - _layouts/page.html
89
+ - _layouts/post.html
90
+ homepage:
91
+ licenses:
92
+ - MIT
93
+ metadata: {}
94
+ post_install_message:
95
+ rdoc_options: []
96
+ require_paths:
97
+ - lib
98
+ required_ruby_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ requirements: []
109
+ rubyforge_project:
110
+ rubygems_version: 2.6.11
111
+ signing_key:
112
+ specification_version: 4
113
+ summary: Theme for Jekyll - Dark theme similar to text editor enviroment.
114
+ test_files: []