SShortSingh.
Back to feed

Why Link Preview Images Need Alt Text: og:image:alt and twitter:image:alt in Next.js

0
·2 views

Many teams design share images carrying important text, yet leave them without any text equivalent, so screen reader users hear only "image" or nothing at all. Two meta tags, og:image:alt and twitter:image:alt, let sites describe these images, and most sites do not set either one. The article explains where these tags are used, notes that platform support varies and changes over time, and stresses that the tags are part of the spec and cost little to add. It offers guidance on writing good alt text for cards, such as stating any text on the image and keeping it to one sentence under about 120 characters. It also shows how to emit the tags from the Next.js App Router using the Metadata API.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Artie, a YC S23 company, is hiring enterprise account executives and senior engineers

Artie, a startup from Y Combinator's S23 batch, has posted openings for enterprise Account Executives and senior engineering roles. The job listings are published on the company's careers page. The source post, shared on Hacker News, offers little beyond the listing itself and does not describe the company's products or hiring plans in detail. No information is provided about compensation, team size, or locations for these positions.

0
ProgrammingDEV Community ·

Why Retrieval Quality, Not the LLM, Often Limits RAG System Accuracy

A RAG system can produce a fluent, confident answer even when the document containing the decisive evidence was never retrieved. Retrieval-augmented generation is simple to describe but harder to build reliably, since locating text on a topic differs from locating the evidence needed to answer a specific question. The article argues that search relevance and answer relevance are distinct, so a semantically related passage may still omit the condition that determines the correct response. Chunking strategy is also a data modeling decision: splitting documents at fixed sizes can separate exceptions from the rules they modify, and losing headings or context can make retrieved values misleading. Because retrieval is frequently the real point of failure, upgrading the model or tweaking prompts may add cost without fixing the underlying problem.

0
ProgrammingDEV Community ·

Managing Separate Git Identities and SSH Keys for Multiple Clients on One Laptop

Freelancers working for several clients on one machine often hit problems like commits signed with the wrong email or rejected SSH authentication. A recommended fix organises projects into folders per client and uses Git's conditional includes so that the folder a repository sits in determines which identity applies. Each client gets a small config file setting their name and email, and an SSH command that forces a specific key. Separate SSH keys per GitHub account are needed because the platform identifies users by key. The setup reportedly takes about twenty minutes and can be checked with git config --show-origin.

0
ProgrammingDEV Community ·

AegisKernel Claims Deterministic Defense Against AI Agent Tool Hijacking

Autonomous AI agents built on frameworks like CrewAI, LangChain, and AutoGen increasingly have direct access to filesystems, terminals, and databases, raising the stakes of prompt injection attacks. The developers argue that guardrails relying on secondary LLMs miss over 80% of adversarial payloads and add more than 300ms of latency. Their proposed tool, AegisKernel, instead enforces a zero-trust, deterministic runtime at the syscall boundary using taint tracking and capability grants. In their own audit, standard agent setups were exploited across four attack vectors, while AegisKernel blocked them in under 0.05ms, though these results are self-reported. The project is released under an MIT license with a public GitHub repository and a live web sandbox.