function setAriaCurrent() {
	var id = document.getElementById("inicio");
	id.textContent = document.title
}

setAriaCurrent();

function setAriaCurrent() {
	var title = document.title;
	if title== "Comunidad hispanohablante de NVDA" {
		var id = "inicio"
	}
	document.getElementById(id).setAttribute("aria-current", "page");
}

setAriaCurrent();

Set aria-current for first link of nav