All topics
Setting up
The network drive
Blogs and forums
Files and websites
Cameras and sensors
Template Sites
A folder you make public or protected is also a website. You can start from a blog, a podcast, a gallery, a download page or a sensor dashboard that the app makes for you, and with Pro keep it up to date from a browser on your laptop or phone. You can also write the pages yourself in Markdown, with layouts and a list of posts, the way you would for Jekyll, and visitors see each change as soon as you save it.
Example sites to start from
The Add example section of the + menu on the Content tab builds a working site (on iOS 15 the items read Example blog and so on):
- a Blog, either empty (Empty Blog…) or with a post for each Markdown file you pick (Blog from Markdown Files…). The front page lists the posts newest first with a small picture beside each, a post ends with links to the older and the newer post, link previews show the post's picture, and readers can follow the blog in a feed reader by adding its address,
- a Download site listing files you pick,
- a Gallery from photos and videos, with thumbnails generated on the device and videos that play in any browser,
- a Podcast, either empty or with an episode for each MP3 or M4A file you pick, with a page for each episode and a feed that podcast apps and directories follow (see Your Own Podcast),
- a Sensor dashboard, on an iPhone or iPad, with a tile per sensor of
the device, a
readings.jsonendpoint and tiles that update themselves over a live stream, - a Forum / Group, which makes a group whose members join with a link you share (see Groups),
- and an Editor whose pages change one of your other folders from a browser (see Editing from a Browser).
Each example is created protected, so you can look around in a browser after signing in with a device account and edit before deciding who else should see it. A group is open to its members only. A per-folder Keep example updated switch, which is off by default, lets a newer version of the app refresh the parts of an example you have not edited. Files you have changed are left alone, and a refresh replaces untouched files without deleting any. The screen of the folder also offers a one-off Update and a confirmed Reset.
Changing a site in the app
On the screen of a folder made from an example, with or without Pro, Settings sets the site's title, its description, an introduction above the posts and its look: Night, Paper, Sand or Forest colors, an accent color of your own and a mono, sans or serif typeface. A blog also has a tagline, and a podcast has what directories ask of a show and its artwork.
A blog's Posts lists its posts, newest first. Tap + for a new post, or tap a post to change its title, text or cover. Add Photos and Videos… puts each photo or video in where the cursor is, and swiping a post to the left deletes it. A podcast's Episodes works the same way, with each episode's MP3 or M4A file and its number (see Your Own Podcast).
Files opens the files of any folder except a git repository. Tap a text
file to edit it or any other file to look at it, and use + to upload files, add
photos and videos or make a folder. Touch and hold a file to rename or delete
it. While you write a post, the introduction or a page, typing inside {{ }}
or {% %} lists the tags, filters and variables you can use, with what each
one shows on your site, and HTML, Markdown and Liquid show in colors.
Writing a blog from a browser
With Pro, you can write a blog from any browser. Choose Editor… from the + menu, pick the blog, then open the editor's address and sign in with a device account. The editor opens on the blog's posts, newest first, with a form for a new post:
- Add photos and videos… puts each one into the post where the cursor is. Readers get each photo at a size that suits their screen, and each video at a quality that suits their connection once your device has prepared it.
- Cover picks the picture shown beside the post on the front page and in link previews: the first picture in the post unless you choose another.
- Settings sets the blog's title, a tagline, a description and an introduction above the posts, and its look: Night, Paper, Sand or Forest colors, an accent color of your own and a mono, sans or serif typeface.
Each post you write in the browser is an ordinary Markdown file in _posts/,
which you can also open and change in the Files app or the Finder. Its photos
and videos go in media/, in a folder named after the post's date, and each
one appears in the text as a line like these:
{% include photo.html src="/media/2026-10-30/beach.jpg" caption="Low tide" %}
{% include video.html src="/media/2026-10-30/waves.mov" %}
Add caption for a line of text under the photo or video, and alt to a
photo for the text a screen reader reads in its place.
Turning a folder into a template site
A public folder becomes a template site as soon as a _config.yml file exists
at its root. In the app it stays the same public folder at the same address.
From then on, pages beginning with front matter, which is two
--- lines around a little YAML, are rendered through templates before they
are served:
---
title: Hello from the drawer
layout: default
---
This page is written in **Markdown** and served by an old phone.
Everything else, such as images, stylesheets and plain HTML without front matter, is served as it is.
The Jekyll model
- Layouts live in
_layouts/. A page picks one withlayout: defaultin its front matter, and the layout places the body of the page with{{ content }}. Layouts can nest. - Includes in
_includes/hold shared fragments such as headers and footers. - Posts are files named
_posts/2026-07-24-my-title.md, where date and slug come from the filename.site.postslists them newest first:
{% for post in site.posts %}
<a href="{{ post.url }}">{{ post.title }}</a> — {{ post.date | date: "%b %-d, %Y" }}
{% endfor %}
- Liquid is the template language,
with its standard tags and the familiar Jekyll filters (
markdownify,date,where,group_by,jsonifyand dozens more) used by Jekyll and GitHub Pages. Liquid is safe to use with untrusted templates. - Templates see the familiar globals:
sitefor configuration, posts, tags, categories,site.data.*from_data/files andsite.static_fileswith image sizes and, for videos, a still, the prepared stream and a page to share (see Videos on the Web),pagefor the front matter of the current page, andcontentinside layouts. - Each post also has a
cover: theimageof its front matter, or else the first photo or video in its text, as a path in the site. Add?w=160to its address for a small thumbnail (a video gives its still), the way the example blog's front page shows one beside each post. A post whose front matter setscoveritself keeps that value.
Since the model matches Jekyll, an existing Jekyll blog largely serves as it
is once you drop the folder in. The {% seo %} tag from jekyll-seo-tag, which
most Jekyll themes put in their page head, works too and reads the same
_config.yml settings, so pages get their titles, descriptions and link
previews without changes. Without a url in _config.yml, site.url is the
address the page was opened on, as with jekyll serve, so absolute_url and
the canonical links of {% seo %} name the device the way the visitor reached
it. Sass and collections are not supported, nor
are Jekyll's highlight, link, post_url and include_relative tags,
Liquid's ifchanged tag or the find, find_exp and sample filters. A
page using one of these tags shows a render error naming the file, and an
unsupported filter leaves its value unchanged.
The device object
Templates also get a device object with live facts about the hardware doing
the serving: device.name, device.marketing_name, device.os.name and
.version, device.battery.level and .state, device.storage.total,
.free and .used, device.thermal_state, device.uptime in whole minutes
since the app was launched and device.uptime_text with the same in words,
such as "110 minutes", "4 hours" or "3 days". device.os.name is "iOS",
"iPadOS" or "macOS", and on a desktop Mac device.battery.state reads "mains"
with no level. A footer like
Served by {{ device.marketing_name }} on battery {{ device.battery.level }}%
is rendered again whenever the facts change, while pages that do not use
device stay fully cached.
Sensor readings arrive the same way, through device.sensors for the
instruments of the device itself. See
Sensor Data.
JSON endpoints
Rendering is decided by front matter rather than by file extension, so a file
beginning with a --- fence is rendered whatever it is called, and its name
decides the content type it is served with. This makes an API endpoint an
ordinary page:
---
layout: null
---
{"pressure": {{ device.sensors.pressure | jsonify }}, "uptime": {{ device.uptime }}}
Save that as readings.json and any script or dashboard can fetch it. The
same caching and access level apply as to every other page in the folder.
Live updates
Any page can also be followed instead of polled. Request the same URL with an
Accept: text/event-stream header and the connection stays open, sending a
fresh render whenever anything the page read has changed:
const events = new EventSource("/sensors/readings.json");
events.onmessage = event => update(JSON.parse(event.data));
A render is sent only when something the page read has changed. A device
serves up to 16 of these streams at once. A browser reconnects by itself when
a stream drops. One turned away at the limit gets an error that ends its
EventSource, and the Sensor dashboard example then opens a new one after a
pause.
Editing and publishing
When you save a file, visitors see the change the next time they open or reload the page. You can change the files on the folder's screen in the app, in the Files app, from a browser through an editor, with any S3 client, or by pushing to a git repository on the device that holds the site. An S3 client gets the files as you wrote them, so a site you copy to your computer and back stays as it was.
Static site export
Export Site Folder… in the … menu at the top of the folder's screen
exports the rendered site. Every
page and post is rendered to plain HTML with root-relative links, images have
their metadata stripped and hidden files are left out, and the result is
delivered as a folder through the share sheet. You can use this to host a copy
anywhere a plain folder of files can live, or to keep a frozen snapshot of a
site, with Pro. A blog's feed in the copy carries full addresses once
_config.yml names the url it will be hosted at.
From iOS 16 and macOS 13, the Export Site action in the Shortcuts app does the same for the folder you choose and passes the result to the next action, so a shortcut of your own can publish the site wherever you host it. It comes as a zip archive with the site's front page at its top, which most hosts take as an upload, or as a folder if you change the action's As setting. The action runs on the device that serves the site, from the Shortcuts app there or from an automation, such as one each night. Like the menu item, it needs Pro.