Thulite Documentation
website·Indexed 33 days ago
https://docs.thulite.io/A documentation theme for Ventizo projects using Hugo and the Norrsken UX design. Covers core concepts, template selection, integrations, deployment workflows, performance optimization, security, and SEO strategies.
What's inside Thulite
- Thulite is a documentation theme for Ventizo projects built using Hugo and based on the Norrsken UX design. It is designed for production-ready websites with a fast setup flow and practical defaults, guiding developers from initial scaffolding to a running site.
Manage SEO metadata and indexing in Thulite
Thulite SEO provides a comprehensive suite of tools to control how search engines and social platforms perceive your site. Key capabilities include:
- Indexing Control: Use
robotsmeta values in page frontmatter to control crawler indexing and userobots.txtto manage site-wide crawler access. - URL Management: Set canonical URLs via frontmatter or page permalinks to prevent duplicate content issues. Configure the HTML base element to set a document base URL for relative links and anchor navigation.
- Multilingual SEO: Generate
hreflangandx-defaulttags automatically from multilingual page variants. - Page Metadata: Build page titles using frontmatter, separators, and suffixes. Configure meta descriptions with page-level overrides and fallback behaviors.
- Feeds: Generate
rel=alternatetags for RSS feeds based on Hugo output formats.
- Indexing Control: Use
Manage Thulite project dependencies
Thulite manages its dependencies using a combination of npm and Hugo modules. This architecture is chosen to balance performance, security, and developer experience.Generate Schema.org structured data with Thulite SEO
Thulite SEO automatically generates Schema.org structured data for the following entity types:
- Websites
- Organizations
- People
- Breadcrumbs
- Articles
- Products
Integrate a Headless CMS with Thulite
Thulite supports Git-based workflows for content editing and publishing through the following headless CMS integrations:
- CloudCannon: Provides a visual editing workflow connected directly to the Git repository.
- Decap CMS: Uses Git-backed content editing with configurable collections that map to the project's Markdown structure.
- Tina CMS: Supports Git-backed editing for both local and production workflows via configured collections and scripts.
Install and bootstrap a new Thulite project
To create a new Thulite project, use the Thulite CLI to choose a template and variant. This process bootstraps a ready-to-run site with optional integrations.Use Hugo shortcodes in Thulite Markdown
Thulite utilizes Hugo shortcodes to embed reusable UI patterns directly within Markdown content. This allows for expressive content while keeping the underlying template logic reusable.Render SVGs in Hugo content and templates
Thulite provides two primary ways to inline SVGs:
- Shortcodes: Use the
inline-svgshortcode within Markdown content. This allows for configurable arguments regarding sizing, styling, and accessibility. - Partials: Use the
inline-svgpartial within Hugo templates. This provides flexible arguments for adding CSS classes, attributes, and accessibility labels.
Best Practices:
- Placement: Use page resources or global assets depending on whether the SVG is page-specific or site-wide.
- Accessibility: Always provide meaningful titles, descriptions, roles, and ARIA attributes to ensure icons are accessible to assistive technologies.
- Styling: Use reusable CSS classes or direct SVG attributes to control stroke, fill, and size.
- Shortcodes: Use the
Add custom JavaScript to Thulite
Custom JavaScript should be placed inassets/js. It is recommended to use DOM-ready patterns and focused behaviors to maintain page interactivity without impacting load performance.Secure a Thulite production website
Strengthen the security of a Thulite site by implementing the following:
- Content Security Policy (CSP): Enforce a strict CSP to limit resource origins and reduce XSS risks.
- Secure Headers: Implement a baseline of HSTS,
nosniff, and framing controls. - Email Obfuscation: Use CSS-based obfuscation to protect published email addresses from basic scrapers while keeping them readable for users.
Insert SVGs and Icons using the inline-svg shortcode
Use theinline-svgshortcode to insert page-specific or global SVG resources and icon-set symbols directly into content. The shortcode supports custom classes, dimensions, light/dark mode variants, and accessibility metadata such as titles, descriptions, and ARIA roles.Install and configure Thulite SEO
Thulite SEO manages metadata, structured data, and sitemaps.
Installation: Install via
npm,pnpm,Yarn, orbun. You must add the required module mounts to ensure integration layouts load correctly.Configuration: Settings are managed in
hugo.toml,params.toml, and page frontmatter. Configurable options include sitemap settings, title/description length, and schema settings.