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
$ git add filename.ext | |
$ git commit -m 'place comment here' | |
$ git push origin master |
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
//set <title> tag according to page title as displayed in <h2> | |
$('document').ready(function(){ | |
var pagetitle = $("h2").text(); | |
var pathname = window.location.pathname; | |
if(pathname.indexOf('/en/') > -1){ | |
var titletag = pagetitle + ' | ENGLISH TITLE'; | |
} | |
else { | |
var titletag = pagetitle + ' | ITALIAN TITLE'; | |
} |