Rich Content

Hugo ships with several Built-in Shortcodes for rich content, along with a Privacy Config and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.


YouTube Privacy Enhanced Shortcode



Twitter Simple Shortcode



Vimeo Simple Shortcode

Sing Jan Swing - Kinetic Type

Gist Embed

spf13 / strings.go
package main

import (
    "fmt"
    "strings"
)

func main() {
    fmt.Println(strings.Contains("seafood", "foo"))
    fmt.Println(strings.Contains("seafood", "bar"))
    fmt.Println(strings.ContainsAny("failure", "u & i"))
    fmt.Println(strings.Count("cheese", "e"))
    fmt.Println(strings.HasPrefix("Gopher", "Go"))
    fmt.Println(strings.Index("chicken", "ken"))
}