Tumblr自定义主题框架
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Tumblr自定义主题框架相关的知识,希望对你有一定的参考价值。
Every time I start coding a new Tumblr theme I find myself writing the same Tumblr tags over and over again. That's why I decided to create a boilerplate, or a framework, that I can reuse for my next projects.I tried to cover most of the features included in the [documentation](http://www.tumblr.com/docs/en/custom_themes), yet provide just the bare essentials so you can build up from there.
Have fun!
(v 1.3)
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> {block:Description}<meta name="description" content="{MetaDescription}">{/block:Description} <link rel="shortcut icon" href="{Favicon}"> <link rel="apple-touch-icon" href="{PortraitURL-128}"> <link rel="alternate" type="application/rss+xml" href="{RSS}"> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <style> {CustomCSS} </style> </head> <body> <header> {block:Description} {/block:Description} </header> <div class="content"> <section class="posts"> {block:NoSearchResults} {/block:NoSearchResults} {block:TagPage} {/block:TagPage} {block:Posts} <article class="post {PostType}"> {block:Text} {block:Title} {/block:Title} {Body} {/block:Text} {block:Photo} {LinkOpenTag} <img src="{PhotoURL-500}" alt="{PhotoAlt}"> {LinkCloseTag} {block:HighRes} {/block:HighRes} {block:Exif} <dl> {block:Camera} {/block:Camera} {block:Aperture} {/block:Aperture} {block:Exposure} {/block:Exposure} {block:FocalLength} {/block:FocalLength} </dl> {/block:Exif} {block:Caption} {Caption} {/block:Caption} {/block:Photo} {block:Photoset} {Photoset-500} {block:Caption} {Caption} {/block:Caption} {/block:Photoset} {block:Quote} {block:Source} {/block:Source} </blockquote> {/block:Quote} {block:Link} {block:Description} {Description} {/block:Description} {/block:Link} {block:Chat} {block:Title} {/block:Title} <ul> {block:Lines} <li class="{Alt}"> {block:Label} {/block:Label} {Line} </li> {/block:Lines} </ul> {/block:Chat} {block:Audio} {block:AudioEmbed} {AudioEmbed-500} {/block:AudioEmbed} {block:AudioPlayer} {block:AlbumArt} <img src="{AlbumArtURL}" alt="Album Art"> {/block:AlbumArt} {AudioPlayerBlack} {block:ExternalAudio} {/block:ExternalAudio} {/block:AudioPlayer} {block:Caption} {Caption} {/block:Caption} {/block:Audio} {block:Video} {Video-500} {block:Caption} {Caption} {/block:Caption} {/block:Video} {block:Answer} {Answer} {/block:Answer} {block:Date} <footer> <ul> {block:HasTags} <li>Tags: <ul> {block:Tags} <li> </li> {/block:Tags} </ul> </li> {/block:HasTags} {block:ContentSource} <li>Source: <a href="{SourceURL}"> {block:SourceLogo} <img src="{BlackLogoURL}" width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}"> {/block:SourceLogo} {block:NoSourceLogo} {SourceTitle} {/block:NoSourceLogo} </a> </li> {/block:ContentSource} </ul> </footer> {/block:Date} </article> <!-- /post --> {block:PostNotes} {PostNotes} {/block:PostNotes} {/block:Posts} {block:PermalinkPagination} <nav> {block:PreviousPost} {/block:PreviousPost} {block:NextPost} {/block:NextPost} </nav> {/block:PermalinkPagination} {block:Pagination} <nav> {block:PreviousPage} {/block:PreviousPage} {block:NextPage} {/block:NextPage} </nav> {/block:Pagination} </section> <!-- /posts --> </div> <!-- /content --> <footer> <ul> {block:HasPages} {block:Pages} {/block:Pages} {/block:HasPages} </ul> </footer> </body> </html>
以上是关于Tumblr自定义主题框架的主要内容,如果未能解决你的问题,请参考以下文章