Skip to content

Commit 327630b

Browse files
committed
Update Hydejack to 9.1.2
1 parent 262ce14 commit 327630b

File tree

242 files changed

+20198
-5922
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+20198
-5922
lines changed

#jekyll-theme-hydejack/_config.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
lang: en
22
title: Hydejack
3-
logo: /assets/icons/icon.png
4-
copyright: © 2020. All rights reserved.
3+
copyright: © 2021. All rights reserved.
54

65
accent_image: /assets/img/sidebar-bg.jpg
76
accent_color: rgb(79,177,186)
@@ -10,7 +9,7 @@ theme_color: rgb(25,55,71)
109
google_fonts: Roboto+Slab:700|Noto+Sans:400,400i,700,700i
1110
font: Noto Sans, Helvetica, Arial, sans-serif
1211
font_heading: Roboto Slab, Helvetica, Arial, sans-serif
13-
font_code: system-ui-monospace, "Liberation Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "DejaVu Sans Mono", "Fira Code", "Droid Sans Mono", "Menlo", "Consolas", "Monaco", monospace;
12+
font-code: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;
1413

1514
hydejack:
1615
post_addons: [about, newsletter, related, random, comments]
@@ -23,17 +22,19 @@ hydejack:
2322
no_search: false
2423
no_inline_css: false
2524
no_page_style: false
26-
no_break_layout: false
25+
no_break_layout: true
2726
no_toc: false
2827
no_third_column: false
2928
no_large_headings: false
3029
no_structured_data: false
3130
no_theme_color: false
31+
no_breadcrumbs: false
3232

3333
use_lsi: true
3434
cookies_banner: true
3535
advertise: true
3636
hide_dates: false
37+
hide_last_modified: false
3738

3839
dark_mode:
3940
always: false
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<nav id="breadcrumbs" class="screen-only"><ul>
2+
{% assign crumbs = include.url | remove:'/index.html' | split: '/' %}
3+
{% if crumbs.size > 1 %}
4+
<li><a href="{{ '/' | relative_url }}">{{ data.strings.breadcrumbs_home | default:'home' }}</a></li>
5+
{% for crumb in crumbs offset: 1 %}
6+
<li>
7+
{% if forloop.last %}
8+
<span>{{ data.strings.breadcrumbs_separator | default:'/' }}</span>
9+
<span>{{ crumbs | reverse | first }}</span>
10+
{% else %}
11+
<span>{{ data.strings.breadcrumbs_separator | default:'/' }}</span>
12+
{% assign crumb_limit = forloop.index | plus: 1 %}
13+
{% capture href %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}{% endcapture %}
14+
<a href="{{ href | relative_url }}">{{ crumb }}</a>
15+
{% endif %}
16+
</li>
17+
{% endfor %}
18+
{% endif %}
19+
</ul></nav>

#jekyll-theme-hydejack/_includes/body/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</small></nav>
1515
{% endif %}
1616
{% if site.hydejack.advertise %}
17-
<p><small>Powered by <a class="external" href="https://hydejack.com/">Hydejack</a> v<span id="_version">9.0.5</span></small></p>
17+
<p><small>Powered by <a class="external" href="https://hydejack.com/">Hydejack</a> v<span id="_version">9.1.2</span></small></p>
1818
{% endif %}
1919
<hr class="sr-only"/>
2020
</footer>

#jekyll-theme-hydejack/_includes/body/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
duration="500"
1010
hashchange
1111
>
12-
{% if page.cover %}{% include_cached body/sidebar.html cover=page.cover theme_color=page.theme_color image=image color=color %}{% endif %}
12+
{% capture sidebar %}{% include_cached body/sidebar.html cover=page.cover invert=page.invert_sidebar theme_color=page.theme_color image=image color=color %}{% endcapture %}
13+
{% if page.cover %}{{ sidebar }}{% endif %}
1314
{% include_cached body/menu.html %}
1415
{% include body/main.html %}
15-
{% unless page.cover %}{% include_cached body/sidebar.html cover=page.cover theme_color=page.theme_color image=image color=color %}{% endunless %}
16+
{% unless page.cover %}{{ sidebar }}{% endunless %}
1617
</hy-push-state>
1718

1819
{% unless page.redirect %}

#jekyll-theme-hydejack/_includes/body/main.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
class="content layout-{{ page.layout }}"
44
role="main"
55
>
6+
{% unless site.hydejack.no_breadcrumbs %}{% include body/breadcrumbs.html url=page.url %}{% endunless %}
67
{{ content }}
78
{% include_cached body/footer.html %}
89
</main>

#jekyll-theme-hydejack/_includes/body/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</li>
1616
{% endfor %}
1717
{% else %}
18-
{% assign pages = site.pages | where: "menu", true %}
18+
{% assign pages = site.html_pages | where: "menu", true %}
1919
{% assign documents = site.documents | where: "menu", true %}
2020
{% assign nodes = pages | concat: documents | sort: "order" %}
2121

#jekyll-theme-hydejack/_includes/body/scripts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--[if gt IE 10]><!---->
22
<script nomodule>{% include scripts/nomodule.min.js %}</script>
3-
<script src="{{ '/assets/js/hydejack-9.0.5.js' | relative_url }}" type="module"></script>
4-
<script src="{{ '/assets/js/LEGACY-hydejack-9.0.5.js' | relative_url }}" nomodule defer></script>
3+
<script src="{{ '/assets/js/hydejack-9.1.2.js' | relative_url }}" type="module"></script>
4+
<script src="{{ '/assets/js/LEGACY-hydejack-9.1.2.js' | relative_url }}" nomodule defer></script>
55
{% include my-scripts.html %}
66
{% include body/analytics.html %}
77
<script type="module">

