Skip to content
Public template

About

Ever Works general-purpose website template (Next.js) — marketing, landing & content sites. Part of the Ever Works template family.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Ever Works — Website Template (Next.js)

A general-purpose website starter for marketing sites, landing pages, and content-driven sites — the non-directory counterpart to directory-web-template. Built with Next.js (App Router) + React 19 + Tailwind CSS v4, it ships a complete, production-ready marketing site you can rebrand in minutes.

Part of the Ever Works template family. Ever Works generates and deploys websites from templates like this one — pick this template for a Landing Page, Blog, or general Website Work (use directory-web-template / directory-web-minimal-template for directory/listing sites).

What’s inside

  • Landing page composed of ready-made sections: hero, logo cloud, features, how-it-works, testimonials, pricing, FAQ, and a final CTA.
  • Pages: Home, About, Pricing, Contact (with a form), a Markdown-powered Blog, and any number of Markdown pages (content/pages).
  • One config to rebrand everything — apps/web/lib/site.config.ts holds all copy, navigation, pricing, testimonials, and footer. Edit it (by hand or via Ever Works AI generation) and the whole site updates.
  • Light & dark themes (system-aware, with a toggle), responsive layout, and SEO built in (sitemap.ts, robots.ts, Open Graph metadata).
  • No database, auth, or payments — a clean canvas. Add only what you need.

Tech stack

Framework Next.js 16 (App Router), React 19
Styling Tailwind CSS v4
Icons lucide-react
Content Markdown blog via gray-matter + react-markdown
Tooling pnpm workspaces + Turborepo, TypeScript

Getting started

pnpm install
pnpm dev            # http://localhost:3000

Build for production:

pnpm build
pnpm --filter @ever-works/web start

Customize

  1. Edit apps/web/lib/site.config.ts — name, tagline, nav, hero, features, pricing, FAQ, footer. The About page reads the optional about block (eyebrow, title, body paragraphs, values cards); leave it out to keep the built-in story. Home sections are optional: leave logos, features.items, steps.items, testimonials.items, pricing.plans or faq.items empty and that section is not shown (/pricing returns 404 when it has neither plans nor FAQs).
  2. Adjust the design tokens (colors, radius, fonts) in apps/web/app/globals.css (@theme).
  3. Add blog posts as Markdown files in apps/web/content/blog/ (frontmatter: title, description, date, author). When there are posts, the home page shows the three newest under "Latest posts"; with none, the section is not shown.
  4. Add pages as Markdown files in apps/web/content/pages/ (frontmatter: title, description, optional numeric order). Each one is published at /pages/<file name>, listed in the footer under "Pages" and, as far as there is room, in the header menu.
  5. Wire the contact form in apps/web/components/contact-form.tsx to your email/endpoint.

Content from a data repository

Set DATA_REPOSITORY and the build reads the site's copy, posts and pages from that Git repository instead of the committed files; leave it unset and nothing changes. This is how an Ever Works Work's data repository feeds the site: pnpm build and pnpm dev first fetch it into apps/web/.content/ (apps/web/scripts/clone.cjs), then the pages read it at build time (apps/web/lib/data-repository.ts).

