> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superintern.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Blog, Pages, Search and Media

> Add blog posts and pages that help people find you, a search box for your visitors, large pictures, videos and PDFs, and pages for members of a plan on your SuperIntern website.

## Blog posts and pages that bring visitors

SuperIntern can write pages that help more people find you on Google and in AI answers: blog posts, and pages about one service, one area you cover or one question your customers ask. Ask in the website builder, for example *"Write a page about our boiler repairs in Exampleton"* or *"Start a blog with a post about choosing a wedding cake."*

New pages that SuperIntern writes by itself wait on your website's **Overview** tab, under **New pages from SuperIntern**:

* **Open in preview** to read one first.
* **Approve and publish** puts it online. If its list (Blog, Services, Areas we cover or Guides) isn't in your menu yet, it's added, and you're told first.
* **Not this one** drops it.

A new page stays off your website until you approve it. A change SuperIntern makes to a page that's already live goes online the next time your website is published. On a website in more than one language, SuperIntern offers to translate an approved page, and each translation waits for your approval too.

## Search on your website

Your website can have a search box for its own pages, in its own colours. Ask the builder to add it, for example *"Add search to the website."* It's worth it once you have enough pages that visitors would look for something: a shop, a blog, a menu.

* It searches what visitors can see: your pages, and the public items they show. Nothing a visitor types is sent anywhere.
* It catches up with your CRM each time the website is updated.
* It isn't available on a website with [private pages](https://docs.superintern.ai/websites/private-pages.md), since its index would hold every page's text.
* It works once the website is published, not in the preview.

## Large pictures, videos and PDFs

Big photos, PDFs and short video clips (under a minute, such as a background loop or a product shot) are kept as your website's **files**, outside its code, so pages stay fast and videos start quickly. Send them in the builder chat, or ask SuperIntern to put a picture on a page.

* In the builder, **Files** shows **Your website's files**: pictures, videos, sound and PDFs, up to 60 MB each. **Ask SuperIntern to use it** puts one on a page; delete one only once no page uses it.
* **What this picture shows**: SuperIntern describes each picture so it can put it in the right place. Edit the description if it's wrong; SuperIntern never changes what you write.
* A file is online as soon as it's added. Files aren't part of a version: going back to an earlier version doesn't bring back a file you deleted.
* **Longer videos** (a tour, an interview) belong on YouTube or Vimeo, which play them at the size each visitor's connection can take. Give SuperIntern the link: it shows the video's cover with a play button, and the player loads only when a visitor presses it.

## Members-only pages

Pages, or parts of a page, that only customers who pay for a plan (a membership, a box, a class pass) can see. Ask the builder, for example *"Make the recipes page for Gold members only."*

> [!NOTE]
>
> Plans are part of the [shop](https://docs.superintern.ai/websites/shop.md), which isn't available yet. To keep pages for people you choose today, use [private pages](https://docs.superintern.ai/websites/private-pages.md).

A member is a customer [signed in](https://docs.superintern.ai/websites/customer-accounts.md) to your website whose plan is active (including a free trial, a payment Stripe is still retrying, or a plan cancelled but paid until the end of its period). Anyone else never receives the members' part of the page, not even hidden. A members-only page is kept out of search engines and site search.

## For builders

The full detail is in the site kit's guide (`npx site-kit guide` prints where it is): "Blog posts and pages", "Site search for visitors", section 4 for media, and "Members-only pages" in section 3.

### Blog posts and pages

Each is a Markdown file the kit makes into a page in the site's layout, with its structured data, a sitemap entry, a line in `llms.txt` and a list page:

| File | Address | Listed at |
| - | - | - |
| `src/content/blog/<name>.md` | `/blog/<name>` | `/blog`, and the feed `/blog/rss.xml` |
| `src/content/pages/<name>.md` with `kind: service` | `/services/<name>` | `/services` |
| `src/content/pages/<name>.md` with `kind: location` | `/locations/<name>` | `/locations` |
| `src/content/pages/<name>.md` with `kind: guide` | `/guides/<name>` | `/guides` |

* **Front matter**: `title` (at most 60 characters) and `summary` (under 170) always; `date` and `author` on posts, with an optional `image` and `imageAlt`; `kind` on pages, `area` on a location page, `updated` on a guide. Optional: `faq` (a list of `{ q, a }`), `related`, `query` (the search it was written for) and `draft: true` (preview only, never built).
* Headings in the text start at `##`. A page of the pages collection needs at least 300 words, and `npm run check` refuses a page that is mostly the same as another (a location page copied for the next town).
* **The site links the list.** The kit adds no menu item: the blog is published only while `nav` links `/blog`, and `/services`, `/locations` or `/guides` must be linked from `nav` or a page.
* **Translations** go in a folder named for the language, with the **same file name** as the original: `src/content/blog/es/<name>.md` is served at `/es/blog/<name>`, and the two are linked for search engines and the language switch.
* New pages SuperIntern writes are added with `draft: true` and wait for the owner's **Approve and publish**. Don't publish a page the owner hasn't approved.

### Site search

Off unless `src/site.config.ts` says `search: { enabled: true }`; switch it on when the owner asks for search. The build writes an index of every page a search engine may list (one per language), and `<SiteSearch lang={lang} />` in the header opens the panel `<SuperInternBody />` adds. Leave a part out with `data-pagefind-ignore="all"`. On a site with any private page the platform doesn't serve the index, and the box says search isn't available. `npm run dev` has no index.

### Media files

The repository is for code and small pictures (400 KB each at most). Big pictures, PDFs and clips under a minute go to media files, served at `/_media/<name>` with no push and no publish:

* From the site's folder: `sites media add photos/*.jpg clip.mp4` prints each file's address. With SuperIntern's tools: `site_media_upload` (the site, the file's name and its size in bytes) answers with the command that sends the file; `site_media_list` shows what the site has, with each picture's description; `site_media_delete` removes one.
* Allowed: png, jpg, gif, webp, avif, pdf, mp4, webm, mp3, up to 60 MB each. Names are made web-safe (`Product Loop.mp4` becomes `product-loop.mp4`), and a file of the same name replaces it.
* Give a video a small `poster` from `public/` and `preload="metadata"`. A picture still needs `alt`, `width` and `height`.
* The check can't see media files: it lists every `/_media/` address the pages use after "Site check passed". Add each one before the site is published.
* **Longer videos** stay on YouTube or Vimeo: show the thumbnail (`https://i.ytimg.com/vi/<id>/hqdefault.jpg` for YouTube) as a link to the video, and swap in the player (`https://www.youtube-nocookie.com/embed/<id>?autoplay=1`, or `https://player.vimeo.com/video/<id>?dnt=1&autoplay=1`) only when it's clicked, with `referrerpolicy="strict-origin-when-cross-origin"` on the `<iframe>`.

### Members-only pages in code

Only when the owner asks, and only for a plan the business sells (a row of Products & Services with a **Billing period**):

* A whole page: pass `plan` to the layout, `<Base … plan="gold">`, with the product's slug. Visitors who aren't members are sent to sign in or to the plan's page.
* Part of a page: wrap it in `<MembersOnly plan="gold">` (or `plan={["gold", "silver"]}`), with an optional `fallback` slot and `join="/membership"`.
* The platform decides before the page leaves, so the members' part lives only inside the mark: never repeat it in a script, a data attribute or the header and footer, and never show or hide it yourself.
* Under `npm run dev` and in the builder's preview everything shows; it works on the published site.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.