Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Buscar
en Tumblr
Mensajes
Contenidos
Introduccin
Consejos avanzados
Empezar
Quieres
crear un diseo personalizado para tu blog? Si se te da bien
programar en HTML, ests en el lugar adecuado. De lo contrario,
puedes elegir entre cientos de temas a cual ms espectaculares en
el
Jardn de temas.
Variables bsicas
Apariencia general
Navegacin
Publicaciones
Introduccin
Tumblr
funciona en torno a siete tipos de publicacin: textos, fotos,
enlaces, citas, chats, audios y vdeos. No olvides personalizar tu tema
tenindolas todas en cuenta. De esa forma, se mostrarn
perfectamente en el blog, en los Escritorios de tus seguidores y en los
espacios de todas las personas que las reblogueen.
Ms informacin
Consejos avanzados
Reblogueos
Textos
Fotos
Panormicas
Sets de fotos
Citas
Enlaces
Chats
Audios
Vdeos
Respuestas
Fechas
Notas
Etiquetas
Fuentes del contenido
Colaboraciones
Blog en grupo
Pginas de das
Intenta
evitar las imgenes externas y los elementos insertados en las
publicaciones de texto. No se integran del todo bien en el Escritorio y
pueden generar conflictos con los temas personalizados. Es mejor que
crees publicaciones de vdeo si quieres subir uno, por ejemplo. Cada
tipo de publicacin tiene su propsito.
Pginas de etiquetas
Localizacin
Buscar
Siguiendo
Me gusta
Botones Me gusta y
Empezar
1. Haz clic sobre el nombre de tu blog en la parte superior del
Escritorio o en el icono de la lista.
Reblogueo
Publicaciones relacionadas
Opciones del tema
Twitter
Temas para iPhone
Transformacin de variables
Ejemplo
<html>
<head>
<title>{Title}</title>
</head>
<body>
...
</body>
</html>
Variables bsicas
Variable
Descripcin
{Title}
{Description}
{MetaDescription}
{BlogURL}
URL de tu blog.
{RSS}
{Favicon}
{CustomCSS}
{block:PermalinkPage}
{/block:PermalinkPage}
{block:IndexPage}
{/block:IndexPage}
{block:PostTitle}
{PostTitle}
{/block:PostTitle}
{block:PostSummary}
{PostSummary}
{/block:PostSummary}
{PortraitURL-16}
{PortraitURL-30}
{PortraitURL-40}
{PortraitURL-48}
{PortraitURL-64}
{PortraitURL-96}
{PortraitURL-128}
{CopyrightYears}
Apariencia general
Estas
etiquetas de la plantilla definen los colores, las fuentes y otras
opciones personalizadas que tengan relacin con la apariencia de tu
blog en los dispositivos mviles y el tema predeterminado.
Variable
Descripcin
{TitleFont}
{TitleFontWeight}
{BackgroundColor}
{TitleColor}
{AccentColor}
{HeaderImage}
{AvatarShape}
{block:ShowTitle}
{/block:ShowTitle}
{block:HideTitle}
{/block:HideTitle}
{block:ShowDescription}
{/block:ShowDescription}
{block:HideDescription}
{/block:HideDescription}
{block:ShowAvatar}
{/block:ShowAvatar}
{block:HideAvatar}
{/block:HideAvatar}
{block:ShowHeaderImage}
{/block:ShowHeaderImage}
{block:HideHeaderImage}
imagen de cabecera".
Navegacin
Variable
Descripcin
{block:Pagination}
{/block:Pagination}
{block:PreviousPage}
{/block:PreviousPage}
{block:NextPage}
{/block:NextPage}
{PreviousPage}
{NextPage}
{CurrentPage}
{TotalPages}
{block:SubmissionsEnabled}
{/block:SubmissionsEnabled}
{SubmitLabel}
{block:AskEnabled}
{/block:AskEnabled}
{AskLabel}
Paginacin
Variable
Descripcin
{block:JumpPaginationlength="5"}
{/block:JumpPagination}
{block:CurrentPage}
{/block:CurrentPage}
{block:JumpPage}
{/block:JumpPage}
{PageNumber}
{URL}
Ejemplo
<html>
<body>
...
{block:Pagination}{block:PreviousPage}
<a href="{PreviousPage}">Previous</a>
{/block:PreviousPage}{block:JumpPagination
length="5"}{block:CurrentPage}
<span
class="current_page">{PageNumber}</span>
{/block:CurrentPage}{block:JumpPage}
<a class="jump_page"
href="{URL}">{PageNumber}</a>
{/block:JumpPage}{/block:JumpPagination}{block:NextPage}
<a href="{NextPage}">Next</a>
{/block:NextPage}{/block:Pagination}
</body>
</html>
Pginas
Variable
Descripcin
{block:HasPages}
{/block:HasPages}
{block:Pages} {/block:Pages}
{URL}
{Label}
Descripcin
{block:PermalinkPagination}
{block:PreviousPost}
{/block:PreviousPost}
{block:NextPost}
{/block:NextPost}
{PreviousPost}
{NextPost}
Ejemplo
{block:PermalinkPagination}
{block:PreviousPost}
<a href="{PreviousPost}">Previous Post</a>
{/block:PreviousPost}
{block:NextPost}
<a href="{NextPost}">Next Post</a>
{/block:NextPost}
{/block:PermalinkPagination}
Publicaciones
Variable
Descripcin
{block:Posts} {/block:Posts}
{block:Posts
inlineMediaWidth="500"}
{/block:Posts}
{block:Posts
inlineNestedMediaWidth="250"}
{/block:Posts}
{block:Text} {/block:Text}
{block:Photo} {/block:Photo}
{block:Panorama}
{/block:Panorama}
{block:Photoset}
{/block:Photoset}
{block:Quote} {/block:Quote}
{block:Link} {/block:Link}
{block:Chat} {/block:Chat}
{block:Audio} {/block:Audio}
{block:Video} {/block:Video}
{block:Answer}
{/block:Answer}
{PostType}
{Permalink}
Mnimo: 250 px
Ejemplo: "http://sample.tumblr.com/post/123"
{ShortURL}
{EmbedUrl}
{TagsAsClasses}
{block:Odd} {/block:Odd}
{block:Even} {/block:Even}
{block:More} {/block:More}
{PostNotesURL}
Reblogueos
Variable
Descripcin
{block:RebloggedFrom}
{/block:RebloggedFrom}
{ReblogParentName}
{ReblogParentURL}
{ReblogParentPortraitURL16}
{ReblogParentPortraitURL24}
{ReblogParentPortraitURL30}
{ReblogParentPortraitURL40}
{ReblogParentPortraitURL48}
{ReblogParentPortraitURL64}
{ReblogParentPortraitURL96}
{ReblogParentPortraitURL128}
{ReblogRootName}
{ReblogRootTitle}
{ReblogRootURL}
{ReblogRootPortraitURL16}
{ReblogRootPortraitURL24}
{ReblogRootPortraitURL30}
{ReblogRootPortraitURL40}
{ReblogRootPortraitURL48}
{ReblogRootPortraitURL64}
{ReblogRootPortraitURL96}
{ReblogRootPortraitURL128}
{block:NotReblog}
{/block:NotReblog}
Textos
Variable
Descripcin
{block:Title} {/block:Title}
{Title}
El ttulo de la publicacin.
{Body}
El contenido de la publicacin.
Fotos
Variable
Descripcin
{PhotoAlt}
{block:Caption}
{/block:Caption}
{Caption}
{block:LinkURL}
{LinkURL}
{LinkOpenTag}
{LinkCloseTag}
{PhotoURL-500}
{PhotoWidth-500}
{PhotoHeight-500}
{PhotoURL-400}
{PhotoWidth-400}
{PhotoHeight-400}
{PhotoURL-250}
{PhotoWidth-250}
{PhotoHeight-250}
{PhotoURL-100}
{PhotoWidth-100}
{PhotoHeight-100}
{block:HighRes}
{/block:HighRes}
{PhotoURLHighRes}
{PhotoWidthHighRes}
{PhotoHeightHighRes}
{block:Exif}
{/block:Exif}
{block:Camera}
{Camera}
{/block:Camera}
{block:Aperture}
{Aperture}
{/block:Aperture}
{block:Exposure}
{Exposure}
{/block:Exposure}
{block:FocalLength}
{FocalLength}
{/block:FocalLength}
Ejemplo
{Block:Photo}{LinkOpenTag}
<img src="{PhotoURL-500}"
alt="{PhotoAlt}"/>{LinkCloseTag}{block:HighRes}
<a href="{PhotoURL-HighRes}">Ver en alta
resolucin</a>{/block:HighRes}{block:Exif}
<ul>{block:Camera}
<li>Cmara:
{Camera}</li>{/block:Camera}{block:Aperture}
<li>Apertura:
{Aperture}</li>{/block:Aperture}{block:Exposure}
<li>Exposicin:
{Exposure}</li>{/block:Exposure}{block:FocalLength}
<li>Distancia focal:
{FocalLength}</li>{/block:FocalLength}
</ul>{/block:Exif}{block:Caption}{Caption}{/block:Caption}{/Block
Panormicas
Las etiquetas de la plantilla definidas para {block:Photo} tambin estn
Descripcin
{LinkOpenTag}
{LinkCloseTag}
Un ancla de cierre.
{PhotoURLPanorama}
{PhotoWidthPanorama}
{PhotoHeightPanorama}
Ejemplo
{block:Panorama}
{LinkOpenTag}<img src="{PhotoURL-Panorama}"
alt="{PhotoAlt}" />{LinkCloseTag}
{block:Caption}
{Caption}
{/block:Caption}
{/block:Panorama}
Sets de fotos
Variable
Descripcin
{block:Caption}
{/block:Caption}
{Caption}
{Photoset}
{Photoset-700}
{Photoset-500}
{Photoset-400}
{Photoset-250}
{PhotoCount}
{PhotosetLayout}
{JSPhotosetLayout}
Ejemplo
{block:Photoset}
{block:Photos}
<img src="{PhotoURL-500}"
width="{PhotoWidth-500}"height="{PhotoHeight-500}"
/>
{block:Caption}
{Caption}
{/block:Caption}
{block:Exif}
<ul>...</ul>
{/block:Exif}
{/block:Photos}
{block:Caption}
{Caption}
{/block:Caption}
{/block:Photoset}
Citas
Variable
Descripcin
{Quote}
El contenido de la publicacin.
{block:Source}
{/block:Source}
{Source}
{Length}
Enlaces
Variable
Descripcin
{URL}
{Name}
{Target}
{block:Host}
{/block:Host}
{Host}
{block:Thumbnail}
publicacin.
{Thumbnail}
{ThumbnailHighRes}
{block:Description}
{/block:Description}
{Description}
La descripcin de la publicacin.
{block:Author}
{/block:Author}
{Author}
{block:Excerpt}
{/block:Excerpt}
{Excerpt}
La cita de la publicacin.
Chats
Variable
Descripcin
{block:Title}
{/block:Title}
{Title}
El ttulo de la publicacin.
{block:Lines}
{/block:Lines}
{block:Label}
{/block:Label}
{Label}
{Name}
{Line}
{UserNumber}
{Alt}
Audios
Variable
Descripcin
{block:Caption}
{/block:Caption}
{Caption}
{block:AudioEmbed}
{/block:AudioEmbed}
{AudioEmbed}
{AudioEmbed-400}
{AudioEmbed-500}
{AudioEmbed-640}
{block:AudioPlayer}
{/block:AudioPlayer}
{AudioPlayer}
{RawAudioURL}
{block:PlayCount}
{/block:PlayCount}
{PlayCount}
{FormattedPlayCount}
{PlayCountWithLabel}
{block:ExternalAudio}
{/block:ExternalAudio}
{ExternalAudioURL}
{block:AlbumArt}
{AlbumArtURL}
{/block:AlbumArt}
{block:Artist}
{Artist}
{/block:Artist}
{block:Album}
{Album}
{/block:Album}
{block:TrackName}
{TrackName}
{/block:TrackName}
Vdeos
Descripcin
{block:Caption}
{/block:Caption}
{Caption}
{Video-700}
{Video-500}
{Video-400}
{Video-250}
{VideoEmbed-700}
{VideoEmbed-500}
{VideoEmbed-400}
{VideoEmbed-250}
{PlayCount}
{FormattedPlayCount}
{PlayCountWithLabel}
{block:VideoThumbnail}
{VideoThumbnailURL}
{/block:VideoThumbnail}
{block:VideoThumbnails}
{VideoThumbnailURL}
{/block:VideoThumbnails}
Respuestas
Variable
Descripcin
{Answer}
{Asker}
{AskerPortraitURL-16}
{AskerPortraitURL-24}
{AskerPortraitURL-30}
{AskerPortraitURL-40}
{AskerPortraitURL-48}
{AskerPortraitURL-64}
{AskerPortraitURL-96}
{AskerPortraitURL128}
{block:Answerer}
{/block:Answerer}
{Answerer}
{AnswererPortraitURL16}
{AnswererPortraitURL24}
{AnswererPortraitURL30}
{AnswererPortraitURL40}
{AnswererPortraitURL48}
{AnswererPortraitURL64}
{AnswererPortraitURL96}
{AnswererPortraitURL128}
{Replies}
Ejemplo
{block:Answer}
<div class="question"><div class="asker">{Asker}</div><div
class="asker-question">{Question}</div><img class="askeravatar" src="{AskerPortraitURL-96}" alt=""></div>
{block:Answerer}
<div class="answer"><div
class="answerer">{Answerer}</div><div class="answereranswer">{Answer}</div><img class="answerer-avatar"
src="{AnswererPortraitURL-96}" alt=""></div>
{/block:Answerer}
<div class="replies">
{Replies}
</div>
{/block:Answer}
Fechas
Variable
Descripcin
{block:Date}
{/block:Date}
{block:NewDayDate}
{/block:NewDayDate}
{block:SameDayDate}
{/block:SameDayDate}
{DayOfMonth}
{DayOfMonthWithZero}
{DayOfWeek}
De "Lunes" a "Domingo"
{ShortDayOfWeek}
De "Lun" a "Dom"
{DayOfWeekNumber}
{DayOfYear}
{WeekOfYear}
{Month}
De "Enero" a "Diciembre"
{ShortMonth}
De "Ene" a "Dic"
{MonthNumber}
{MonthNumberWithZero}
{Year}
"2007"
{ShortYear}
"07"
{AmPm}
"am" o "pm"
{CapitalAmPm}
"AM" o "PM"
{12Hour}
{24Hour}
{12HourWithZero}
{24HourWithZero}
{Minutes}
{Seconds}
{Beats}
{Timestamp}
"1172705619"
{TimeAgo}
Fecha contextual.
p. ej. "hace 1 minuto", "hace 2 horas", "hace 3 semanas",
etc.
Notas
Variable
Descripcin
{block:PostNotes}
{/block:PostNotes}
{PostNotes}
{PostNotes-16}
{PostNotes-64}
{block:NoteCount}
{/block:NoteCount}
{NoteCountWithLabel}
Ejemplo
<html>
<head>
<style type="text/css">
ol.notes {
padding: 0px;
margin: 25px 0px;
list-style-type: none;
border-bottom: solid 1px #ccc;
}
ol.notes li.note {
border-top: solid 1px #ccc;
padding: 10px;
}
ol.notes li.note img.avatar {
vertical-align: -4px;
margin-right: 10px;
width: 16px;
height: 16px;
}
ol.notes li.note span.action {
font-weight: bold;
}
ol.notes li.note .answer_content {
font-weight: normal;
}
ol.notes li.note blockquote {
border-color: #eee;
padding: 4px 10px;
margin: 10px 0px 0px 25px;
}
ol.notes li.note blockquote a {
text-decoration: none;
}
</style>
</head>
<body>
{block:Posts}
...
{PostNotes}{/block:Posts}
</body>
</html>
Descripcin
tumblrNotesLoaded(notes_html)
tumblrNotesInserted()
Etiquetas
Variable
Descripcin
{block:HasTags}
{/block:HasTags}
{block:Tags}
{/block:Tags}
{Tag}
{URLSafeTag}
{TagURL}
{TagURLChrono}
Ejemplo
<html>
<body>
{block:Posts}
<div class="post">
{block:Text}...{/block:Text}{block:Photo}...{/block:Photo}
...
{block:HasTags}
<ul class="tags">
{block:Tags}
<li>
<a href="{TagURL}">{Tag}</a>
</li>
{/block:Tags}
</ul>
{/block:HasTags}
</div>
{/block:Posts}
</body>
</html>
Descripcin
{block:ContentSource}
{/block:ContentSource}
{SourceURL}
{block:SourceLogo}
{/block:SourceLogo}
{BlackLogoURL}
{LogoWidth}
{LogoHeight}
{SourceTitle}
{block:NoSourceLogo}
{/block:NoSourceLogo}
Ejemplo
{block:ContentSource}
<a href="{SourceURL}">{lang:Source}:
{block:SourceLogo}
<img src="{BlackLogoURL}" width="{LogoWidth}"
height="{LogoHeight}" alt="{SourceTitle}"
/>{/block:SourceLogo}{block:NoSourceLogo}{SourceTitle}{/block:NoSo
</a>{/block:ContentSource}
Colaboraciones
Variable
Descripcin
{block:Submission}
{/block:Submission}
{Submitter}
{SubmitterURL}
{SubmitterPortraitURL16}
{SubmitterPortraitURL24}
{SubmitterPortraitURL30}
{SubmitterPortraitURL40}
{SubmitterPortraitURL48}
{SubmitterPortraitURL-
{SubmitterPortraitURL96}
{SubmitterPortraitURL128}
Blogs en grupo
Miembros del grupo
Variable
Descripcin
{block:GroupMembers}
{/block:GroupMembers}
{block:GroupMember}
{/block:GroupMember}
{GroupMemberName}
{GroupMemberTitle}
{GroupMemberURL}
{GroupMemberPortraitURL-16}
{GroupMemberPortraitURL-24}
{GroupMemberPortraitURL-30}
{GroupMemberPortraitURL-40}
{GroupMemberPortraitURL-48}
{GroupMemberPortraitURL-64}
{GroupMemberPortraitURL-96}
{GroupMemberPortraitURL-128}
Autores de la publicacin
Variable
Descripcin
{PostAuthorName}
{PostAuthorTitle}
{PostAuthorPortraitURL16}
{PostAuthorPortraitURL24}
{PostAuthorPortraitURL30}
{PostAuthorPortraitURL40}
{PostAuthorPortraitURL48}
{PostAuthorPortraitURL64}
{PostAuthorPortraitURL96}
{PostAuthorPortraitURL128}
Pginas de das
Los blogs de Tumblr pueden mostrar todas las publicaciones de un da
concreto si utilizas una URL como esta
http://david.tumblr.com/day/2007/04/29/ .
Al aadir este cdigo de marcado,
es posible incluir una paginacin para los das previos y siguientes que
dispongan de publicaciones.
Variable
Descripcin
{block:DayPage} {/block:DayPage}
{block:DayPagination}
{/block:DayPagination}
{block:PreviousDayPage}
{/block:PreviousDayPage}
{block:NextDayPage}
{/block:NextDayPage}
{PreviousDayPage}
{NextDayPage}
Ejemplo
<html>
<body>
<h1>{Title}</h1>
{block:DayPage}
<h2>{Month} {DayOfMonth}, {Year}</h2>
{/block:DayPage}
<ol id="posts">
{block:Posts}
...
{/block:Posts}
</ol>
<div id="footer">
{block:Pagination}{block:PreviousPage}
<a href="{PreviousPage}">«
Previous</a>
{/block:PreviousPage}{block:NextPage}
<a href="{NextPage}">Next »</a>
{/block:NextPage}{/block:Pagination}{block:DayPagination}{block:P
<a href="{PreviousDayPage}">
« {ShortMonth} {DayOfMonth}
</a>
{/block:PreviousDayPage}{block:NextDayPage}
<a href="{NextDayPage}">
{ShortMonth} {DayOfMonth} »
</a>
{/block:NextDayPage}{/block:DayPagination}
</div>
</body>
</html>
Pginas de etiquetas
Variable
Descripcin
{block:TagPage}
{/block:TagPage}
{Tag}
{URLSafeTag}
{TagURL}
{TagURLChrono}
Ejemplo
<html>
Localizacin
Las
cadenas de texto localizadas de los temas permiten que se
muestren en cualquiera de los idiomas disponibles en Tumblr. Solo
tienes que sustituir las frases o palabras de tu tema por las variables
adecuadas. El texto completo se mostrar en el idioma seleccionado en
la configuracin del blog. Puedes consultar las cadenas de texto en
nuestro documento de ayuda sobre la localizacin de los temas
Bsquedas
Variable
Descripcin
{SearchQuery}
La bsqueda actual.
{URLSafeSearchQuery}
{block:SearchPage}
{SearchResultCount}
{block:NoSearchResults}
Ejemplo
<form action="/search" method="get">
<input type="text" name="q" value="{SearchQuery}"/>
<input type="submit" value="Search"/>
</form>
Siguiendo
Variable
Descripcin
{block:Following}
{/block:Following}
{block:Followed}
{/block:Followed}
{FollowedName}
{FollowedURL}
{FollowedPortraitURL16}
{FollowedPortraitURL24}
{FollowedPortraitURL30}
{FollowedPortraitURL40}
{FollowedPortraitURL48}
{FollowedPortraitURL64}
{FollowedPortraitURL96}
{FollowedPortraitURL128}
Ejemplo
{block:Following}
Blogs I follow:
<ul>{block:Followed}
<li>
<img src="{FollowedPortraitURL-48}"/>
<a href="{FollowedURL}">{FollowedName}</a>
</li>{/block:Followed}
</ul>{/block:Following}
Me gusta
Variable
Descripcin
{block:Likes}
{/block:Likes}
{Likes}
{Likes limit="5"}
{Likes
width="200"}
{Likes
summarize="100"}
Ejemplo
<html>
<head>
<style type="text/css">
ul#likes {
list-style-type: none;
margin: 0 0 0 0;
padding: 0 0 0 0;
}
li.like_post {
/* Should match the width specified in the
Likes tag */
width: 150px;
padding: 0 40px 0 0;
float: left;
}
li.like_post img {
max-width: 100%;
}
li.like_post blockquote {
margin: 0;
padding: 0 0 0 10px;
border-left: 1px solid #eee;
}
li.like_post ol,
li.like_post ul {
margin: 0 0 0 15px;
padding: 0;
}
li.like_post .like_link a {
font-weight: bold;
}
li.like_post .like_title {
font-weight: bold;
}
li.like_post .post_info_bottom {
margin: 10px 0 0 0;
display: block !important;
}
</style>
</head>
<body>
...
{block:Likes}
<div id="likes_container">
<h2>Stuff I like</h2>
{Likes limit="5" summarize="100" width="150"}
<a
href="http://www.tumblr.com/liked/by/{Name}">
See more stuff I like
</a>
</div>
{/block:Likes}
Descripcin
{LikeButton}
{LikeButton
color="grey"}
{LikeButton
size="20"}
Mximo: 100
Botn de reblogueo
Variable
Descripcin
{ReblogButton}
{ReblogButton color="grey"}
{ReblogButton size="20"}
Ejemplo
<html>
<head>
<style type="text/css">
.like_and_reblog_buttons {
border: 1px solid #e8e8e8;
border-radius: 3px;
list-style: none;
}
.like_and_reblog_buttons li {
float: left;
margin: 0;
padding: 7px 15px;
height: 20px;
}
.like_and_reblog_buttons li:first-child {
border-right: 1px solid #e8e8e8;
}
</style>
</head>
<body>
...
{block:Posts}
...
Descripcin
Tumblr.LikeButton.get_status_by_page(n)
Tumblr.LikeButton.get_status_by_post_ids([n,n,n])
Publicaciones relacionadas
Variable
Descripcin
{block:RelatedPosts}
{/block:RelatedPosts}
Ejemplo
<html>
<body>
{block:IfRelatedPosts}{block:RelatedPosts}
<h2>Related Posts</h2>
{block:Posts}
...
{/block:Posts}{/block:RelatedPosts}{/block:IfRelatedPosts}
</body>
</html>
Ejemplo
<html>
<head>
<!-- DEFAULT COLORS -->
<meta name="color:Background" content="#eee"/>
<meta name="color:Content Background" content="#fff"/>
<meta name="color:Heading text" content="
{TitleColor}"/>
<meta name="color:Text" content="#000"/>
<style type="text/css">
#title {
color: {color:Heading text};
}
#content {
background-color: {color:Content Background};
color: {color:Text};
}
</style>
</head>
<body bgcolor="{color:Background}">
<h1 id="title">Title</h1>
<div id="content">
...
</div>
</body>
</html>
Ejemplo
<html>
<head>
<!-- DEFAULT FONTS -->
<meta name="font:Title" content="Helvetica Neue"/>
<meta name="font:Body" content="Arial, Helvetica, sansserif"/>
Activar booleanos
Al incluir etiquetas "meta-if" en tu tema, los usuarios podrn cambiar las
opciones que definas fcilmente. Resulta til a la hora de mostrar u
ocultar widgets o elementos de diseo.
Ejemplo
<html>
<head>
<!-- DEFAULTS -->
<meta name="if:Show people I follow" content="0"/>
<meta name="if:Reverse pagination" content="1"/>
</head>
<body>
{block:IfNotReversePagination}
<a href="...">Previous</a> <a href="...">Next</a>
{/block:IfNotReversePagination}{block:IfReversePagination}
<a href="...">Next</a> <a href="...">Previous</a>
{/block:IfReversePagination}{block:IfShowPeopleIFollow}
<div id="following">...</div>
{/block:IfShowPeopleIFollow}
</body>
</html>
Ejemplo
<html>
<head>
<!-- DEFAULTS -->
<meta name="select:Layout" content="regular"
title="Regular">
<meta name="select:Layout" content="narrow"
title="Narrow">
<meta name="select:Layout" content="grid" title="Grid">
</head>
<body>
<div class="content {select:Layout}">
...
Ejemplo
<html>
<head>
<!-- DEFAULT TEXT -->
<meta name="text:Flickr Username" content=""/>
</head>
<body>
{block:IfFlickrUsername}
<div id="flickr_widget">
<script type="text/javascript"
src="http://flickr.com/widget?user={text:Flickr
Username}">
</script>
</div>
{/block:IfFlickrUsername}
</body>
</html>
Ejemplo
<html>
<head>
<!-- DEFAULT IMAGE -->
<meta name="image:Background"
content="http://static.tumblr.com/..."/>
<meta name="image:Header" content="{HeaderImage}"/>
<style type="text/css">
body {
background: #2D567C url('{image:Background}');
}
</style>
Ejemplo
<html>
<head>
<style type="text/css">
#content {
background-color: #fff;
color: #000;
}
{CustomCSS}
</style>
</head>
<body>
<div id="content">
...
</div>
</body>
</html>
Twitter
Si has activado la integracin con Twitter en tus preferencias de
Tumblr, puedes incluir el archivo Javascript /tweets.js
en tu blog
principal para que muestre tus ltimos tweets. Este archivo ejecuta la
funcin de devolucin de llamada recent_tweets() , de forma que enva
los datos JSON del API de Twitter como parmetro nico.
Variable
Descripcin
{block:Twitter}
{/block:Twitter}
{TwitterUsername}
Ejemplo
{block:Twitter}
<div id="twitter" style="display:none;">
Transformacin de variables
Al
aadir prefijos de transformacin a las variables, Tumblr
las mostrar
en formatos especiales, lo cual resulta muy til a la hora de traspasar
datos a Javascript, por ejemplo. Actualmente, disponemos de cinco
tipos de prefijos de transformacin:
Variable
Descripcin
Plaintext
Javascript
Javascript
URLEncoded
RGB
Ejemplo
<a href="{URL}" title="{PlaintextName}">{Name}</a>
<script type="text/javascript">
var description
= {JSDescription};
var description_text = {JSPlaintextDescription};
</script>
<a href="http://digg.com/submit?url={URLEncodedPermalink}">Digg
this</a>
Tumblr, Inc. Ayuda Acerca de Tumblr Aplicaciones Desarrolladores Temas Empleos Informacin legal Privacidad