SShortSingh.
Back to feed

How to add JSON-LD structured data to Astro and Docusaurus sites

0
·10 views

Structured data tells search engines what a page represents, such as an article with an author and date, or the organization behind a site, and Google recommends JSON-LD as the format for it. Developers should first check whether their framework already emits types like BreadcrumbList or BlogPosting, to avoid duplicate blocks. Hand-written JSON-LD often breaks on syntax errors, relative URLs, missing @context or @type fields, dates lacking time zones, or markup describing content not visible on the page. The article recommends auditing built HTML for missing blocks, testing templates with Google's Rich Results Test and the Schema Markup Validator, and monitoring Search Console after deployment. For large sites, it suggests an automated build step that generates valid, page-accurate markup.

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
ProgrammingDEV Community ·

TGLoader 0.3.1 Skips Already-Downloaded Telegram Files on Repeat Runs

The article describes TGLoader, a free desktop app that archives media from Telegram channels to disk using the Telethon library and the user's own API credentials. Version 0.3.1 aims to fetch only new posts on later runs, though the author notes that only the read side of this incremental logic is fully wired, so the stored last-seen message ID is never saved. Duplicate prevention relies mainly on a per-channel metadata file that records completed downloads by Telegram's media ID, with a disk-size check as a fallback. Files are sorted into folders such as Pictures, Videos, Audio, Voice Messages, and Stickers based on the media attributes Telegram provides. The app runs on 64-bit Windows 10 or later and on Apple Silicon Macs.

0
ProgrammingDEV Community ·

Developer builds 59 free browser-based dev tools in vanilla JavaScript

A developer has created Antigravity Tools, a collection of 59 free utilities that run entirely in the browser. The project was built with no dependencies, no server, and no telemetry, so user data never leaves the machine. Tools rely on native browser APIs such as Web Crypto, Canvas, Web Audio, and IndexedDB rather than external libraries. The offerings include JWT decoding, key generation, PII masking, encoding and decoding, AI token cost estimation, JSON and cURL conversion, regex testing, and cron building. The author shares the project and the lessons learned along the way through a DEV Community post.

0
ProgrammingDEV Community ·

Gemma 4 pour une API de diagnostic de feuilles de maïs : un atelier pas à pas

Un tutoriel de DEV Community présente la construction en 45 minutes d'une petite API nommée AgriScan, qui reçoit la photo d'une feuille de maïs et renvoie un diagnostic au format JSON. Le projet suit un guide sur le développement assisté par IA, couvrant les fichiers de contexte, le rangement des prompts, la sortie structurée et les tests. La requête passe par FastAPI, puis par le modèle Gemma 4 de Google, appelé via l'API Gemini, avant que la réponse JSON ne soit renvoyée. L'article précise les prérequis : Python 3.11 ou plus récent, Git, une clé d'API Gemini gratuite et quelques photos de test. Le maïs n'est qu'un exemple, les lecteurs étant invités à remplacer ce cas par leur propre problème.

0
ProgrammingDEV Community ·

München leads Germany's tech job listings, with Berlin second and remote roles scarce

München currently has the most open software developer jobs on XING with 275, followed by Berlin with 239, across the ten largest German job cities. Of 1,452 software developer jobs in those cities, 421 were posted or refreshed in the past seven days. Only about 10% of newly posted tech roles in the sample are fully remote, while roughly 53% are hybrid. Employers published a salary in just over a third of the ads, with the rest carrying only XING's estimated figures. The findings come from a report comparing XING and stellenanzeigen.de listings, which the author built using AI-assisted analysis.