Skip to content

Latest commit

 

History

History
68 lines (48 loc) · 2.33 KB

File metadata and controls

68 lines (48 loc) · 2.33 KB

Publishing the website — موتر فروشی نصیب / Nasib Car Store

The site is a pure static site — it works on any static host. Below are the three easiest free options.


Option A — GitHub Pages (recommended, ~3 minutes)

  1. Go to github.com/new → Repository name: nasib-car-storePublic → Create.
  2. Upload this whole folder to the repo (drag & drop works, or use git):
    git init
    git add .
    git commit -m "Nasib Car Store website"
    git branch -M main
    git remote add origin https://github.com/radmaneshhassani8-cmd/nasib-car-store.git
    git push -u origin main
  3. In the repo: Settings → Pages → Source: "Deploy from a branch" → Branch: main, folder /root → Save.
  4. Wait 1–2 minutes. Your site is live at: https://radmaneshhassani8-cmd.github.io/nasib-car-store/
  5. (Optional) Connect a custom domain in the same settings page, e.g. nasibcarstore.af.

The .nojekyll file is already included so GitHub won't touch your files.


Option B — Netlify (drag & drop, ~2 minutes)

  1. Go to app.netlify.com/drop
  2. Drag the whole project folder onto the page.
  3. Done — you get a live https://something.netlify.app URL immediately.
  4. Site settings → Domain management → add your custom domain.

netlify.toml and _headers are included: Netlify will automatically add the hardened security headers.


Option C — Cloudflare Pages

  1. Dashboard → Workers & Pages → Create → Pages → Upload assets.
  2. Upload the folder → Deploy.
  3. Add a custom domain in the Pages settings.

After publishing — update these three places

The following files contain the placeholder radmaneshhassani8-cmd — replace it with your real live URL (keep the trailing slash):

  • robots.txt
  • sitemap.xml
  • security.txt and .well-known/security.txt
  • the url field of the JSON-LD block at the end of index.html

Then submit your sitemap.xml in Google Search Console so the showroom appears in Google search for "موتر فروشی نصیب کابل".


Changing contact details later

  • Phone / WhatsApp / email: replace in *.html files, js/car-detail.js, and the i18n.js keys co_phone_v, co_phone2_v, co_email_v, co_email2_v.
  • WhatsApp number used by the contact form: js/main.js (search wa.me/).