ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/llms-txt-hub / apps/web/lib/seo/seo-helpers.ts

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/llms-txt-hub / apps/web/lib/seo/seo-helpers.ts
DateNot specified in source
RepositoryJanady13/llms-txt-hub
Revisione0f4bf978d4df168369c7601d9c5f5ea89e84377
Branchmain
Path or archive memberapps/web/lib/seo/seo-helpers.ts
Original SHA-256467f61f5cfbdc59b8ad8968b7338377f813234d86ab2c8a7f0e75c36f54e761f
Git blob SHA3b342731e049f8fb1d4d47eec655595b8f20ea84
Reading-copy SHA-256467f61f5cfbdc59b8ad8968b7338377f813234d86ab2c8a7f0e75c36f54e761f

Original source ↗

Recovered source transcript

import { SITE_NAME } from './seo-config' /** * Helper to generate optimized alt text for images */ export function generateAltText( type: 'favicon' | 'avatar' | 'logo' | 'website', name: string ): string { switch (type) { case 'favicon': return `${name} website favicon - Visit ${name}'s llms.txt documentation` case 'avatar': return `${name}'s profile picture - ${SITE_NAME} community member` case 'logo': return `${SITE_NAME} logo - The largest directory of AI-ready documentation` case 'website': return `${name} - AI-ready documentation and llms.txt implementation` default: return name } } /** * Helper to ensure consistent title formatting */ export function formatPageTitle(title: string, includeSiteName = true): string { const cleanTitle = title.trim() if (!includeSiteName || cleanTitle.includes(SITE_NAME)) { return cleanTitle } return `${cleanTitle} | ${SITE_NAME}` } /** * Helper to truncate and optimize meta descriptions */ export function optimizeMetaDescription(description: string, maxLength = 160): string { if (description.length <= maxLength) { return description } // Truncate at the last complete word before maxLength const truncated = description.substring(0, maxLength - 3) const lastSpace = truncated.lastIndexOf(' ') return `${truncated.substring(0, lastSpace)}...` }

Search equations, builds, manuscript text, and recovered sources.