BAX SEO Features - Boost Your Search Rankings

SEO Made Simple with BAX

BAX automatically generates all the SEO meta tags you need for better search engine rankings. No plugins, no extra configuration - just pure SEO magic built right in

Search engines love well-structured HTML with proper meta tags. BAX takes care of all of this for you, so you can focus on creating great content.


Auto-Generated Meta Tags

BAX automatically generates the following meta tags for every page:

Title Tag

BAX uses the post/page title or falls back to SITE_TITLE from config.

Your Post Title - Your Site Title

Description Meta

BAX uses the post/page description or falls back to SITE_DESCRIPTION.

Open Graph Tags (Facebook, LinkedIn)

BAX generates complete Open Graph tags for social sharing:

  • og:type - website or article
  • og:title - post/page title
  • og:description - post/page description
  • og:image - post/page image or default
  • og:url - post/page URL
< meta property="og:type" content="article">
< meta property="og:title" content="Your Post Title">
< meta property="og:description" content="Your description">
< meta property="og:image" content="https://example.com/image.jpg">

Twitter Card Tags

BAX generates Twitter Card tags for better sharing on Twitter:

  • twitter:card - summary_large_image
  • twitter:title - post/page title
  • twitter:description - post/page description
  • twitter:image - post/page image or default
< meta name="twitter:card" content="summary_large_image">
< meta name="twitter:title" content="Your Post Title">
< meta name="twitter:description" content="Your description">
< meta name="twitter:image" content="https://example.com/image.jpg">

Generator Meta

BAX includes a generator meta tag for branding:

< meta name="generator" content="BAX v1.0 - Static Site Generator by Axcora">

Priority System

BAX uses a smart priority system for SEO metadata:

Priority Order

  1. Post/Page specific (highest priority)
  2. Site-wide config (fallback)
  3. Default values (last resort)

This means you can set global values in config.zet and override them for specific posts or pages.

Example

# config.zet - Global values
SITE_TITLE:My Awesome Site
SITE_DESCRIPTION:This is my awesome static site
SITE_IMAGE:https://example.com/default-og.jpg
# data/post.zet - Override for this post
TITLE:My Special Post
DESC:This post has its own description
IMG:https://example.com/post-image.jpg

Sitemap and Robots.txt

BAX automatically generates two essential SEO files:

Sitemap.xml

BAX generates a sitemap.xml that includes:

  • All blog posts
  • All static pages
  • Tag pages
  • Index pages with pagination
  • Last modified dates
  • Change frequencies
  • Priority levels
< ?xml version="1.0" encoding="UTF-8"?>
< urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    < url>
        < loc>https://mysite.com/< / loc>
        < lastmod>2026-07-15T13:30:00< / lastmod>
        < changefreq>daily< / changefreq>
        < priority>1.0< / priority>
    < / url>
< / urlset>

Robots.txt

BAX generates robots.txt to guide search engine crawlers:

User-agent: *
Allow: /
Disallow: /pages/
Disallow: /tags/
Sitemap: https://mysite.com/sitemap.xml

Best Practices for SEO with BAX

1. Always Set Descriptions

Every post and page should have a description:

DESC:This is my post description

2. Use Descriptive Titles

Make your titles descriptive and include keywords:

TITLE:How to Build Static Sites with BAX

3. Add Tags

Tags help organize content and create tag pages:

TAGS:static-site bax tutorial

4. Add Images

Images improve engagement and social sharing:

IMG:https://example.com/image.jpg

5. Set Your Site URL

Always set SITE_URL in config.zet:

SITE_URL:https://mysite.com

SEO Checklist

BAX automatically handles these SEO tasks:

  • ✅ Title tags for every page
  • ✅ Meta descriptions
  • ✅ Open Graph tags
  • ✅ Twitter Card tags
  • ✅ Sitemap.xml
  • ✅ Robots.txt
  • ✅ Semantic HTML structure
  • ✅ Responsive design
  • ✅ Fast loading times
  • ✅ Clean URL structure

Why SEO Matters

Good SEO helps you:

  • Rank higher in search results
  • Get more organic traffic
  • Improve user experience
  • Increase brand visibility
  • Generate more leads and sales

"SEO is not about tricking Google. It's about creating great content that people want to read and share."


Get Started with BAX Today

Start building your SEO-friendly static site with BAX now:

git clone https://github.com/mesinkasir/bax.git
cd bax
bax.bat  # Windows
./bax.sh # Linux/Mac
← Back to posts