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 Dec 12, 2024
2 parents 3bb4029 + c7ee00c commit 9b5481d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ meta:
og-image: "https://cdn.itwcreativeworks.com/assets/itw-creative-works/images/socials/itw-creative-works-brandmark-square-black-1024x1024.png"
keywords: "" # false or blank to disable, comma separated kws
viewport: "" # string, leave blank to use default
index: true # true | false
referrer: "" # string, leave blank to use default

launcher:
download: "" # string, example: https://example.com/download
Expand Down
5 changes: 4 additions & 1 deletion _includes/master/global/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<meta name="MobileOptimized" content="320">
<meta name="generator" content="Ultimate Jekyll">

<!-- Referrer -->
<meta name="referrer" content="{{ page.meta.referrer | default: layout.meta.referrer | default: site.meta.referrer | default: 'strict-origin-when-cross-origin' }}">

<!-- Canonical -->
<link rel="canonical" href="{{ site.url }}{{ page-url-stripped }}">

Expand Down Expand Up @@ -180,7 +183,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="{{ favicon-path }}/favicon-32x32.png?cb={{ site.time | date: '%s' }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{ favicon-path }}/favicon-16x16.png?cb={{ site.time | date: '%s' }}">
<link rel="mask-icon" href="{{ favicon-path }}/safari-pinned-tab.svg" color="{{ site.favicon.safari-pinned-tab }}">
<link rel="shortcut icon" href="{{ favicon-path }}/favicon.ico?cb={{ site.time | date: '%s' }}">
<link rel="shortcut icon" type="image/x-icon" href="{{ favicon-path }}/favicon.ico?cb={{ site.time | date: '%s' }}">
<meta name="msapplication-TileColor" content="{{ site.favicon.msapp-tile-color }}">
<meta name="msapplication-config" content="{{ favicon-path }}/browserconfig.xml?cb={{ site.time | date: '%s' }}">
<meta name="theme-color" content="{{ site.favicon.theme-color }}">
Expand Down
12 changes: 8 additions & 4 deletions _includes/master/modules/adunits/fallback/insert.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,17 @@
var command = message.command || '';
var payload = message.payload || {};

// Auto-set id
if (!payload.id && event.source.name) {
payload.id = event.source.name.replace('uj-vert-', '');
// Auto-set id (inside try/catch to prevent errors CORS errors)
try {
if (!payload.id && event.source.name) {
payload.id = event.source.name.replace('uj-vert-', '');
}
} catch (e) {
console.warn('Failed to auto-set id', e);
}

// Log
console.log('Message', command, message, event.source);
console.log('Message', command, message, event.source, payload);

// Handle the message
if (command === 'uj-vert-unit:set-dimensions') {
Expand Down
4 changes: 2 additions & 2 deletions _websrc/gulp_tasks/master/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function areTasksCompleted() {
const waitTime = firstBuild ? 10000 : 1000;

// Log
console.log('jekyll-build task', task, diff < waitTime);
// console.log('jekyll-build task', task, diff < waitTime);

// If the task hasn't completed in the last 10 seconds, we're not done
if (diff < waitTime) {
Expand All @@ -40,7 +40,7 @@ function areTasksCompleted() {
}

// Log
console.log('jekyll-build areTasksCompleted', completed);
// console.log('jekyll-build areTasksCompleted', completed);

// Return whether all tasks are completed
return completed;
Expand Down

0 comments on commit 9b5481d

Please sign in to comment.