Partials and Shortcodes
- Posted: 7/11/23 (revised: 1/23/24)
- Category: Maintenance Software
- Topics: Hugo Website Bootstrap
- Note: Maintenance pages are for internal use, but everyone is welcome to look around.
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 messagesocialmedia- 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/postcard_list.html- Show a list of page-links as Bootstrap cardscopyright.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 sectionscripts.html- Scripts to pull from elsewhere
