Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <!--
- base code by shythemes
- for you:
- * tumblr documentation
- https://www.tumblr.com/docs/en/custom_themes
- * html reference
- http://www.w3schools.com/tags/default.asp
- * css reference
- http://www.w3schools.com/cssref/default.asp
- credits:
- * photosets by pixel union
- https://github.com/PixelUnion/Extended-Tumblr-Photoset
- * infinite scroll by paul irish
- http://www.infinite-scroll.com/
- -->
- <title>{Title}</title>
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <link rel="shortcut icon" href="{Favicon}">
- {block:Description}<meta name="description" content="{MetaDescription}">{/block:Description}
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="color:background" content="#ffffff">
- <meta name="color:text" content="#3f3f3f">
- <meta name="color:accent" content="#9f9f9f">
- <meta name="color:border" content="#ededed">
- <meta name="color:link" content="#dcdcdc">
- <meta name="color:link hover" content="#cbcbcb">
- <meta name="color:caption" content="#f9f9f9">
- <meta name="color:posts" content="#ffffff">
- <meta name="if:show captions" content="1">
- <meta name="if:show tags" content="1">
- <meta name="if:infinite scroll" content="0">
- <meta name="text:home link" content="">
- <meta name="text:archive link" content="">
- <meta name="text:ask link" content="contact">
- <meta name="text:link 1" content="">
- <meta name="text:link 1 url" content="">
- <meta name="text:link 2" content="">
- <meta name="text:link 2 url" content="">
- <meta name="text:link 3" content="">
- <meta name="text:link 3 url" content="">
- <meta name="text:link 4" content="">
- <meta name="text:link 4 url" content="">
- <meta name="text:link 5" content="">
- <meta name="text:link 5 url" content="">
- <meta name="text:link 6" content="">
- <meta name="text:link 6 url" content="">
- <style type="text/css">
- body {
- margin:0;
- font-size:10px;
- font-family:helvetica, sans-serif;
- line-height:1.6em;
- -moz-osx-font-smoothing:grayscale;
- -webkit-font-smoothing:antialiased;
- font-smoothing:antialiased;
- color:{color:text};
- background:{color:background};
- }
- a {
- color:inherit;
- text-decoration:none;
- -webkit-transition:all .2s linear;
- transition:all .2s linear;
- }
- small, sub {
- font-size:1em;
- vertical-align:baseline;
- }
- blockquote {
- padding:.6em .6em .6em 2em;
- border-left:1px solid {color:border};
- }
- blockquote, ol, ul, p, pre {
- margin:0 0 .6em;
- }
- h1, h2, h3, h4, h5, h6 {
- margin:0 0 .6em;
- font-size:1em;
- font-weight:inherit;
- }
- img {
- border:0;
- max-width:100%;
- height:auto;
- display:block;
- }
- hr {
- margin:1em 0;
- border:0;
- height:1px;
- -moz-box-sizing:border-box;
- box-sizing:border-box;
- background-color:{color:border};
- }
- .title {
- font-size:15px;
- font-weight:bold;
- }
- .accent,
- .tumblr_blog {
- color:{color:accent};
- }
- .main {
- margin:150px auto;
- width:350px;
- }
- aside {
- position:fixed;
- width:150px;
- margin-left:-225px;
- /* delete the three lines above if you want a header */
- }
- nav {
- margin:.6em 0 0;
- }
- nav li {
- display:inline;
- }
- .content {
- margin:150px 0;
- }
- .entry {
- position:relative;
- margin:0 0 150px;
- }
- .entry:last-child {
- margin-bottom:0;
- }
- .text {
- margin:1em 0 0;
- }
- .text:last-child,
- .text *:last-child {
- margin-bottom:0;
- }
- .date {
- margin:0 0 0 2em;
- position:absolute;
- top:0;
- left:100%;
- width:225px;
- /* delete the five lines above if you want the date under posts */
- }
- .tags {
- {block:IndexPage}{block:ifNotShowTags}display:none;{/block:ifNotShowTags}{/block:IndexPage}
- }
- .tags .comma:last-of-type {
- display:none;
- }
- .caption {
- {block:IndexPage}{block:ifNotShowCaptions}display:none;{/block:ifNotShowCaptions}{/block:IndexPage}
- }
- .chat {
- padding:0;
- list-style-type:none;
- }
- .chat .label {
- font-weight:bold;
- }
- .quote {
- font-weight:bold;
- }
- .media {
- position:relative;
- display:inline-block;
- width:100%;
- }
- #tumblr_controls {
- position:fixed!important;
- opacity:.67!important;
- -webkit-filter:invert(100%);
- -webkit-backface-visibility:hidden;
- padding:4px;
- }
- {block:ifInfiniteScroll}
- .pagination,
- #infscr-loading {
- display:none!important;
- }
- {/block:ifInfiniteScroll}
- </style>
- <link href="http://static.tumblr.com/qudkd6d/OcDnl99gb/style.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <div class="main">
- <aside>
- <h1 class="title"><a href="/">{Title}</a></h1>
- <p>{Description}</p>
- <nav>
- {block:ifHomeLink}<li><a href="/">{text:home link}</a></li>{/block:ifHomeLink}
- {block:ifArchiveLink}<li><a href="/archive">{text:archive link}</a></li>{/block:ifArchiveLink}
- {block:ifAskLink}<li><a href="/ask">{text:ask link}</a></li>{/block:ifAskLink}
- {block:HasPages}{block:Pages}<li><a href="{URL}">{Label}</a></li> {/block:Pages}{/block:HasPages}
- {block:ifLink1}<li><a href="{text:link 1 url}">{text:link 1}</a></li>{/block:ifLink1}
- {block:ifLink2}<li><a href="{text:link 2 url}">{text:link 2}</a></li>{/block:ifLink2}
- {block:ifLink3}<li><a href="{text:link 3 url}">{text:link 3}</a></li>{/block:ifLink3}
- {block:ifLink4}<li><a href="{text:link 4 url}">{text:link 4}</a></li>{/block:ifLink4}
- {block:ifLink5}<li><a href="{text:link 5 url}">{text:link 5}</a></li>{/block:ifLink5}
- {block:ifLink6}<li><a href="{text:link 6 url}">{text:link 6}</a></li>{/block:ifLink6}
- </nav>
- </aside>
- <div class="content">
- {block:Posts}
- <article class="entry {block:Photo}ph{/block:Photo}{block:Photoset}ph{/block:Photoset}">
- <section class="post">
- {block:Audio}
- <div class="audio">
- {block:AudioPlayer}{AudioPlayerGrey}{/block:AudioPlayer}
- </div>
- {/block:Audio}
- {block:Photo}
- <div class="media">
- {LinkOpenTag}
- <img src="{PhotoURL-500}">
- {LinkCloseTag}
- </div>
- {/block:Photo}
- {block:Photoset}
- <div class="media photoset">
- <div class="photo-slideshow" id="photoset_{PostID}" data-layout="{PhotosetLayout}">{block:Photos}<div class="photo-data"><div class="pxu-photo"><img src="{PhotoURL-500}" width="{PhotoWidth-500}" height="{PhotoHeight-500}" data-highres="{PhotoURL-HighRes}" data-width="{PhotoWidth-HighRes}" data-height="{PhotoHeight-HighRes}"></div><a class="tumblr-box" rel="post-{PostID}" href="{PhotoURL-HighRes}"></a></div>{/block:Photos}</div>
- </div>
- {/block:Photoset}
- {block:Video}
- <div class="media video">{Video-500}</div>
- {/block:Video}
- {block:Answer}
- <div class="question">
- <div class="sender">{lang:Asker asked}:</div>
- <span class="inquiry">{Question}</span>
- </div>
- <div class="answer text">{Answer}</div>
- {/block:Answer}
- {block:Chat}
- {block:Title}<h1 class="title">{Title}</h1>{/block:Title}
- <ul class="chat text">
- {block:Lines}
- <li class="line">
- {block:Label}
- <span class="label">{Label} </span>
- {/block:Label}
- {Line}
- </li>
- {/block:Lines}
- </ul>
- {/block:Chat}
- {block:Link}
- <h1 class="title"><a href="{URL}">{Name}</a></h1>
- {block:Description}<div class="text">{Description}</div>{/block:Description}
- {/block:Link}
- {block:Quote}
- <div class="quote text">{Quote}</div>
- {block:Source}
- <div class="source text">{Source}</div>
- {/block:Source}
- {/block:Quote}
- {block:Text}
- {block:Title}<h1 class="title">{Title}</h1>{/block:Title}
- <div class="text">{Body}</div>
- {/block:Text}
- {block:Caption}
- <div class="caption text">{Caption}</div>
- {/block:Caption}
- {block:Date}
- <div class="date accent text">
- <a class="permalink" href="{Permalink}">{MonthNumber}.{DayOfMonthWithZero}</a>
- {block:HasTags}
- <div class="tags">{block:Tags}<a href="{TagURL}">{Tag}</a><i class="comma">, </i>{/block:Tags}</div>
- {/block:HasTags}
- </div>
- {/block:Date}
- </section>
- </article>
- {/block:Posts}
- <!-- {block:ContentSource}{SourceURL}{/block:ContentSource}{block:RebloggedFrom}{ReblogRootURL}{ReblogParentURL}{/block:RebloggedFrom} -->
- </div>
- {block:Pagination}<div class="pagination">{block:PreviousPage}<a class="prev" href="{PreviousPage}">previous</a>{/block:PreviousPage} {block:NextPage}<a class="next" href="{NextPage}">next</a>{/block:NextPage}</div>{/block:Pagination}
- </div>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
- <script src="http://static.tumblr.com/qudkd6d/Az6nkemqr/pxuphotoset.min.js"></script>
- <script src="//static.tumblr.com/fwgzvyf/l6jnyutne/shythemes.vr.js"></script>
- {block:IndexPage}
- {block:ifInfiniteScroll}
- <script src="http://static.tumblr.com/wgijwsy/u2vm2hxv6/jquery.infinitescroll.min.js"></script>
- {/block:ifInfiniteScroll}
- {/block:IndexPage}
- <script>
- $(document).ready(function(){
- $('.photo-slideshow').pxuPhotoset({
- lightbox: true,
- rounded: false,
- gutter: '1px',
- photoset: '.photo-slideshow',
- photoWrap: '.photo-data',
- photo: '.pxu-photo'
- });
- var $container = $('.content');
- {block:ifInfiniteScroll}
- $container.infinitescroll({
- itemSelector: '.entry',
- navSelector: '.pagination',
- nextSelector: '.next',
- loadingImg: '',
- loadingText: '<em></em>',
- bufferPx: 2000
- },
- function( newElements ) {
- var $newElems = $( newElements );
- $newElems.find('.photo-slideshow').pxuPhotoset({
- lightbox: true,
- rounded: false,
- gutter: '1px',
- photoset: '.photo-slideshow',
- photoWrap: '.photo-data',
- photo: '.pxu-photo'
- });
- resizeVideos();
- });
- {/block:ifInfiniteScroll}
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement