sdfsd sdf sdf
HTML
Annotated html source code of foliodot web page
Hint: Click on desired code line to expand more details.<!DOCTYPE html>
<meta charset="utf-8">
<title>Foliodot - portfolio website à la photo book </title>
<meta name="description" content="Simplest, versatile website for photographers and artists.">
<title>Website title</title>
<meta name="description" content="Describe your website">
Example
Description
- Title is title of the document and it's shown in a browser's title bar
- Meta description is used for short description of your page.
Title and meta description tags are important for search engine crawlers. Put relevant information about your page here as this data will be visible in google search results.
<link rel="stylesheet" id="folio-css" href="css/folio.min.css">
Description
Foliodot css (element required)
<main>
Description
Main content section for project pages (element required)
<img src="img/project/photo-1.jpg"/>
<img data-src="img/project/photo-1.jpg"/>
<img data-src="img/project/photo-1.jpg" alt="This is my image 1"/>
<img data-src="img/project/photo-1.jpg" alt="This is my image 1" transition="fade" />
<img data-src="img/project/photo-1.jpg" alt="This is my image 1" transition="fade" hash="photo" />
<img data-src="img/project/photo-1.jpg" fit="cover" />
<img data-src="img/project/photo-1.jpg" self="size-small" />
<img data-src="img/project/photo-1.jpg" />
<div class="caption">
This is <strong>custom</strong> caption with <em>rich formating</em>
</div>
<a href="https://www.flickr.com/photos/i_shudder/14691597946"
title="Moorabbin May 2014 by Peter Schofield, on Flickr">
<img src="https://farm6.staticflickr.com/5587/14691597946_90a2f93536_b.jpg"
width="1024"
height="1024"
alt="Moorabbin May 2014">
</a>
Examples
- image — basic simple photo page
- lazy loading image — image is lazy loaded only when it's near viewport - use 'data-src' attribute
- Simple image caption via 'alt' attribute
-
image with custom caption
— custom photo cation can be set via separate
div.caption
tag. - transition — transition for this page only
- hash — url hash for photo page
- fit — image fit to viewport: 'cover' or 'contain'
- size — max image size: tiny, small, medium, large or huge
- flickr image embeding — copy/paste flickr embed code.
- Live examples — pages created with foliodot template
Description
Use img
element to create photo pages.
Learn more
<figure>
<img data-src="1.jpg"/>
<img data-src="2.jpg"/>
</figure>
<figure self="size-medium">
<img data-src="1.jpg"/>
<img data-src="2.jpg"/>
</figure>
<figure self="size-medium">
<img data-src="1.jpg" self="top"/>
<img data-src="2.jpg" self="bottom"/>
</figure>
<figure>
<img data-src="1.jpg"/>
<img data-src="2.jpg" self="size-x2"/>
<img data-src="3.jpg"/>
</figure>
Examples
- Diptych page
- Diptych page (medium size)
- Diptych page (medium size) left item align top, right item align bottom
- Triptych page (second item is two times larger)
- Live examples — pages created with foliodot template
Description
Use figure
element to create diptych pages.
Learn more
<article>
<h2>Article heading</h2>
<p>This is first paragraph text...</p>
<p>This is second paragraph text...</p>
</article>
<article self="size-medium" hash="my-article" transition="fade">
<h2>Article heading</h2>
<p>This is first paragraph text...</p>
<p>This is second paragraph text...</p>
</article>
Examples
- Simple article page
- Simple article page, medium size with custom hash and transition
- Live examples — pages created with foliodot template
Description
Use <article>
element to create inner pages that contain mostly textual content.
Learn more
</main>
Every child element inside main will be converted to 'page'
<aside>
Description
Sidebar content defined with aside
element.
Usage
- Sidebar section is optional.
- Sidebar section can contain any html you want
- Remove
aside
element to remove sidebar section from web page. - View sidebar configuration options available in sidebar configuration object
<h3>Your Name</h3>
Description
Simple logo wrapper
</aside>
End of navigation
<script src="js/folio.min.js"></script>
<script src="js/folio.min.js"></script>
<script src="js/config.js"></script>
Examples
- Foliodot javascript file
- Include custom configuration file — view details
Description
Foliodot javascript file.
Usage
- Foliodot js file is required.
- Insert foliodot js file at the bottom of the page
- Configuration js file is optional. Insert configuration file after main foliodot js file. Learn more about foliodot configuration file
<script>
FOLIO.init();
</script>
<script>
FOLIO.init('/thumbnails/2');
</script>
<script>
FOLIO.init('/5', {
sidebar : {
hidden : false,
align: 'top'
},
project : {
transition : 'fade'
},
thumbnails : {
grid : '4x3',
fit : 'cover',
}
});
</script>
Examples
- Simple initialization
- Initialization with initial page — pass hash value of particular inner page to display it on load
- Advanced initialization — project starts at page 5 and custom configuration object is passed during template initialization.
Description
Foliodot initialization function. Accepts two optional arguments:
page
— hash string for the initial page.configuration
— js object with configuration options
Usage
- Initialization function is required.
- Script element with initialization function should be the last element in html source code.
- Initialization arguments are optional.
- Use
page
argument when you want to show particular inner page first (upon foliodot web page load) - Learn more about foliodot configuration object
- View all foliodot settings available via configuration object
More
Fatalis advenas ducunt ad fraticinida.Diatrias congregabo, tanquam audax exemplar.Bubos messis!
× × ×
Learn next: Introduction