A wonderful and delightful short sermon about the importance of looking after your garden – your mind – in order to find peace and build a connection to God, written by John Cleese.
3 min read
Jan
15
Looking Forward to 2018
Some hopeful thoughts for my 2018 ahead.
4 min read
Feb
05
It’s All Coming Together Now - Mindfulness, Focus, and Deep Work
> Discipline means getting into what is happening. That is just saying that you
have to involve yourself in the
A wonderful and delightful short sermon about the importance of looking after your garden – your mind – in order to find peace and build a connection to God, written by John Cleese.
> Discipline means getting into what is happening. That is just saying that you
have to involve yourself in the situations you encounter in life. We have to go
through the process of being part of a situation; otherwise we will not be
exposed to this richness. In order to
document.addEventListener('DOMContentLoaded', function() {
// Get all links in the document
const links = document.getElementsByTagName('a');
const currentDomain = 'foursides.ca';
const amazonAffiliateTag = 'four0b-20'; // Replace with your Amazon affiliate tag
// Process each link
Array.from(links).forEach(link => {
const href = link.getAttribute('href');
// Skip if link is null, empty, or just a hash
if (!href || href === '' || href.startsWith('#')) {
return;
}
try {
const url = new URL(href);
// Handle Amazon links
if (url.hostname.includes('amazon.')) {
// Remove any existing tag
url.searchParams.delete('tag');
// Add your affiliate tag
url.searchParams.set('tag', amazonAffiliateTag);
// Update the link attributes
link.setAttribute('href', url.toString());
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'nofollow noopener noreferrer');
}
// Handle other external links (not Amazon and not internal)
else if (!url.hostname.includes(currentDomain)) {
// Add referrer parameter
url.searchParams.set('ref', 'foursides.ca');
// Update the link attributes
link.setAttribute('href', url.toString());
link.setAttribute('target', '_blank');
link.setAttribute('rel', 'nofollow noopener noreferrer');
}
} catch (e) {
// If URL parsing fails, it's likely a relative URL (internal link)
// Do nothing for internal links
console.debug('Skipping internal link:', href);
}
});
});T