Partials and Shortcodes
- Posted: Jul 11, 2023 (revised: Oct 23, 2026)
- Category: Maintenance Software
- Topics: Hugo Website Bootstrap
This page lists the Hugo partials and shortcodes available with this theme.
Shortcodes
Authors may use these in Markdown (*.md) files. Many of them refer to Bootstrap and HTML 5 features.
Inserts HTML and may include Hugo code as well as nested shortcodes.
See layouts/_shortcodes/ and themes/Author-Blog/layouts/_shortcodes/.
aside- Side comments in an outlined block to the right of textaudio- Generate the link for an audio (mp3) playerblockquote- Enclose .Inner inside HTML blockquote, and (if either) $0 as author, and $1 as citationblurb- Book-blurb with cover image and story synopsiscard-big- Full-width previews of publicationscard-group- Wrapper for multiplecard-small“cards”card-small- Small “card” used as a link to other pagescarousel- Begin (and end) a carousel of imagescarousel-image- An image inside a carouselclearfix.html- Force a break from a floating imagedebug_check.html- (WEBMASTER ONLY) Warns which, if any, debug-related flags are enableddownload- Generate a clickable “Download” linkformspree- Insert a Formspree.io Contact (or other) formgallery- Begin (and end) a gallery of imagesgallery-image- An image in a galleryhtml- (DISCOURAGED) - Wrapper for plain HTML. Use only as a last resort. See alsorawhtmlbelow.img/float-begin- (INFERIOR) Display an image near the top-left, useimg/leftinstead (text flows around it better)img/float-end- (BEST) Display an image to the rightimg/full- (SECOND CHOICE) Display an image front and centerimg/left- Display an image to the leftimg/right- (INFERIOR) Display an image to the right, useimg/float-endinsteadlink- Generates a BootStrap “button” with an HTML linkmailto- Wraps an email address so it can be clicked to send a messagerecent-posts N- Renders Bootstrap cards for the most recent ‘N’ blog-postsrecent-publications N- Renders Bootstrap cards for the most recent ‘N’ publicationssocialmedia- Generates the list of social media sites associated with this websitevideo- Generate the link for a video player
Partials
Authors may not use these.
Partials are only for the webmaster’s use in Hugo layout files.
Inserts HTML and may include Hugo code.
See layouts/_partials/ and themes/Author-Blog/layouts/_partials/.
body-bottom.html- Comment form when enabled on a given page/postcopyright.html- Copyright statement (in the footer)footer.html- Footer content (history, links, top tags)head.html- Header content (not visible to users)nav-top.html- Navigation menu at top of webpagenav-prev.html- Next/Previous buttons with name of current sectionpage_card_list.html- Show a list of page-links as Bootstrap cardspage_card_one.html- Show one page-link as a Bootstrap cardscripts.html- Scripts to pull from elsewhere
