@nera-static/starter-business
v1.0.1
Published
A ready-to-edit Nera site for a small business on @nera-static/theme-business: home, about, services, opening hours, a contact form, navigation, responsive images, social links, a sitemap and imprint and privacy placeholders. One small script for the cont
Downloads
496
Maintainers
Readme
@nera-static/starter-business
📖 Documentation: nera.js.org
A ready-to-edit site for a small business, built with the
Nera static site generator on
@nera-static/theme-business:
home with a hero image and service cards, about, services, opening hours, a
contact form, navigation, responsive images, social links, a sitemap and
imprint and privacy placeholders. One small script for the contact form, no
third-party requests; a fresh site passes nera build --check and
nera validate without a single finding.
Usage
npx @nera-static/nera new my-site --starter business
npx @nera-static/nera new my-site --starter business --name "My Bakery" --lang de--name and --lang set name and lang in config/app.yaml; a new
language gets a copy of the English translations: entry to translate.
What you get
pages/index.md(home),about.md,services.md,opening-hours.md,contact.md(with the form)pages/imprint.md,pages/privacy.md: placeholders, not legal textsconfig/app.yaml: name, language,theme: business,origin, the business's facts (business:address, phone, opening hours) and the theme and plugin textsconfig/theme.yaml,contact-form.yaml,navigation.yaml,images.yaml,social-media-links.yamltheme/views/partials/: the theme's seams, filled with the plugins' outputtheme/views/vendor/: the plugins' published templatestheme/assets/js/contact-form.js: the contact form's script, which opens the visitor's own mail program (the form has no backend)theme/assets/images/hero.jpg: the home page's hero image- plugins: contact-form, images, navigation, social-media-links, sitemap
German texts for --lang de
Replace the copied de: entry in config/app.yaml with:
de:
language_name: Deutsch
Skip to content: Zum Inhalt springen
Main navigation: Hauptnavigation
Language: Sprache
Legal: Rechtliches
Opening hours: Öffnungszeiten
Closed: Geschlossen
Contact details: Kontakt
Phone: Telefon
Email: E-Mail
Imprint: Impressum
Privacy: Datenschutz
Mon–Fri: Mo–Fr
Sat: Sa
Sun: So
Closed on public holidays.: An Feiertagen geschlossen.
Navigation: Navigation
Message from the website: Nachricht über die Website
Send message: Nachricht senden
Please fill in all required fields.: Bitte füllen Sie alle Pflichtfelder aus.
Please enter a valid email address.: Bitte geben Sie eine gültige E-Mail-Adresse an.
'Yes': Ja
'No': Nein
Your name: Ihr Name
Your email: Ihre E-Mail-Adresse
Message: Nachricht
I have read the privacy notice: Ich habe die Datenschutzerklärung gelesen
contact_intro: Wir antworten innerhalb eines Werktags. In dringenden Fällen rufen Sie uns bitte an.
contact_consent: 'Beim Senden öffnet sich Ihr eigenes E-Mail-Programm; diese Website versendet nichts. Mehr dazu in der <a href="/privacy.html">Datenschutzerklärung</a>.'Requirements
@nera-static/nera1.11.0 or later, with@nera-static/core4.15.0 or later (the theme's floor; a fresh install brings the newest)- Node.js
>=22.12.0(its bundled npm 10.9 or later)
License
MIT
First steps
After nera new the files are yours: a starter has no update path. Each
file named in steps 1 to 5 marks its placeholders as such.
- Replace
origin: https://example.cominconfig/app.yamlwith your site's real address. The sitemap is built from it. - Replace the business's facts under
business:inconfig/app.yaml: street, postal code, city, country, phone and opening hours. A row'sdaysand thehours_noteare translation keys: add new ones totranslations:. - Replace
recipient: [email protected]inconfig/contact-form.yamlwith the address the contact form writes to. - Replace the social link in
config/social-media-links.yaml. - Replace
pages/imprint.mdandpages/privacy.mdwith your own legal texts. - Replace the sample copy of the pages,
theme/assets/images/hero.jpgand the grey placeholder icontheme/assets/favicon.icowith your own.