#jekyll-theme-hydejack/_includes/body/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
noscroll
77
{% if include.cover %}opened{% endif %}
88
>
9-
<header id="_sidebar" class="sidebar" role="banner">
9+
<header id="_sidebar" class="sidebar{% if include.invert %} invert{% endif %}" role="banner">
1010
{% include_cached body/sidebar-bg.html image=include.image color=include.color theme_color=include.theme_color %}
1111
{% include_cached body/sidebar-sticky.html %}
1212
</header>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% if site.clap_button == false %}
2+
<hr class="dingbat related mb6" />
3+
{% elsif site.clap_button or jekyll.environment != 'production' %}
4+
<clap-button class="mb6" {% if include.hidden == true %}hidden{% endif %}></clap-button>
5+
{% unless site.clap_button %}
6+
<p class="message centered border-radius" {% if include.hidden == true %}hidden{% endif %}>
7+
<span style="display:block;margin-bottom:.5rem;">This is a preview of <a href="https://getclaps.app">Clap Button</a>, a new feedback and analytics tools for Hydejack, built by yours truly.</span>
8+
<span style="display:block;margin-bottom:.5rem;">You can try it out on <code>localhost</code> for free, but it will be removed (together with this message) when building with <code>JEKYLL_ENV=production</code>.</span>
9+
<span style="display:block;margin-bottom:.5rem;">To use Clap Button on your site, get a <a href="https://getclaps.app#pricing">subscription</a><br/>and set <code>clap_button: true</code> in your config file.</span>
10+
</p>
11+
{% endunless %}
12+
{% else %}
13+
<hr class="dingbat related mb6" />
14+
{% endif %}

#jekyll-theme-hydejack/_includes/components/post.html

Lines changed: 34 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,46 @@ <h1 class="post-title flip-project-title">
1313
</h1>
1414

1515
<div class="post-date">
16-
{% unless site.hydejack.hide_dates %}
17-
{% assign post_format = site.data.strings.date_formats.post | default:"%d %b %Y" %}
18-
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date:post_format }}</time>
19-
{% else %}
20-
{{ site.data.strings.posted | default:"Posted" }}
16+
{% capture foobar %}
17+
{%- unless site.hydejack.hide_dates -%}
18+
{%- assign post_format = site.data.strings.date_formats.post | default:"%d %b %Y" -%}
19+
<time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date:post_format }}</time>
20+
{%- else -%}
21+
{{- site.data.strings.posted | default:"Posted" -}}
22+
{%- endunless -%}
23+
{{ ' ' }}
24+
{%- assign category_start = site.data.strings.category_start | default:"in " -%}
25+
{%- assign tag_start = site.data.strings.tag_start | default:"on " -%}
26+
{%- include components/tag-list.html tags=post.categories meta=site.featured_categories start_with=category_start separator=category_separator -%}
27+
{{ ' ' }}
28+
{%- assign category_separator = site.data.strings.category_separator | default:" / " -%}
29+
{%- assign tag_separator = site.data.strings.tag_separator | default:", " -%}
30+
{%- include components/tag-list.html tags=post.tags meta=site.featured_tags start_with=tag_start separator=tag_separator -%}
31+
{% endcapture %}
32+
<span class="ellipsis mr1">
33+
{{ foobar }}
34+
</span>
35+
{% unless site.hydejack.hide_dates or site.hydejack.hide_last_modified or post.hide_last_modified %}
36+
{% if post.last_modified_at %}
37+
{% assign d1 = post.date | date:"%Y-%m-%d" %}
38+
{% assign d2 = post.last_modified_at | date:"%Y-%m-%d" %}
39+
{% if d1 != d2 %}
40+
{% assign label = site.data.strings.last_modified_at | default:"Last modified at" %}
41+
{% assign last_modified_at_format = site.data.strings.date_formats.last_modified_at | default:"%Y-%m-%d" %}
42+
<span class="ellipsis" data-tippy-content="{{ label }}{{ site.data.strings.colon }} {{ post.last_modified_at | date:last_modified_at_format }}">
43+
<span class="sr-only">{{ label }}{{ site.data.strings.colon }}</span>
44+
<span class="{{ site.data.strings.last_modified_icon | default:'icon-history' }}"></span>
45+
<time datetime="{{ post.last_modified_at | date_to_xmlschema }}">{{ post.last_modified_at | date:last_modified_at_format }}</time>
46+
</span>
47+
{% endif %}
48+
{% endif %}
2149
{% endunless %}
22-
{% assign category_start = site.data.strings.category_start | default:"in " %}
23-
{% assign tag_start = site.data.strings.tag_start | default:"on " %}
24-
{% assign category_separator = site.data.strings.category_separator | default:" / " %}
25-
{% assign tag_separator = site.data.strings.tag_separator | default:", " %}
26-
{% include components/tag-list.html tags=post.categories meta=site.featured_categories start_with=category_start separator=category_separator %}
27-
{% include components/tag-list.html tags=post.tags meta=site.featured_tags start_with=tag_start separator=tag_separator %}
2850
</div>
2951

3052
{% assign alt = false %}
3153
{% unless hide_image %}{% if post.image %}
3254
{% unless no_link_title %}<a href="{{ post.url | relative_url }}" class="no-hover no-print-link {% unless post.hide_image %}flip-project{% endunless %}" tabindex="-1">{% endunless %}
33-
<div class="lead aspect-ratio sixteen-nine flip-project-img">
55+
<div class="img-wrapper lead aspect-ratio sixteen-nine flip-project-img">
3456
{% include_cached components/hy-img.html img=post.image alt=post.title width=864 height=486 %}
3557
</div>
3658
{% unless no_link_title %}</a>{% endunless %}

0 commit comments

Comments
 (0)