oinam-jekyll 1.2.0 → 1.3.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.
@@ -1,5 +1,9 @@
1
1
  <header class="header">
2
2
  <h1><a href="{{ site.baseurl | prepend: site.url }}/" title="{{ site.title }}">{{ site.title }}</a></h1>
3
- {% if site.description %}<h2>{{ site.description | escape }}</h2>{% endif %}
3
+ {% if site.description %}
4
+ {% if site.layout.header_desc != false %}
5
+ <h2>{{ site.description | escape }}</h2>
6
+ {% endif %}
7
+ {% endif %}
4
8
  {% include nav.html %}
5
9
  </header>
@@ -1,4 +1,3 @@
1
- <style type="text/css">
2
1
  {%- capture include_to_scssify -%}
3
2
 
4
3
  {% include css/settings.css %}
@@ -24,5 +23,5 @@
24
23
  {% endif %}
25
24
 
26
25
  {%- endcapture -%}
27
- {{- include_to_scssify | scssify | strip_newlines -}}
28
- </style>
26
+
27
+ {{- include_to_scssify | scssify | strip_newlines -}}
@@ -17,7 +17,14 @@
17
17
  <meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}">
18
18
  <meta name="robots" content="index,follow">
19
19
 
20
- {% include styles.html %}
20
+ {% if site.styles.inline != false %}
21
+ <style type="text/css">
22
+ {% include styles.html %}
23
+ </style>
24
+ {% else %}
25
+ <link rel="stylesheet" href="{{ site.baseurl | prepend: site.url }}/styles.css">
26
+ {% endif %}
27
+
21
28
  {% include head-custom.html %}
22
29
 
23
30
  </head>
data/_layouts/page.html CHANGED
@@ -4,5 +4,10 @@ layout: default
4
4
 
5
5
  <article>
6
6
  <h1>{{ page.title | escape }}</h1>
7
+
7
8
  {{ content }}
9
+
10
+ {% if page.update %}
11
+ <p class="meta-update">Updated on {{ page.update }}.</p>
12
+ {% endif %}
8
13
  </article>
data/_layouts/post.html CHANGED
@@ -6,21 +6,23 @@ layout: default
6
6
  <time datetime="{{ post.date | date: '%Y-%m-%d' }}">{{ page.date | date: '%a, %b %-d, %Y' }}</time>
7
7
  <span>{%- include read-time.html -%}</span>
8
8
  </div>
9
-
9
+
10
10
  <article>
11
11
  <h1>{{ page.title }}</h1>
12
12
  {{ content }}
13
13
  </article>
14
14
 
15
+ {%- if page.previous.url or page.next.url -%}
15
16
  <div class="post-nav">
16
17
  <span>
17
- {%- if page.previous.url -%}
18
+ {%- if page.previous.url -%}
18
19
  <a href="{{ page.previous.url | prepend: site.baseurl | prepend: site.url }}" class="post-nav__prev" title="{{ page.previous.title }}">← Prev</a>
19
20
  {%- endif -%}
20
21
  </span>
21
22
  <span>
22
- {%- if page.next.url -%}
23
+ {%- if page.next.url -%}
23
24
  <a href="{{ page.next.url | prepend: site.baseurl | prepend: site.url }}" class="post-nav__next" title="{{ page.next.title }}">Next →</a>
24
- {%- endif -%}
25
+ {%- endif -%}
25
26
  </span>
26
- </div>
27
+ </div>
28
+ {%- endif -%}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oinam-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oinam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-07 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -98,9 +98,24 @@ files:
98
98
  - _includes/appearance.html
99
99
  - _includes/css/debug.css
100
100
  - _includes/css/forms.css
101
+ - _includes/css/highlighter/autumn.css
102
+ - _includes/css/highlighter/borland.css
103
+ - _includes/css/highlighter/bw.css
104
+ - _includes/css/highlighter/colorful.css
101
105
  - _includes/css/highlighter/default.css
106
+ - _includes/css/highlighter/emacs.css
107
+ - _includes/css/highlighter/friendly.css
108
+ - _includes/css/highlighter/fruity.css
109
+ - _includes/css/highlighter/manni.css
102
110
  - _includes/css/highlighter/monokai.css
111
+ - _includes/css/highlighter/murphy.css
112
+ - _includes/css/highlighter/native.css
113
+ - _includes/css/highlighter/pastie.css
103
114
  - _includes/css/highlighter/perldoc.css
115
+ - _includes/css/highlighter/tango.css
116
+ - _includes/css/highlighter/trac.css
117
+ - _includes/css/highlighter/vim.css
118
+ - _includes/css/highlighter/vs.css
104
119
  - _includes/css/settings.css
105
120
  - _includes/css/styles-extended.css
106
121
  - _includes/css/styles.css
@@ -147,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
162
  - !ruby/object:Gem::Version
148
163
  version: '0'
149
164
  requirements: []
150
- rubygems_version: 3.2.26
165
+ rubygems_version: 3.1.2
151
166
  signing_key:
152
167
  specification_version: 4
153
168
  summary: A simple, clean, and minimal Jekyll Theme.