jekyll-theme-potato-hacker 1.0.0 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e7cdb64ef53737bf607951ce71be28599924e84a8aeba15e433cc939e722c4e
4
- data.tar.gz: b15cea2883d1c814aa33b5816c74b49fd38eb6c523557f762dd27e82248d9097
3
+ metadata.gz: dde925fd1cadd7e5809e8b498be72ad6ec71178706f83fbac2e2ca33e97b66b4
4
+ data.tar.gz: ad4efebb03986bb95f19c71fa890c7fe3200e54e73cf2df0012f183aee14f171
5
5
  SHA512:
6
- metadata.gz: e01d7c3244910d3fd88c1a8d52de105d117255317b65159231c3f2d2c8cba84f152e8fa9c0efadeeeb2861a90e022ce0f1a4d9e57f54558436638120c1bcb194
7
- data.tar.gz: c906d7d4b48c074e2a4fe378964c44612e5ba3322e3512fe33002df4323bb0305f89e2ee1ca6d205b801a3d9383cd3e6a8371b4e05efd5c37600d982862d3764
6
+ metadata.gz: d1349736907dedbb049109b58e90a46bc1449a1974062bca1c55c19a37df4ba8291347889c4bfb6919415306b7a47a0dace2fbf1cf19e34ef97c23ea4e030f6c
7
+ data.tar.gz: b1ee53bb27e5c307a7990b7656f6cfa826cd29ca2ad2cf487a169c7b028041ff87be64587bf063ecb002026746ba2dd15b46f9ebe3955e8576f57b3df7e13267
data/README.md CHANGED
@@ -47,6 +47,15 @@ dropdown: dropdown1
47
47
  ---
