Cómo crear e incrustar un mapa del sitio en mi sitio web BlogSpot

Cómo agregar una página de mapa de sitio HTML a Blogger

Abra su panel de blogger / panel de administración. Vaya a Páginas> Página nueva> Página en blanco. Cambia al modo HTML. Pega debajo del código en el cuerpo de la publicación

p.etiqueta a {color: # 242424; text-transform: mayúscula; font-size: 15px;}

a.post-títulos {color: # 0000FF;}

ol li {list-style-type: decimal; line-height: 25px;}

// <! [CDATA [

var postTitle = new Array (); var postUrl = new Array (); var postPublished = new Array (); var postDate = new Array (); var postLabels = new Array (); var postRecent = new Array (); var sortBy = “titleasc”; var tocLoaded = false; var numChars = 250; var postFilter = “”; var numberfeed = 0; function bloggersitemap (a) {function b () {if (“entry” en a.feed) {var d = a.feed.entry.length; numberfeed = d; ii = 0; for (var h = 0; h <d; h ++) {var n = a.feed.entry [h]; var e = n.title. $ t; var m = n. publicado. $ t.string (0,10); var j; for (var g = 0; g <n.link.length; g ++) {if (n.link [g]. rel == "alternate") {j = n.link [g] .href; break}} var o = ""; for (var g = 0; g <n.link.length; g ++) {if (n. link [g] .rel == "enclosure") {o = n.link [g] .href; break}} var c = ""; if ("category" in n) {for (var g = 0; g <n.category.length; g ++) {c = n.category [g] .term; var f = c.lastIndexOf (";"); if (f! = – 1) {c = c.substring (0, f)} postLabels [ii] = c; postTitle [ii] = e; postDate [ii] = m; postUrl [ii] = j; postPublished [ii] = o; if (h <10) {postRecent [ii] = true} else {postRecent [ii] = false} ii = ii + 1}}}}} b (); sortBy = "titleasc"; sortPosts (sortBy); sortlabel (); tocLoaded = t rue; displayToc2 (); document.write ('

‘)} function filterPosts (a) {scroll (0,0); postFilter = a; displayToc (postFilter)} function allPosts () {sortlabel (); postFilter = “”; displayToc (postFilter)} function sortPosts (d) {function c (e, g) {var f = postTitle [e]; postTitle [e] = postTitle [g]; postTitle [g] = f; var f = postDate [e]; postDate [e] = postDate [g]; postDate [g] = f; var f = postUrl [e]; postUrl [e] = postUrl [g]; postUrl [g] = f; var f = postLabels [e]; postLabels [e] = postLabels [g]; postLabels [g] = f; var f = postPublished [e]; postPublished [e] = postPublished [g]; postPublished [g] = f; var f = postRecent [e]; postRecent [e] = postRecent [g]; postRecent [g] = f} for (var b = 0; b <postTitle.length- 1; b ++) {for (var a = b + 1; a postTitle [a]) {c (b, a)}} if (d == “titledesc”) {if (postTitle [b] postDate [a]) {c (b, a)}} if (d == “datenewest”) {if (postDate [b] postLabels [a]) {c (b, a)}}}}} funciona así rtlabel () {sortBy = “orderlabel”; sortPosts (sortBy); var a = 0; var b = 0; while (b postTitle.length) {break}}} function sortPosts2 (d, c) {function e (f , h) {var g = postTitle [f]; postTitle [f] = postTitle [h]; postTitle [h] = g; var g = postDate [f]; postDate [f] = postDate [h]; postDate [h ] = g; var g = postUrl [f]; postUrl [f] = postUrl [h]; postUrl [h] = g; var g = postLabels [f]; postLabels [f] = postLabels [h]; postLabels [h ] = g; var g = postPublished [f]; postPublished [f] = postPublished [h]; postPublished [h] = g; var g = postRecent [f]; postRecent [f] = postRecent [h]; postRecent [h ] = g} para (var b = d; b <c-1; b ++) {para (var a = b + 1; a postTitle [a]) {e (b, a)}}}} función displayToc (a) {var l = 0; var h = “”; var e = “Título de publicación”; var m = “Haga clic para ordenar por título”; var d = “Fecha “; var k =” Haga clic para ordenar por fecha “; var c =” Categoría “; var j =” “; if (sortBy ==” titleasc “) {m + =” (descendente) “; k + =” (el más nuevo primero ) “} if (sortBy ==” titledesc “) {m + =” (ascendente) “; k + =” (el más nuevo primero) “} if (s ortBy == “dateoldest”) {m + = “(ascendente)”; k + = “(el más nuevo primero)”} if (sortBy == “datenewest”) {m + = “(ascendente)”; k + = “(el más antiguo primero) “} if (postFilter! =” “) {j =” Haga clic para ver todo “} h + =”

“; h + =”

“; h + = ‘

“; h + =’

“; h + =’

“; h + =’

“; h + = “

“; for (var g = 0; g <postTitle.length; g ++) {if (a == "") {h + = '

+'”> ‘+ postTitle [g] +’

‘; l ++} else {z = postLabels [g] .lastIndexOf (a); if (z! = – 1) {h + =’

‘; l ++}}} h + = “

‘; h + = ‘ ‘+ e + ““; h + = “ ‘; h + =’ ‘+ d + ““; h + = “ ‘; h + =’ ‘+ c + ““; h + = “ ‘; h + = “Leer todo”; h + = “
‘+ postDate [g] + ‘ ‘ + postLabels [g] + ‘ +'”> Leer
+'”> ‘+ postTitle [g] +’ ‘+ postDate [g] +’ ‘+ postLabels [g] +’ +'”> Leer

“; if (l == postTitle.length) {var f =’ Mostrar Todos ‘+ postTitle.length + “Publicaciones
“} else {var f =’ Mostrar ‘+ l + “publicaciones por categoría'”; f + = postFilter + “‘ el “+ postTitle.length +” Total de publicaciones
“} var b = document.getElementById (” toc “); b.innerHTML = f + h} función displayToc2 () {var a = 0; var b = 0; whi le (b <postTitle.length) {temp1 = postLabels [b]; document.write ("

“); document.write (‘

‘+ temp1 +”

    “); firsti = a; do {document.write (”

  1. “); document.write (‘ ‘+ postTitle [a] + ““); if (postRecent [a] == true) {document.write (‘ – ¡Nuevo! ‘)} document.write (“
  2. “); a = a +1} while (postLabels [a] == temp1); b = a; document.write (“

“); sortPosts2 (firsti, a); if (b> postTitle.length) {break}}} function toggleTitleSort () {if (sortBy == “titleasc”) {sortBy = “titledesc”} else {sortBy = “titleasc”} sortPosts (sortBy); displayToc (postFilter)} function toggleDateSort () {if (sortBy == ” datenewest “) {sortBy =” dateoldest “} else {sortBy =” datenewest “} sortPosts (sortBy); displayToc (postFilter)} function showToc () {if (tocLoaded) {displayToc (postFilter); var a = document.getElementById ( “toclink”)} else {alert (“Solo espera … TOC se está cargando”)}} function hideToc () {var a = document.getElementById (“toc”); a.inne rHTML = “”; var b = document.getElementById (“toclink”); b.innerHTML = ‘ ?? Mostrar tabla de contenido ‘} function looptemp2 () {for (var a = 0; a <numberfeed; a ++ ) {document.write ("
“); document.write (‘Publicar enlace: +'”>’ + postTitle [a] + “
“); document.write (‘Leer todo: +'”>’ + postTitle [a] +”
“); document.write (”
“)}};

//]]>

Nota: Después de agregar el código anterior, reemplace https: // your-page-url (dot) blogsp … con la dirección del dominio de su blog.

Haga clic en Opciones en el lado derecho y seleccione No permitir (ocultar existente) para los comentarios del lector

Finalmente, haga clic en el botón Publicar y vea la página.

Para más información: Cómo crear una página de mapa de sitio HTML en Blogger

¡¡Eso es todo!!