Anasaki Studio

Content

Pages and the media library

Create pages, set the home page, upload images and files, import images from a link and make download links that count downloads

5 min readLast updated

View as Markdown

On this page

Pages#

Pages are the main pages of the site, such as home, about us and contact — designed freely, top to bottom.

  1. Go to Pages → New page and enter a name and an address (the page lives at /<address>). The address is filled in from an English name; for a Thai name, enter a short English address such as contact, because a Thai address turns into a long link (%E0%B8…) when shared
  2. Press Design to open the designer, then click any text or image to edit it (Designing pages)
  3. Press Publish in the designer when it is ready

Other commands in the page list:

  • Set as home page — the page people see when they open the site (also in Site settings → Display); the home page has a 🏠 badge
  • Duplicate — copies the page as a draft, to start a similar page
  • Delete — cannot be undone

Without a home page the site shows the latest posts instead. Pages keep a version history like posts (25 versions); go back with 🕘 in the designer.

Media library#

Keep images and files in one place and use them in posts and pages.

  • Upload — drag files from your computer, or press + Upload (several files at once)
  • Import from a link — paste the link of an image/file such as https://…/image.png and press Import: the server downloads and keeps it (it must be a public address)
  • Alt text — helps Google and blind visitors; give every image one
  • Filter by kind: images, documents, video, audio, archives, other

File types and sizes#

Set in Site settings → Files & media:

SettingDefault
Maximum file size32 MB per file (1–512)
Allowed file typesjpg jpeg png gif webp svg mp4 webm mp3 wav ogg pdf doc docx xls xlsx ppt pptx odt ods odp txt csv rtf zip rar 7z

Executable files (such as .exe .php .js .html) are always blocked even when listed, and SVG can only be uploaded with the raw HTML permission (unfiltered_html).

Responsive images#

Since 2.2.2, JPEG and PNG images from the media library used in pages or posts get several sizes automatically (96, 160, 320, 480, 768, 1200 and 1600 px wide — the first three since 2.3.0), and the browser loads the one that fits the screen, so phones never download the full-size file.

  • An image with a fixed width in the designer (such as a 30 px logo) tells the browser its real size, so a small copy loads instead of a full-width one (2.3.0)
  • The first 2 images of a page (usually the logo and the hero) load right away; the rest load as you scroll near them (2.3.0)
  • Nothing to set up, and it works for images uploaded earlier too
  • A size is made the first time someone requests it and kept in uploads/.sizes (delete that folder and it is rebuilt)
  • An image smaller than the requested size is sent as it is — never enlarged
  • Replacing an image in the library remakes its sizes, and deleting it deletes them
  • GIF, WebP, SVG and images from other sites keep using the original file

Downloadable files#

Every file in the library has a download link (/download/<id>): one click gets the file, and downloads are counted (the library shows "Downloaded N times"). Three ways to use it:

  1. In the post editor: Insert → Downloadable file
  2. In the designer: the Download button element (it can show the file type and size, e.g. PDF · 1.2 MB)
  3. Copy the download link into a button or a text

After deleting a file from the library, pages that used it no longer show it.