En este caso lo derápidos intenta hacer alusión a dos características distintas del código que pondré más adelante. Por un lado quelos sumarios se montan sin necesidad de JavaScript, simplemente aprovechando algunas etiquetasdata que Blogger utiliza.
Eso hace más ligera la carga de las páginas de navegación porque no se cargarán todas con su correspondiente contenido, sino sólo un breve resumen de cada una. Y con respecto a hacerlo con JavaScript, pues el argumento es el mismo, ya que para resumir con ese lenguaje primero hay que cargarlo todo y luego se acorta.
Yrápidos también porque estova a ser prácticamente cuestión de copiar y pegar, pues ya vimos en la segunda mitad deesta otra entrada para qué servía cada parte y allí podéis acudir si lo necesitáis, así que sólo esbozaré un poco cómo funciona esto.
Blogger usadata:post.body para almacenar el contenido de cada post y eso es lo que aparece en una plantilla sin modificar paraescribir dicho contenido, tras el título y antes del pie de post. Lo que haremos para crear los sumarios será usar otras variablesdata distintas que contienen lo imprescindible para lo que queremos lograr: una miniatura, un pequeño resumen y el enlace a la entrada (Leer Más).
Por tanto, indirectamente ya he dicho dónde habría que pegar todo este código: en lugar dedata:post.body/. Sólo hay que tener cuidado con hacerlo con la que corresponde a las plantillas normales (no la de móviles).
Pero tendremos que echar mano además de una serie de condiciones para que todo salga bien, pues no queremos resumir en todas partes sino sólo en la página de Inicio, en las de Archivo y en el resto de las de navegación.
Además tendremos que comprobar entre otras cosas si las entradas a resumir tienen incluido el corte!--more-- para que este no se duplique.
Si añadimos la posibilidad de no comprimir los posts para cuando exista ese corte y también el poder mostrar la primera entrada de cada página completa, pues el anidamiento de condiciones se complica un poco. Pero sin miedo, que las condiciones anidadas son sólo una sucesión de puertas que nos van marcando el camino en una dirección u otra.
Barajando todo esto y teniendo en cuenta los casos más habituales, a mí me salieron estas seis combinaciones, que como decía al principio son sólo para copiar y pegar. Comentado al principio, lo que hace cada uno.
!-- SUMARIOS. TODOS LOS POSTS RESUMIDOS. TODOS CON SNIPPET AUTOMATICO --
b:if cond='data:blog.pageType == "item"'
data:post.body/
b:else/
b:if cond='data:blog.pageType == "static_page"'
data:post.body/
b:else/
b:if cond='data:post.snippet'
b:if cond='data:post.thumbnailUrl'
div class='Image thumb'
img expr:src='data:post.thumbnailUrl'/
/div
/b:if
data:post.snippet/
b:if cond='data:post.hasJumpLink'
b:else/
div class='jump-link'
a expr:href='data:post.url + "#more"' expr:title='data:post.title'data:post.jumpText//a
/div
/b:if
b:else/
data:post.body/
/b:if
/b:if
/b:if
!-- SUMARIOS. TODOS LOS POSTS RESUMIDOS. CON PRIORIDAD AL CORTE MANUAL --
b:if cond='data:blog.pageType == "item"'
data:post.body/
b:else/
b:if cond='data:blog.pageType == "static_page"'
data:post.body/
b:else/
b:if cond='data:post.hasJumpLink'
data:post.body/
b:else/
b:if cond='data:post.snippet'
b:if cond='data:post.thumbnailUrl'
div class='Image thumb'
img expr:src='data:post.thumbnailUrl'/
/div
/b:if
data:post.snippet/
div class='jump-link'
a expr:href='data:post.url + "#more"' expr:title='data:post.title'data:post.jumpText//a
/div
b:else/
data:post.body/
/b:if
/b:if
/b:if
/b:if
!-- SUMARIOS. PRIMER POST COMPLETO EN TODO TIPO DE PAGINAS. RESTO CON SNIPPET AUTOMATICO --
b:if cond='data:blog.pageType == "item"'
data:post.body/
b:else/
b:if cond='data:blog.pageType == "static_page"'
data:post.body/
b:else/
b:if cond='data:post.isFirstPost'
data:post.body/
b:else/
b:if cond='data:post.thumbnailUrl'
div class='Image thumb'
img expr:src='data:post.thumbnailUrl'/
/div
/b:if
data:post.snippet/
b:if cond='data:post.hasJumpLink'
b:else/
div class='jump-link'
a expr:href='data:post.url + "#more"' expr:title='data:post.title'data:post.jumpText//a
/div
/b:if
/b:if
/b:if
/b:if
!-- SUMARIOS. PRIMER POST COMPLETO EN TODO TIPO PAGINAS. RESTO CON PRIORIDAD AL CORTE MANUAL --
b:if cond='data:blog.pageType == "item"'
data:post.body/
b:else/
b:if cond='data:blog.pageType == "static_page"'
data:post.body/
b:else/
b:if cond='data:post.isFirstPost'
data:post.body/
b:else/
b:if cond='data:post.hasJumpLink'
data:post.body/
b:else/
b:if cond='data:post.thumbnailUrl'
div class='Image thumb'
img expr:src='data:post.thumbnailUrl'/
/div
/b:if
data:post.snippet/
div class='jump-link'
a expr:href='data:post.url + "#more"' expr:title='data:post.title'data:post.jumpText//a
/div
/b:if
/b:if
/b:if
/b:if
!-- SUMARIOS. PRIMER POST COMPLETO SOLO EN HOME. RESTO CON SNIPPET AUTOMATICO --
b:if cond='data:blog.pageType == "item"'
data:post.body/
b:else/
b:if cond='data:blog.pageType == "static_page"'
data:post.body/
b:else/
b:if cond='data:blog.url == data:blog.homepageUrl'
b:if cond='data:post.isFirstPost'
data:post.body/
b:else/
b:if cond='data:post.thumbnailUrl'
div class='Image thumb'
img expr:src='data:post.thumbnailUrl'/
/div
/b:if
data:post.snippet/
b:if cond='data:post.hasJumpLink'
b:else/
div class='jump-link'
a expr:href='data:post.url + "#more"' expr:title='data:post.title'data:post.jumpText//a
/div
/b:if
/b:if
b:else/
b:if cond='data:post.thumbnailUrl'
div class='Image thumb'
img expr:src='data:post.thumbnailUrl'/
/div
/b:if
data:post.snippet/
b:if cond='data:post.hasJumpLink'
b:else/
div class='jump-link'
a expr:href='data:post.url + "#more"' expr:title='data:post.title'data:post.jumpText//a
/div
/b:if
/b:if
/b:if
/b:if
!-- SUMARIOS. PRIMER POST COMPLETO SOLO EN HOME. RESTO CON PRIORIDAD AL CORTE MANUAL --
b:if cond='data:blog.pageType == "item"'
data:post.body/
b:else/
b:if cond='data:blog.pageType == "static_page"'
data:post.body/
b:else/
b:if cond='data:blog.url == data:blog.homepageUrl'
b:if cond='data:post.isFirstPost'
data:post.body/
b:else/
b:if cond='data:post.hasJumpLink'
data:post.body/
b:else/
b:if cond='data:post.thumbnailUrl'
div class='Image thumb'
img expr:src='data:post.thumbnailUrl'/
/div
/b:if
data:post.snippet/
div class='jump-link'
a expr:href='data:post.url + "#more"' expr:title='data:post.title'data:post.jumpText//a
/div
/b:if
/b:if
b:else/
b:if cond='data:post.hasJumpLink'
data:post.body/
b:else/
b:if cond='data:post.thumbnailUrl'
div class='Image thumb'
img expr:src='data:post.thumbnailUrl'/
/div
/b:if
data:post.snippet/
div class='jump-link'
a expr:href='data:post.url + "#more"' expr:title='data:post.title'data:post.jumpText//a
/div
/b:if
/b:if
/b:if
/b:if
Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLANDMundial Football free legal advice,FIFA World Cup cheap web hosting donde me dieron un available domain name,cheap domain name registration,pero salio muy caro y mejor me hice student credit card ,accept credit pero me recomendaron mejor utilizar credit counseling service donde tienen un mejor soporte y credito support stocking pero mejor me compre un linux hosting y mejor me afilie a affiliate programs pero buy �web position gold�,microsoft certification,Mesothelioma law firm,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity
MESOTHELIOMA LAW FIRMDONATE CAR TO CHARITY CALIFORNIAHARDDRIVE DATA RECOVERY SERVICESDONATE A CAR IN MARYLAND DONATING A CAR IN MARYLAND,DONATE CARS ILLINOIS,CRIMINAL DEFENSE ATTORNEYS FLORIDA ,BEST CRIMINAL LAWYER IN ARIZONASTRUCTURED ANNUITY SETTLEMENT,ASBESTOS LAWYERS,NUNAVUT CULTURE,DAYTON FREIGHT LINES ,Bextra Bankruptcy Dental Plan Private JetAsi que mejor me fue a un hotel y motel FIFA World Cup Mundial Football New Orleans mesothelioma lawyer y mas que todo que la pase bien en ese hostal y me me fui de viaje a tennessee mesothelioma attorney donde EEUU me pidio la visa pero mejor aun many people in mesothelioma trial lawyers pero me fui a travel Alaska nebraska mesothelioma attorney pero mas aun con mesothelioma attorney nebraska mas siempre fue asi des hace mucho time merlin olsen lawsuit,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity
donate old cars to charity structured settlement quote BETTER CONFERENCING CALLS car accident lawyer michigan Tech school Best Criminal Lawyers in Arizona Automobile Accident Attorney WordPress theme designers Adobe illustrator classes Nunavut culture mesotheliama mesothelioma attorney california Mesothelioma Law Firm Register free domains Social media tools mesothelioma lawyers san diego auto accident attorney Photo Christmas cards Best social media platforms Seo companies Seo services Donating Used Cars to Charity Car Insurance Quotes MN Online casino buying structured settlements Casino Asbestos Lung Cancer phd in counseling education criminal defense federal lawyer Make money online Australia small business administration sba Donate your car for kids Mobile casino business voice mail service mesothelioma suit Cheap Car Insurance in Virginia Car Insurance Quotes Online Motor Insurance Quotes workers compensation lawyer los angeles Hire php developers Computer science classes online BEST CRIMINAL LAWYER IN ARIZONA motorcycle accident attorney chicago Donate your Car for Money Dallas Mesothelioma Attorneys Italian cooking school Psd to WordPress Criminal lawyer Better Conference Calls injury lawyers west palm beach Dedicated Hosting Dedicated Server Hosting cash out structured settlement DUI lawyer Hire php developer Casino reviews How to donate a car in California MASSAGE SCHOOL DALLAS TEXAS Psd to html Sell Annuity Payment Cheap car insurance for ladies New social media platforms lease management software Mortgage adviser selling a structured settlement PhD in counseling education Best Seo company Nunavut Culture Live casino google affiliate injury attorney baton rouge Met auto Donate your car for money Hire php programmers domain yahoo Dwi lawyer baltimore mesothelioma attorneys mesothelioma attorney florida WordPress themes for designers Structures Annuity Settlement Service business software domain name yahoo Donate Car for Tax Credit Criminal defense lawyer Car Donate Php programmers for hire Bankruptcy lawyer Futuristic Architecture World Trade Center Footage CHEAP AUTO INSURANCE IN VA LIFE INSURANCE CO LINCOLN Social media management Php programmers arizona auto accident attorney structured settlement company domains yahoo cheap car insurance in virginia Car Accident Lawyers Dayton Freight Lines alabama mesothelioma lawyer california law lemon Virtual Data Rooms Donate Your Car for Kids auto accident attorney Torrance Social media strategies Register Free Domains Best social media platforms for business motorcycle lawyer los angeles Cheap Domain Registration Hosting Business finance group Social media platforms for business Custom WordPress theme designer paperport promotional code mesothelioma law suit Business management software Social media platforms Seo company DONATING A CAR IN MARYLAND Online Christmas cards Custom Christmas cards canada personals yahoo structured settlement cash out la personal injury lawyer car accident lawyer san bernardino donate your car for kids adverse remortgage adverse credit remortgage WordPress hosting structured settlement sell Social media examiner ANNUITY SETTLEMENT CRIMINAL DEFENSE ATTORNEYS FLORIDA Donate cars Illinois Html email Christmas cards Proud Italian cook Low credit line credit cards HOW TO DONATE A CAR IN CALIFORNIA forensics online course VIRTUAL DATA ROOMS MESOTHELIOMA LAW FIRM miami personal injury lawyer new mexico mesothelioma lawyer structured settlement investments Forensics Online Course mesothelioma lawsuits Learning adobe illustrator business administration masters insurance medical temporary Dallas mesothelioma attorneys georgia truck accident lawyer florida car insurance company Social media campaigns CHEAP DOMAIN REGISTRATION HOSTING motor insurance quotes How to Donate A Car in California LOW CREDIT LINE CREDIT CARDS car insurance quotes Donate Car to Charity California refinance with poor credit Donate Cars in MA Holland Michigan College Webex Costs lawsuit mesothelioma Donate Your Car Sacramento Donating a Car in Maryland Motor Replacements Neuson Injury Lawyers car crash attorneys PSYCHIC FOR FREE meso lawyer Asbestos Lawyers Online Colleges Car Insurance Quotes Colorado Annuity Settlements CHEAP CAR INSURANCE IN VIRGINIA Criminal lawyer Miami Massage School Dallas Texas STRUCTURED ANNUITY SETTLEMENT Hard drive Data Recovery Services mesothelioma attorney life insurance quotes mesothelioma lawyer texas DONATE CARS ILLINOIS Donate a Car in Maryland mesothelioma compensation world trade center footage Royalty Free Images Stock Donate Cars Illinois injury lawyers hughes net business Criminal Defense Attorneys Florida motorcycle accident lawyer san francisco Car Insurance Quotes Utah Life Insurance Co Lincoln Personal Injury Law Firm colorado mesothelioma lawyers HOME PHONE INTERNET BUNDLE Business Voip Solutions mesothelioma drug Life insurance co Lincoln google adsense Psychic for Free Paperport Promotional Code Online Classes WEBEX COSTS cheap domain registration hosting personal injury firm asbestos lung cancer mesothelioma law firm