This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function() { | |
function highlightActiveNav() { | |
// Get the current page's path | |
const currentPath = window.location.pathname; | |
// Select all `a` tags within `.nav-item` elements | |
const navLinks = document.querySelectorAll('.nav-item a'); | |
// Loop through each link to check for a match | |
navLinks.forEach(link => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CourierUmbracoEvents : ApplicationEventHandler | |
{ | |
//Wait 5 seconds after an examine index before trying to republish what has been indexed | |
private const int DelayAfterIndex = 5 * 1000; | |
//Give a republishe 2 minutes to complete | |
private const int IndexTimeout = 120 * 1000; | |
private Guid _lastIndexId; | |
private List<int> _indexedContentIds = new List<int>(); | |
private Dictionary<int, DateTime> _republishRegister = new Dictionary<int, DateTime>(); |