48
48
  ```
49
49
 
50
+ If you want to use the blog, you need to set `blog: on` inside `_config.yml` and add a `blog.md` file in your root directory:
51
+ ```yaml
52
+ ---
53
+ layout: blog-index
54
+ title: My Blog
55
+ description: Test page
56
+ ---
57
+ ```
58
+
50
59
  ## Contributing
51
60
 
52
61
  Bug reports and pull requests are welcome on GitHub at https://github.com/luxedo/jekyll-theme-potato-hacker/issues. 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.
@@ -31,11 +31,6 @@
31
31
  <i class="fa fa-twitter fa-3x"></i>
32
32
  </a>
33
33
  {% endif %}
34
- <!-- {% if site.gplus_id != null %}
35
- <a href="https://plus.google.com/{{site.gplus_id}}" target="_blank">
36
- <i class="fa fa-google-plus fa-3x"></i>
37
- </a>
38
- {% endif %} -->
39
34
  {% if site.linkedin_id != null %}
40
35
  <a href="https://www.linkedin.com/in/{{site.linkedin_id}}" target="_blank">
41
36
  <i class="fa fa-linkedin fa-3x"></i>
@@ -6,9 +6,6 @@
6
6
  <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7
7
  <meta name="description" content="{% if page.description %}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8
8
 
9
- <!-- Google Authorship Markup -->
10
- <link rel="author" href="https://plus.google.com/{{site.gplus_id}}?rel=author">
11
-
12
9
  <!-- Social: Twitter -->
13
10
  <meta name="twitter:card" content="summary_large_image">
14
11
  <meta name="twitter:site" content="@{{site.twitter_username}}">
@@ -31,7 +28,7 @@
31
28
  <meta property="og:description" content="{% if page.description %}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
32
29
  <meta property="og:site_name" content="{{ site.title }}">
33
30
 
34
- <!-- Social: Google+ / Schema.org -->
31
+ <!-- Social: Schema.org -->
35
32
  <meta itemprop="name" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"/>
36
33
  <meta itemprop="description" content="{% if page.description %}{{ page.description | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
37
34
  <meta itemprop="image" content="{{ '/assets/img/opengraph.png' | prepend: site.baseurl | prepend: site.url }}"/>
@@ -43,7 +40,7 @@
43
40
  <meta name="theme-color" content="rgba(42, 77, 20, 1)">
44
41
 
45
42
  <!-- Styles -->
46
- <link rel="stylesheet" id="css-theme" href="{{ '/assets/css/main-' | append: site.theme_base | append: '.css' | prepend: site.baseurl }}" media="none">
43
+ <link rel="stylesheet" id="css-theme" href="{{ '/assets/css/main-' | append: site.theme_base | append: '.css' | prepend: site.baseurl }}">
47
44
  <link rel="stylesheet" href="{{ '/assets/css/syntax.css' | prepend: site.baseurl }}">
48
45
  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
49
46
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
@@ -16,7 +16,9 @@
16
16
  <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
17
17
  <ul class="nav navbar-nav navbar-right">
18
18
  <li><a href="{{ site.baseurl | append: '/' }}">Home</a></li>
19
- <li><a href="{{ '/blog' | prepend: site.baseurl }}">Blog</a></li>
19
+ {% if site.blog == true %}
20
+ <li><a href="{{ '/blog' | prepend: site.baseurl }}">Blog</a></li>
21
+ {% endif %}
20
22
  {% for page in site.dropdown %}
21
23
  <li class="dropdown dropdown-{{ page.dropdown }}">
22
24
  <a href="#" class="dropdown-toggle" data-toggle="dropdown"
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+ {% for post in site.posts %}
5
+ <a href="{{ post.url | prepend: site.baseurl }}">
6
+ <h1 class="post-title"> {{ post.title }}</h1>
7
+ <h4 class="post-title"> {{ post.date }} </h4>
8
+ </a>
9
+ {{post.excerpt}}
10
+ {% if post.content contains site.excerpt_separator %}
11
+ <b><a href="{{ post.url | prepend: site.baseurl }}">continue reading -&gt;</a></b>
12
+ {% endif %}
13
+ <br/>
14
+ <div style="margin-bottom: 5em;"></div>
15
+ {% endfor %}
@@ -40,7 +40,7 @@
40
40
  <div class="pane-separator hidden-xs" style="margin-bottom:30em;"></div>
41
41
  <div class="pane-separator visible-xs" style="margin-bottom:5em;"></div>
42
42
  <div class="right-pane" style="margin-left: 1em;">
43
- {% if page.url contains '/blog/' or page.url == '/' %}
43
+ {% if page.url contains '/blog/' or page.url == '/' or page.url == '/blog.html' %}
44
44
  <center>
45
45
  {% if site.avatar_image != null %}
46
46
  <img src="{{ site.avatar_image | prepend: '/' | prepend: site.baseurl }}" alt="me" class="avatar-image">
@@ -26,7 +26,6 @@ $brand-danger: #7F3F3F;
26
26
  $github-color: #666;
27
27
  $facebook-color: #3b5998;
28
28
  $twitter-color: #326ada;
29
- // $google-plus-color: #d34836;
30
29
  $linkedin-color: #0077b5;
31
30
  $envelope-color: #c71610;
32
31
 
@@ -26,7 +26,6 @@ $brand-danger: darken($brand-danger, 5%);
26
26
  $github-color: #666;
27
27
  $facebook-color: #3b5998;
28
28
  $twitter-color: #326ada;
29
- // $google-plus-color: #d34836;
30
29
  $linkedin-color: #0077b5;
31
30
  $envelope-color: #c71610;
32
31
 
@@ -77,7 +77,6 @@ function setTheme(themeBase) {
77
77
  let href = document.getElementById("css-theme").getAttribute("href").replace(oldTheme, themeBase);
78
78
  let css = document.getElementById("css-theme");
79
79
  css.setAttribute("href", href);
80
- if (css.getAttribute("media") != "all") css.setAttribute("media", "all");
81
80
  }
82
81
 
83
82
  // https://medium.com/talk-like/detecting-if-an-element-is-in-the-viewport-jquery-a6a4405a3ea2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-potato-hacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luiz Eduardo Amaral
@@ -65,6 +65,7 @@ files:
65
65
  - _includes/footer.html
66
66
  - _includes/head.html
67
67
  - _includes/header.html
68
+ - _layouts/blog-index.html
68
69
  - _layouts/default.html
69
70
  - _layouts/page.html
70
71
  - _layouts/post.html
@@ -155,10 +156,7 @@ homepage: https://github.com/luxedo/jekyll-theme-potato-hacker
155
156
  licenses:
156
157
  - GPL-3.0
157
158
  metadata: {}
158
- post_install_message: |
159
- ! The 'potato-hacker-jekyll-template' gem has been deprecated and has been replaced by 'jekyll-theme-potato-hacker'.
160
- ! See: https://rubygems.org/gems/jekyll-theme-potato-hacker
161
- ! And: https://github.com/luxedo/jekyll-theme-potato-hacker
159
+ post_install_message:
162
160
  rdoc_options: []
163
161
  require_paths:
164
162
  - lib
@@ -177,7 +175,5 @@ rubyforge_project:
177
175
  rubygems_version: 2.7.7
178
176
  signing_key:
179
177
  specification_version: 4
180
- summary: 'A theme based on hackers and potatoes. The ''potato-hacker-jekyll-template''
181
- gem has been deprecated and has been replaced by ''jekyll-theme-potato-hacker''.
182
- See: https://rubygems.org/gems/jekyll-theme-potato-hacker And: https://github.com/luxedo/jekyll-theme-potato-hacker'
178
+ summary: A theme based on hackers and potatoes.
183
179
  test_files: []