Ciao a tutti, vorrei chiedere come faccio a stabilire in questo codice, quanti post si devono visualizzare nella homepage. Questo è un modello di blogger classico e attualmente vengono visualizzati tutti i post che pubblico appesantendo di molto la pagina. Io vorrei venissero visualizzati solo gli ultimi 3.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<$BlogEncoding$>" />
<meta name="keywords" content="In momory of, in honor of, tribute site, memory site" />
<title><$BlogTitle$></title>
<$BlogMetaData$>
<style type="text/css">
/*
================================================== =======
BLOGGER TEMPLATE 38.TEAR
Author: Cristina Calabrese aka Pannasmontata
URL: http://www.pannasmontata-templates.net
Image header author: Andidas
URL: http://andidas.deviantart.net
Please don't remove CREDITS.
================================================== ======= */
/* ---------------------------------
GENERIC STYLE
--------------------------------- */
body {
background-image: url(http://nea.ngi.it/templates/img/79-bodybg.jpg);
background-position: top;
background-attachment: fixed;
background-color: #FFFFFF;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 12px;
text-align: center;
}
a:link, a:visited {
color: #a70e13;
text-decoration: none;
}
a:hover {
color: #a70e13;
text-decoration: underline;
}
input,textarea {
background-color: #FFFFFF;
color: #a70e13;
}
ul {
list-style-image: url(http://nea.ngi.it/templates/img/79-list.gif);
margin-top: 5px;
margin-left: 15px;
margin-bottom: 5px;
padding-left: 2px;
}
li {
background: transparent;
padding: 0px;
}
blockquote {
background-color: #EFEFEF;
border-top: 1px solid #999999;
border-left: 1px solid #999999;
padding: 10px;
font-style: oblique;
margin-left: 10%;
margin-right: 10%;
}
a img {
border: 1px solid #CCCCCC;
padding: 5px;
background-color: #FFFFFF;
}
/* ---------------------------------
BLOG STYLE
--------------------------------- */
#box {
background-color: transparent;
color: #999999;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 12px;
margin: 40px auto 10px auto;
width: 740px;
}
#head {
background-image: url(http://nea.ngi.it/templates/img/79-tear.gif);
background-position: top;
background-repeat: no-repeat;
background-color: transparent;
padding-right: 20px;
height: 208px;
margin-top: 40px;
margin-bottom: 10px;
}
#menu {
background-image: url(http://nea.ngi.it/templates/img/79-menubg.jpg);
background-position: top;
background-repeat: repeat-y;
background-color: #cccccc;
text-align: left;
font-size: 11px;
color: #666666;
width: 100%;
}
.topmenu {
background-image: url(http://nea.ngi.it/templates/img/79-topmenu.jpg);
background-position: top;
background-repeat: no-repeat;
height: 36px;
}
#boxblog {
background-image: url(http://nea.ngi.it/templates/img/79-topbox.gif);
background-position: top;
background-repeat: no-repeat;
width: 100%;
background-color: transparent;
text-align: justify;
padding-top: 15px;
}
#footer {
background-image: url(http://nea.ngi.it/templates/img/79-footer.gif);
background-position: top;
background-repeat: no-repeat;
height: 51px;
clear: both;
font-size: 10px;
color: #666666;
text-align: center;
}
/* ---------------------------------
HEADER CONTENT STYLE
--------------------------------- */
#blogtitle {
font-family:'Century Gothic', Sans-serif;
font-size: 36px;
text-transform: capitalize;
text-align: left;
text-decoration: none;
color: #a70e13;
padding-top: 60px;
padding-left: 20px;
}
#blogtitle a:link, #blogtitle a:visited {
color: #a70e13;
text-decoration: none;
}
#blogtitle a:hover {
color: #a70e13;
text-decoration: none;
}
#blogdescription {
font-family:'Century Gothic', Sans-serif;
font-size: 16px;
text-transform: capitalize;
text-align: left;
color: #a70e13;
margin: 5px 0px 0px 5px;
padding-left: 30px;
}
/* ---------------------------------
MENU STYLE
--------------------------------- */
.boxmenu {
margin-bottom: 15px;
text-align: left;
padding: 5px;
background-color: transparent;
float: left;
margin: 5px 0px 5px 15px;
display: inline;
width: 215px;
}
.voicemenu {
color: #939598;
font-size: 18px;
padding-left: 5px;
margin-bottom: 3px;
font-family:'Century Gothic', Sans-serif;
font-weight: bold;
text-transform: capitalize;
text-align: center;
border-bottom: 1px solid #F5F5F6;
}

Rispondi quotando