News
NEWeSAR for NBA Accreditation of Electronics & Communication Engineering Department Submitted to NBA – View Document(27 Feb 2026)NEWAdmissions Open for Academic Year 2026-27 – Apply Now via ACPDC Portal(1 Feb 2026)NEWGTU Winter Examination 2025 – Revised Timetable Published(25 Jan 2026)NEWGuest Faculty Recruitment 2026 – Applications Invited for Engineering Departments(20 Jan 2026)SSIP Grant 2025-26 – Submit Your Innovation Proposals by 28 February 2026(15 Jan 2026)Annual Technical Fest "INNOVATE 2026" – Registration Open for All Events(10 Jan 2026)GTU Semester 3 Examination Results Declared – Check Results on GTU Portal(5 Jan 2026)Library: 250+ New Technical Books Added – Available for Borrowing from 1 Feb 2026(2 Jan 2026)Holiday List for Year 2026 Published – View Official Calendar(1 Jan 2026)NEW(27 Feb 2026)NEW(1 Feb 2026)NEW(25 Jan 2026)NEW(20 Jan 2026)(15 Jan 2026)(10 Jan 2026)GTU Semester 3 Examination Results Declared – Check Results on GTU Portal(5 Jan 2026)(2 Jan 2026)(1 Jan 2026)

Hugo Shortcodes Demo

Hugo Shortcodes Demo

This page demonstrates all the Hugo shortcodes that have been converted to React components for the Next.js migration.

Video Embeds

YouTube Video

YouTube with Custom Parameters

Social Media Embeds

Twitter/X Post

Instagram Post

Images and Galleries

Figure Shortcode

Basic Image Gallery

Utilities

QR Code

Code Block

import React from 'react';

const MyComponent = ({ title }) => { const [count, setCount] = useState(0);

return (

{title}

<button onClick={() => setCount(count + 1)}> Count: {count}
); };

export default MyComponent; {{< /code >}}

Advanced Examples

Figure with All Options

Advanced Image Gallery

QR Code with Custom Colors

Features Showcase

Multiple Shortcodes in Sequence

Here's a YouTube video followed by a QR code:

Mixed Content

You can mix shortcodes with regular markdown content:

This is a regular paragraph with bold text and italic text.

And here's some code:

const greeting = "Hello, World!";
console.log(greeting);

Migration Benefits

These React components provide several advantages over Hugo shortcodes:

  1. Interactive: Components can have state and handle user interactions
  2. Responsive: Built with modern CSS frameworks for mobile-first design
  3. Accessible: Proper ARIA labels and keyboard navigation
  4. Performant: Lazy loading, image optimization, and efficient rendering
  5. Customizable: Easy to style and extend with additional props
  6. Type-safe: Full TypeScript support with proper prop validation

Usage Examples

In Markdown Files

<div data-shortcode="youtube" data-params="%7B%22id%22%3A%22videoId%22%2C%22src%22%3A%22videoId%22%2C%22text%22%3A%22videoId%22%2C%22images%22%3A%22videoId%22%2C%22name%22%3A%22videoId%22%7D" data-key="shortcode-youtube-ji195fem8"></div>
<div data-shortcode="figure" data-params="%7B%22src%22%3A%22%2Fimage.jpg%22%2C%22alt%22%3A%22Description%22%7D" data-key="shortcode-figure-qoxi8304g"></div>
<div data-shortcode="gallery" data-params="%7B%22images%22%3A%22img1.jpg%2Cimg2.jpg%2Cimg3.jpg%22%7D" data-key="shortcode-gallery-5zh8dkiib"></div>

In React Components

import { YouTube, Figure, ImageGallery } from '@/components/shortcodes';

<YouTube id="videoId" />
<Figure src="/image.jpg" alt="Description" />
<ImageGallery images={["img1.jpg", "img2.jpg", "img3.jpg"]} />

This demonstrates the full Hugo shortcode functionality now available in the Next.js application!

Related Posts

# Blowfish Shortcode Compatibility Test This page tests the exact Hugo Blowfish shortcode API compatibility. All shortcodes below should work identi...

blowfish
hugo
compatibility
+1

# Extended Blowfish Shortcodes Test This page tests the newly implemented Blowfish shortcodes to ensure they work identically to Hugo Blowfish. ## ...

blowfish
shortcodes
testing
Shortcodes

Shortcodes

October 25, 2026

In addition to all the [default Hugo shortcodes](https://gohugo.io/content-management/shortcodes/), Blowfish adds a few extras for additional functio...

shortcodes
mermaid
icon
+2