Variable
DATA_REPOSITORY An https clone URL (https://github.com/<owner>/<repo>) or <owner>/<repo> on GitHub (plain http only for localhost). Never put a token in it.
GH_TOKEN A read token for a private repository on GitHub. It is only sent to https://github.com and never logged.
EVER_WORKS_SITE_GIT_TOKEN_URL, EVER_WORKS_SITE_GIT_TOKEN_SECRET The Ever Works token broker, used instead of GH_TOKEN when both are set.

What the build reads:

  • site.yml (version: 1): the SiteConfig keys of lib/site.config.ts except url (the site keeps SITE_URL), plus kind (blog, website, knowledge-base or landing-page) and author (the byline of a blog's posts). Each key it sets replaces the committed value; a key it leaves out, or sets with the wrong shape, keeps the committed value (and the build log says so). about is the exception: without it, the About page shows the built-in story.
  • data/<slug>/<slug>.yml + <slug>.md: one entry per folder (name, description, updated_at, order, category; the body in the .md file). A blog's entries are its posts (dated by updated_at); a website's are its pages (/pages/<slug>, in order); a knowledge base's are pages listed under their category's name from categories.yml. They replace content/blog (and content/pages for a website or knowledge base); a landing page has no posts.

When the repository cannot be fetched (unreachable, private without a token, not a URL), has no usable site.yml, or holds an entry that cannot be read, the build still succeeds with the committed files and logs why, each line starting with [data-repository]. The build reads the repository's default branch; a link that points outside the checkout (or into its .git folder) is never read. Build with pnpm build (or pnpm dev): it fetches the repository first. A bare next build reads only a checkout that pnpm build fetched for the same DATA_REPOSITORY.

Copy in components comes from siteConfig in @/lib/site (not @/lib/site.config), so a new component that shows copy should import it from there.

With the Dockerfile, pass --build-arg DATA_REPOSITORY=... and the token as a BuildKit secret: --secret id=gh_token,env=GH_TOKEN, or the broker pair as site_git_token_url and site_git_token_secret. Docker cannot see a change in the data repository itself: on a builder with a layer cache, also pass --build-arg DATA_REPOSITORY_REF=<commit> (or --no-cache-filter installer), or an unchanged site repository can reuse an earlier build with older content.

Deploy

A production Dockerfile is included — it produces a standalone Next.js server on port 3000, ready for Kubernetes (the Ever Works @ever-works/k8s-plugin) or any container host. It also builds on Vercel and other Next.js hosts with no changes. Every page is rendered at build time, so the site's public base URL is a build input too: --build-arg SITE_URL=https://... (empty = the default in lib/site.config.ts). A remote Vercel build without SITE_URL, while that default is still the template's placeholder, uses the Vercel host instead: a production deployment uses the project's production host (VERCEL_PROJECT_PRODUCTION_URL, its shortest custom domain), a preview its own host (VERCEL_URL). To pin another host, set SITE_URL in the Vercel project.

Workflows

Ever Works copies .github/ into every site repository generated from this template. Its deploys dispatch the deploy_* files (it keeps only those enabled on GitHub Actions) and set most of the variables and secrets below:

Workflow Runs on Does
k8s-build.yml push to develop / stage / main / master, manual Builds the image and pushes ghcr.io/<owner>/<repo>:<dev|stage|prod> and :sha-<commit> (for a Kubernetes deploy that runs that image). For a platform-managed site, Ever Works runs this file with its own builder.
deploy_prod.yaml push to main Calls deploy_vercel.yaml or deploy_k8s.yaml, by the DEPLOY_PROVIDER variable (vercel / k8s).
deploy_vercel.yaml dispatch, call Creates or updates the Vercel project named like the repository, writes its build environment, deploys (remote build, local build as fallback).
deploy_k8s.yaml dispatch, call Builds and pushes the image, then applies .deploy/k8s-platform/ with the K8S_* secrets (kubeconfig in K8S_TOKEN, optional context in K8S_KUBE_CONTEXT); production only. Stops before the build when K8S_CLUSTER_SOURCE names a platform-managed cluster (anything but custom-kubeconfig; unset = a repository set up by hand, allowed) or K8S_TOKEN is missing. When deploy_prod.yaml calls it, its job runs only if the variable GHA_K8S_DEPLOY_ENABLED is true.

The data repository is read at build time, so every build gets it:

Name Kind
DATA_REPOSITORY_URL variable The data repository's https clone URL, no credentials. Unset = the committed content.
GH_TOKEN secret Read token for a private data repository (deploy_vercel.yaml, deploy_k8s.yaml).
DATA_REPOSITORY_TOKEN secret The same for k8s-build.yml, under a name of its own so that a broader GH_TOKEN a builder may hold never reaches the build. Ever Works does not set it: give it a token that can only read this site's data repository.
EVER_WORKS_SITE_GIT_TOKEN_URL, EVER_WORKS_SITE_GIT_TOKEN_SECRET secrets The Ever Works token broker (all three workflows).
DATA_REPOSITORY_REQUIRED variable true: an image build that cannot fetch the data repository fails instead of publishing the committed content.
SITE_URL variable The public base URL rendered into the pages (production image only in k8s-build.yml).

deploy_k8s.yaml pushes the image to the registry the K8S_REGISTRY_KIND secret names (github, the default, with the workflow's own token; dockerhub or generic with the secrets below) and, unless K8S_REGISTRY_VISIBILITY is public on GHCR, gives the cluster an image-pull secret made from these:

Name Kind
REGISTRY_SERVER secret The registry host (generic only).
REGISTRY_USERNAME secret The login (on Docker Hub / generic also the image namespace); for GHCR the owner of a classic token in REGISTRY_PASSWORD (unset = the account that ran the workflow).
REGISTRY_PASSWORD secret The registry password or token; for GHCR a classic token with read:packages.
REGISTRY_GHCR_READ_TOKEN secret A GHCR token with read:packages, for the pull secret when REGISTRY_PASSWORD is unset. GHCR refuses fine-grained tokens (github_pat_...), so the workflow skips one with a warning. Without a usable token the pull secret holds the workflow's own token, which expires after the run.

On a site Ever Works deploys to Kubernetes, Ever Works writes or deletes these four by the registry kind at each deploy (it leaves them as they are when it cannot tell the registry), so a value set by hand does not last: set GHCR pull tokens in its GitHub plugin settings, Docker Hub / generic credentials in its Kubernetes plugin.

Image builds also pass the data repository's current commit (DATA_REPOSITORY_REF, from .github/scripts/data-repository-ref.sh), so a new data commit rebuilds the pages even when the site repository did not change; when the builder could read that commit, a build that then cannot fetch it fails rather than leave a cache entry without the data. Tokens reach the image build only as BuildKit secrets.

License

AGPL-3.0 © Ever Co. LTD

About

Ever Works general-purpose website template (Next.js) — marketing, landing & content sites. Part of the Ever Works template family.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages