typographical 1.0.0

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
+ SHA256:
3
+ metadata.gz: ea74674fcff2c2d0a55ab50e051c7f7e5089d7ee65bd7621a70db225d234cc05
4
+ data.tar.gz: 6ccd312f8bde1dceb467235683741363034c5a9674ed100874d752dfc351d099
5
+ SHA512:
6
+ metadata.gz: '008daace2695cf119f4f6c1594ca68ae8e23ad5f14231cd7e72b87d6681e2000bb928f161f874f7ac164391ad7332fcbcce167c2bec34e0ac098c25410179740'
7
+ data.tar.gz: 3da9fd73a33054be949a39cbc9a879a85a4b07ddfe1857abcd6347896b81b5d88d8bd5bf430f163defb6aafc84be3810964c94fbc8a7fc2cb046f32e344ee0f7
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Ram Iyer
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,100 @@
1
+ # Typographical
2
+
3
+ Thank you for choosing Typographical as your Jekyll theme! Typographical is a minimalist Jekyll theme focused on typography. This theme is for you if you are a writer or a storyteller.
4
+
5
+ This theme is based on the [Tale theme by Chester How](https://github.com/chesterhow/tale).
6
+
7
+ Refer to the [project Wiki](https://github.com/theramiyer/typographical/wiki) for more information and instructions.
8
+
9
+ ## Installation
10
+
11
+ Installation is straightforward. There are three modes in which you can use the theme.
12
+
13
+ 1. As a Ruby Gem. (Recommended)
14
+ 2. As a GitHub remote theme.
15
+ 3. A fork of this repository.
16
+
17
+ ### Install as Ruby Gem
18
+
19
+ Very simple, very straightforward. Also, this will ensure updates to your site design as and when they are released.
20
+
21
+ 1. Add this line to your Jekyll site's `Gemfile`:
22
+
23
+ ```ruby
24
+ gem "typographical"
25
+ ```
26
+
27
+ 2. Install the gems and dependencies:
28
+
29
+ ```bash
30
+ $ bundle
31
+ ```
32
+
33
+ 3. And add this line to your Jekyll site's `_config.yml`:
34
+
35
+ ```yaml
36
+ theme: typographical
37
+
38
+ permalink: /:year-:month-:day/:title
39
+ paginate: 5
40
+ ```
41
+
42
+ Remove any other `theme:` lines in your `_config.yml`
43
+
44
+ 4. Create two pages, [`about.md`](https://github.com/theramiyer/typographical/blob/master/_pages/about.md) and [`archive.html`](https://github.com/theramiyer/typographical/blob/master/_pages/archive.html) under `_pages`. Copy the code from this repository. Not doing this will result in broken links in the navigation.
45
+
46
+ ### GitHub Pages method
47
+
48
+ Use this method if you are using GitHub Pages to host your site.
49
+
50
+ 1. Add the following lines to your `Gemfile`:
51
+
52
+ ```gemfile
53
+ gem "jekyll-remote-theme"
54
+ gem "jekyll-paginate"
55
+ ```
56
+
57
+ 2. Install the gems:
58
+
59
+ ```bash
60
+ $ bundle
61
+ ```
62
+
63
+ 3. In your `_config.yml`, add the following:
64
+
65
+ ```bash
66
+ remote_theme: theramiyer/typographical
67
+
68
+ permalink: /:year-:month-:day/:title
69
+ paginate: 5
70
+
71
+ plugins:
72
+ - jekyll-paginate
73
+ - jekyll-remote-theme
74
+ ```
75
+
76
+ 4. Remove any other `theme:` or `remote_theme:` lines.
77
+ 5. Create two pages, [`about.md`](https://github.com/theramiyer/typographical/blob/master/_pages/about.md) and [`archive.html`](https://github.com/theramiyer/typographical/blob/master/_pages/archive.html) under `_pages`. Copy the code from this repository. Not doing this will result in broken links in the navigation.
78
+
79
+ ### Fork method
80
+
81
+ 1. Fork this repository
82
+ 2. Delete the `typographical.gemspec` file.
83
+ 3. Configure the Gemfile appropriately. (Basically, include the gems specified in the `gemspec` file, in the right format.)
84
+
85
+ ## Contributing
86
+
87
+ Bug reports and pull requests are welcome on GitHub at https://github.com/theramiyer/typographical. 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.
88
+
89
+ ## Development
90
+
91
+ To set up your environment to develop this theme, run `bundle install`.
92
+
93
+ 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.
94
+
95
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
96
+ To add a custom directory to your theme-gem, please edit the regexp in `typographical.gemspec` accordingly.
97
+
98
+ ## License
99
+
100
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ <script>
2
+ window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
3
+ ga('create', '{{ site.google_analytics }}', 'auto');
4
+ ga('send', 'pageview');
5
+ </script>
6
+ <script async src='https://www.google-analytics.com/analytics.js'></script>
@@ -0,0 +1,36 @@
1
+ <script src="/assets/copyenrich/copyenrich.js"></script>
2
+ <script src="/assets/copyenrich/copyenrich-filter.js"></script>
3
+
4
+ <script>
5
+ var copyenrich = {
6
+ filter_minlength: 30,
7
+
8
+ filter_wordmatch_enabled_signal_words: [],
9
+
10
+ filter_prefix : '',
11
+ filter_postfix : '',
12
+
13
+ filter_source_url: '\n\nSource: {{ page.title }} by {% if page.author %}{{ page.author.name }}{% else %}{{ site.author.name }}{% endif %} | ',
14
+
15
+ filter_analytics_name: "Copy on page",
16
+ filter_analytics_value: "Content",
17
+
18
+ filter_wordmatch_ad_signal_words: [],
19
+ filter_wordmatch_ad: '\n\n' +
20
+ '*******************************************************\n' +
21
+ '* Plagiarism from our website is strictly illegal! *\n' +
22
+ '* Your IP-address is reported to us and DMCA is filed *\n' +
23
+ '*******************************************************\n'
24
+
25
+ };
26
+
27
+ // initialize
28
+ var copyenrichFilters = copyenrichFilters || [];
29
+
30
+ copyenrichFilters.push([ filter_minlength ]);
31
+ <!-- copyenrichFilters.push([ filter_wordmatch_enabled ]); -->
32
+ <!-- copyenrichFilters.push([ filter_wordmatch_ad ]); -->
33
+ copyenrichFilters.push([ filter_analytics ]);
34
+ copyenrichFilters.push([ filter_source_url ]);
35
+ copyenrichFilters.push([ filter_prefix_postfix ]);
36
+ </script>
@@ -0,0 +1,10 @@
1
+ <footer>
2
+ <span>
3
+ &copy; <time datetime="{{ site.time }}">{{ site.time | date: '%Y' }}</time> {{ site.author.name }}. Made with Jekyll using the <a href="https://github.com/theramiyer/typographical/">Typographical theme</a>. <a href="https://github.com/theramiyer/typographical/blob/master/_pages/thanks.md">Thanks to the Community</a> for the love.
4
+ </span>
5
+ <br />
6
+ <div class="footer-icons">
7
+ <i class="fab fa-gitlab"></i>
8
+ <i class="fab fa-aws"></i>
9
+ </div>
10
+ </footer>
@@ -0,0 +1,32 @@
1
+ <head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
+
5
+
6
+ <!-- CSS -->
7
+ <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
8
+ <link href="https://fonts.googleapis.com/css?family=Alegreya+SC|Alegreya+Sans:800|Alegreya:400,400i&amp;subset=latin-ext" rel="stylesheet">
9
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous">
10
+
11
+ <!-- Favicon -->
12
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ "/assets/favicon-32x32.png" | relative_url }}">
13
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ "/assets/favicon-16x16.png" | relative_url }}">
14
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ "/assets/apple-touch-icon.png" | relative_url }}">
15
+
16
+ <!-- RSS -->
17
+ {% if page.url == '/' %}
18
+ <title>{{ site.title }}</title>
19
+ {% seo title=false %}
20
+ {% elsif paginator %}
21
+ <title>{{ page.title }} - Page {{ paginator.page }} {{ site.title }}</title>
22
+ {% seo title=false %}
23
+ {% else %}
24
+ <title>{{ page.title }}</title>
25
+ {% seo title=false %}
26
+ {% endif %}
27
+
28
+ <!-- Google Analytics-->
29
+ {% if site.google_analytics and jekyll.environment == 'production' %}
30
+ {% include analytics.html %}
31
+ {% endif %}
32
+ </head>
@@ -0,0 +1,15 @@
1
+ <nav class="nav">
2
+ <div class="nav-container">
3
+ <a href="{{ site.baseurl }}/">
4
+ <h1 class="nav-title">{{ site.title }}</h1>
5
+ </a>
6
+ <ul>
7
+ <li><a href="{{ '/about/' | prepend: site.baseurl }}"><i class="fas fa-info"></i></a></li>
8
+ <li><a href="{{ '/archive/' | prepend: site.baseurl }}"><i class="fas fa-archive"></i></a></li>
9
+ {% if site.facebook %}<li><a href="https://facebook.com/{{ site.facebook }}/" target="_blank"><i class="fab fa-facebook-f"></i></a></li>{% endif %}
10
+ {% if site.twitter %}<li><a href="https://twitter.com/{{ site.twitter }}/" target="_blank"><i class="fab fa-twitter"></i></a></li>{% endif %}
11
+ {% if site.podcasturl %}<li><a href="{{ site.podcasturl }}" target="_blank"><i class="fas fa-headphones-alt"></i></a></li>{% endif %}
12
+ <li><a href="{{ site.baseurl }}/feed.xml"><i class="fas fa-rss"></i></a></li>
13
+ </ul>
14
+ </div>
15
+ </nav>
@@ -0,0 +1,34 @@
1
+ {% if site.relatedpostsenabled %}
2
+ <div class="relatedposts">
3
+
4
+ {% assign maxRelatedCounter = 0 %}
5
+
6
+ <ul>
7
+ {% for post in site.posts %}
8
+
9
+ {% assign sameTagCount = 0 %}
10
+ {% assign commonTags = '' %}
11
+
12
+ {% for tag in post.tags %}
13
+ {% if post.url != page.url %}
14
+ {% if page.tags contains tag %}
15
+ {% assign sameTagCount = sameTagCount | plus: 1 %}
16
+ {% capture tagmarkup %} {{ tag }} {% endcapture %}
17
+ {% assign commonTags = commonTags | append: tagmarkup %}
18
+ {% endif %}
19
+ {% endif %}
20
+ {% endfor %}
21
+
22
+ {% if sameTagCount >= site.tagrelationlevel %}
23
+ <li>Related reading: <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
24
+ {% assign maxRelatedCounter = maxRelatedCounter | plus: 1 %}
25
+ {% if maxRelatedCounter >= site.maxrelatedposts %}
26
+ {% break %}
27
+ {% endif %}
28
+ {% endif %}
29
+
30
+ {% endfor %}
31
+ </ul>
32
+
33
+ </div>
34
+ {% endif %}
@@ -0,0 +1,21 @@
1
+ <span class="share-buttons">
2
+
3
+ Like it? Share it.<br />
4
+
5
+ <a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}" title="Share on Facebook" target="_blank" >
6
+ <i class="fab fa-facebook-f"></i>
7
+ </a>
8
+
9
+ <a href="https://twitter.com/intent/tweet?text={{ site.title }} {{ page.title }}&url={{ site.url }}{{ page.url }}&hashtags={{ page.tags | join: ',' }}" title="Share on Twitter" target="_blank" >
10
+ <i class="fab fa-twitter"></i>
11
+ </a>
12
+
13
+ <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ page.url }}&title={{ page.title }}&summary={{ page.description }}&source={{ site.title }}" title="Share on LinkedIn" target="_blank" >
14
+ <i class="fab fa-linkedin-in"></i>
15
+ </a>
16
+
17
+ <a href="whatsapp://send?text={{ site.title }} {{ page.title }} {{ site.url }}{{ page.url }}" data-action="share/whatsapp/share" title="Share using WhatsApp" target="_blank" >
18
+ <i class="fab fa-whatsapp"></i>
19
+ </a>
20
+
21
+ </span>
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+
8
+ {% include navigation.html %}
9
+
10
+ <main>
11
+ {{ content }}
12
+ </main>
13
+
14
+ {% include footer.html %}
15
+
16
+ {% include copyenrich-hook.html %}
17
+ </body>
18
+ </html>
@@ -0,0 +1,31 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="catalogue">
6
+ {% for post in paginator.posts %}
7
+ <a href="{{ post.url | prepend: site.baseurl }}" class="catalogue-item">
8
+ <div>
9
+ <time datetime="{{ post.date }}" class="catalogue-time">{{ post.date | date: "%B %d, %Y" }}</time>{% if site.wpm %}<span class="catalogue-time"> | {{ post.content | number_of_words | divided_by: site.wpm }} min read</span>{% endif %}
10
+ <h1 class="catalogue-title">{{ post.title | smartify }}</h1>
11
+ <div class="catalogue-line"></div>
12
+
13
+ <p>
14
+ {{ post.content | strip_html | truncatewords: 40 }}
15
+ </p>
16
+
17
+ </div>
18
+ </a>
19
+ {% endfor %}
20
+ </div>
21
+
22
+ <div class="pagination">
23
+ {% if paginator.previous_page %}
24
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="left arrow">&#8592;</a>
25
+ {% endif %}
26
+ {% if paginator.next_page %}
27
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="right arrow">&#8594;</a>
28
+ {% endif %}
29
+
30
+ <span>{{ paginator.page }}</span>
31
+ </div>
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="page">
6
+ <h1 class="post-title">{{ page.title | smartify }}</h1>
7
+ <div class="post-line"></div>
8
+
9
+ {{ content }}
10
+
11
+ </div>
12
+
13
+ <div class="pagination">
14
+ <a href="#" class="top">Top</a>
15
+ </div>
@@ -0,0 +1,60 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="post">
6
+ <div class="post-info">
7
+ <span>Written by</span>
8
+ {% if page.author %}
9
+ {% if page.author.google_plus %}
10
+ <a href="https://plus.google.com/+{{ page.author.google_plus | replace: '+', '' }}?rel=author">{{ page.author.name }}</a>
11
+ {% else %}
12
+ {{ page.author.name }}
13
+ {% endif %}
14
+ {% else %}
15
+ {% if site.author.google_plus %}
16
+ <a rel="author" href="https://plus.google.com/+{{ site.author.google_plus | replace: '+', '' }}">{{ site.author.name }}</a>
17
+ {% else %}
18
+ {{ site.author.name }}
19
+ {% endif %}
20
+ {% endif %}
21
+
22
+ {% if page.date %}
23
+ <br>
24
+ <span>on&nbsp;</span><time datetime="{{ page.date }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.published == false %} (unpublished){% endif %}
25
+ {% endif %}
26
+ </div>
27
+
28
+ <h1 class="post-title">{{ page.title | smartify }}</h1>
29
+ <div class="post-line"></div>
30
+
31
+ {% assign drop_cap = content | strip_html | truncate: 1, '' %}
32
+ {% if drop_cap == '‘' or drop_cap == '“' %}
33
+ {% assign drop_cap = content | strip_html | truncate: 2, '' %}
34
+ {% endif %}
35
+ {% capture drop_cap_html %}<span class="drop-cap">{{ drop_cap }}</span>{% endcapture %}
36
+ {{ content | replace_first:drop_cap,drop_cap_html | replace_first:'</p>','</p><!--more-->' }}
37
+
38
+ </div>
39
+
40
+ <div class="share-bar" style="margin-bottom: 1em;">
41
+ {% include share.html %}
42
+ </div>
43
+
44
+ {% include support.html %}
45
+ {% include related.html %}
46
+
47
+ <div class="hidden">
48
+ {{ page.tags | join: ', '}}
49
+ </div>
50
+
51
+ <div class="pagination">
52
+ {% if page.next.url %}
53
+ <a href="{{ page.next.url | prepend: site.baseurl }}" class="left arrow">&#8592;</a>
54
+ {% endif %}
55
+ {% if page.previous.url %}
56
+ <a href="{{ page.previous.url | prepend: site.baseurl }}" class="right arrow">&#8594;</a>
57
+ {% endif %}
58
+
59
+ <a href="#" class="top">Top</a>
60
+ </div>
@@ -0,0 +1,10 @@
1
+ @import 'typographical/variables';
2
+ @import 'typographical/base';
3
+ @import 'typographical/code';
4
+ @import 'typographical/post';
5
+ @import 'typographical/syntax';
6
+ @import 'typographical/layout';
7
+ @import 'typographical/pagination';
8
+ @import 'typographical/catalogue';
9
+ @import 'typographical/tweaks';
10
+ @import 'typographical/multipage'
@@ -0,0 +1,73 @@
1
+ * {
2
+ @include box-sizing;
3
+ line-height: 1.6;
4
+ }
5
+
6
+ html,
7
+ body {
8
+ color: $default-color;
9
+ margin: 0;
10
+ padding: 0;
11
+ }
12
+
13
+ html {
14
+ font-family: $serif-primary;
15
+ font-size: 1rem;
16
+ overflow-y: scroll;
17
+
18
+ @media (min-width: 600px) {
19
+ font-size: $base-font-size;
20
+ }
21
+ }
22
+
23
+ body {
24
+ -webkit-text-size-adjust: 100%;
25
+
26
+ -webkit-hyphens: auto;
27
+ -moz-hyphens: auto;
28
+ -ms-hyphens: auto;
29
+ hyphens: auto;
30
+ }
31
+
32
+ body p {
33
+ font-size: 1.3em;
34
+ }
35
+
36
+ h1,
37
+ h2,
38
+ h3,
39
+ h4,
40
+ h5,
41
+ h6 {
42
+ color: $default-shade;
43
+ font-family: $sans-serif;
44
+ line-height: normal;
45
+ }
46
+
47
+ a {
48
+ color: $blue;
49
+ text-decoration: none;
50
+ }
51
+
52
+ blockquote {
53
+ margin: 0 2.5em;
54
+
55
+ @media (max-width: 600px) {
56
+ margin: 0 0 0 2em;
57
+ }
58
+ }
59
+
60
+ img {
61
+ display: block;
62
+ margin: 0 0 1rem;
63
+ max-width: 100%;
64
+ }
65
+
66
+ td {
67
+ vertical-align: top;
68
+ }
69
+
70
+ hr {
71
+ border-top: solid 0.5px $grey-2;
72
+ margin-bottom: 1em;
73
+ }