Skip to content

Commit

Permalink
UJ: Merged from template.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwieds committed Nov 11, 2023
2 parents 2a2edc6 + 9d62b4d commit fdd8cec
Show file tree
Hide file tree
Showing 161 changed files with 558 additions and 1,530 deletions.
8 changes: 4 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ escapes:
bracket-right: "]"

# Blog & Pagination
permalink: /blog/:title/
permalink: /blog/:title
pagination:
enabled: true
per_page: 6
offset: 0
permalink: '/page/:num/'
title: ':title - page :num'
permalink: /page/:num
title: :title - page :num
limit: 0
sort_field: 'date'
sort_reverse: true
Expand All @@ -265,7 +265,7 @@ defaults:
path: ''
type: team
values:
permalink: "/team/:title/"
permalink: /team/:title

# Build settings
markdown: kramdown
Expand Down
4 changes: 2 additions & 2 deletions _includes/master/global/foot.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<!-- Master - Alert Box -->
<div class="master-alert master-alert-outdated">
<span class="master-alert-close" onclick="this.parentElement.style.display='none';">&times;</span>
You are using an outdated browser that our site <strong>DOES NOT</strong> support. Please <a href="https://www.google.com/chrome/" rel="nofollow" target="_blank">click here</a> to update your browser.
You are using an outdated browser that our site <strong>DOES NOT</strong> support. Please <a href="https://www.google.com/chrome" rel="nofollow" target="_blank">click here</a> to update your browser.
</div>

<!-- Master - Chat Opener -->
Expand Down Expand Up @@ -130,7 +130,7 @@ <h5 class="modal-title">
{%- else -%}
{% assign core_optimization = site.settings.include-script-core-optimization %}
{% endif %}
<!-- <script type="text/javascript" src="{{ site.url }}/assets/js/master.js?cb={{ site.time | date: '%s' }}" {{ core_optimization }}></script> -->
<!-- <script type="text/javascript" src="{{ site.url }}/assets/js/base.js?cb={{ site.time | date: '%s' }}" {{ core_optimization }}></script> -->
{% endif %}

<!-- TODO: FIX THIS -->
Expand Down
6 changes: 3 additions & 3 deletions _includes/master/global/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<!-- Prefetch -->
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://fonts.gstatic.com" crossorigin>
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net/">
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com/">
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net">
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com">

<!-- Meta -->
<meta charset="utf-8">
Expand Down Expand Up @@ -105,7 +105,7 @@
<!-- Language Tags -->
<link rel="alternate" href="{{ site.url }}{{ page.url }}" hreflang="x-default">
<link rel="alternate" href="{{ site.url }}{{ page.url }}" hreflang="en">
<!-- <link rel="alternate" href="{{ site.url }}/es/" hreflang="es"> -->
<!-- <link rel="alternate" href="{{ site.url }}/es" hreflang="es"> -->

<!-- Performance Metrics -->
{%- if page.settings.include-debug-performance == false -%}
Expand Down
24 changes: 24 additions & 0 deletions _includes/master/helpers/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- 404 page helper -->
<script>
Manager.ready(function () {
var url = new URL(window.location.href);
var qs404Fixer = url.searchParams.get('404Fixer');

// Report
Manager.sentry().captureException(new Error('404 at: ' + window.location.href));

// If pathname ends with trailing slash, remove it and reload
if (url.pathname.match(/\/$/) && !qs404Fixer) {
url.pathname = url.pathname.replace(/\/$/, '');
url.searchParams.set('404Fixer', 'trailing-slash');

// Log
console.log('Redirecting to: ' + url.toString());

// Redirect
setTimeout(function () {
window.location.href = url.toString();
}, 300);
}
})
</script>
6 changes: 3 additions & 3 deletions _layouts/master/admin/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

<!-- ITW CW -->
<script src="https://cdn.jsdelivr.net/npm/wonderful-fetch@latest/dist/index.min.js?cb={{ site.time | date: "%s" }}"></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/master.js?cb={{ site.time | date: "%s" }}" async defer></script>
<script type="text/javascript" src="{{ site.url }}/assets/js/base.js?cb={{ site.time | date: "%s" }}" async defer></script>
{%- include /master/misc/embed-manager.html -%}
'

Expand All @@ -83,8 +83,8 @@
auth: {
state: 'required',
sends: {
required: '/signin/',
prohibited: '/admin/dashboard/',
required: '/signin',
prohibited: '/admin/dashboard',
}
},
libraries: {
Expand Down
Loading

0 comments on commit fdd8cec

Please sign in to comment.