Deneb ReactJs documentation

Site settings

Change your name, address, contact details, social links, language and menu in content/site.yml and content/data.

Your main settings are in content/site.yml. The menu is in content/data/navigation.yml. Save the file and the dev server updates.

The top of site.yml

title: Deneb
description: A small digital agency for ambitious companies.
lang: en
url: "https://deneb-reactjs.tortoizthemes.com"
baseurl: ""
dir: ltr
Key What it does
title Your name. It shows in the logo, the footer and every page title
description The default description for search results
lang The site language code. See below
url Your live address, with no slash at the end. Used for share links and social images
dir ltr or rtl. rtl loads deneb.rtl.css

Change url to your real address before you build.

The deneb: block

Everything about your agency that appears in more than one place:

deneb:
  email: hello@deneb.example
  phone: "+1 (555) 014-2290"
  address: 120 Market Street, Suite 400, San Francisco, CA 94105
  hours: Mon to Fri, 9:00 to 18:00
  footer_about: We help startups and growing brands plan, design and build websites.
  social:
    - label: LinkedIn
      url: https://www.linkedin.com/
  form:
    provider: demo
    action: ""
  newsletter:
    title: Get our monthly notes
    text: One email a month on design and growth. No spam.
    action: ""
  credit: true
Key Where it shows
email, phone, address, hours The contact section and the footer
footer_about The short text under the footer logo
social The footer. Each item needs label and url
form The contact form. See Forms and comments
newsletter The footer sign-up box. Remove the block to hide it. Set action to your email service’s form address
credit true shows “Theme by Tortoiz Themes” in the footer. false hides it

In a Markdown page you can write {{ site.deneb.email }} and the value is filled in. This works for any key in the deneb: block.

Keys that Next.js does not use

site.yml is shared with the Jekyll edition. The keys baseurl, collections, defaults, pagination, jekyll-archives, feed, plugins and exclude are not read by the React edition. You can leave them or delete them. Blog pages show six posts each, set in components/BlogIndex.js.

Edit content/data/navigation.yml:

main:
  - title: Home
    url: /
  - title: About
    url: /about/
footer:
  - title: Pricing
    url: /pricing/
cta:
  title: Hire us
  url: /contact/
  • main is the header menu. The footer’s Company column lists these items too.
  • footer adds extra links to that column.
  • cta is the button in the header.

Keep a slash at the end of every address, for example /about/. The site uses trailing slashes.

Language and direction

All interface text (button labels, form labels, dates) is in content/data/i18n.yml. It has two blocks, en and ar.

  • To switch to Arabic, set lang: ar and dir: rtl in site.yml.
  • To add a language, copy the en block under a new code, translate the values, then set lang to that code.
  • Words that appear inside {n} are replaced with a number or a name. Keep them.

Your own page content, such as the words in content/pages/, is not translated for you. Write it in your language.

Light and dark mode

Visitors can switch with the button in the header. The theme remembers their choice, and follows the device setting at first. There is nothing to configure.