Maintenance: Partials and Shortcodes
- Posted: 7/11/23 (revised: 1/23/24)
- Category: Maintenance Software
- Topics: Hugo Website
Disclaimer: Maintenance pages are for those who update this website. Nonetheless, everyone is free to look.
This page documents the partials and shortcodes available with this theme.
Partials
Inserts HTML (and may include embedded Hugo code). NOTE: Not available from markdown files.
(See both layouts/partials/
and themes/Author-Blog/layouts/partials/
.)
banner.html
- (NOT USED) Generates the “hero” banner at the top of the webpagebody-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)menu/show_list.html
- Part 1 of 2 of website’s menu generationmenu/walk.html
- Part 2 of 2 of the website’s menu generationnav-top.html
- Navigation menu at top of webpagenav-prev.html
- Next/Previous buttons with name of current sectionscripts.html
- Scripts to pull from elsewhere
Shortcodes
Inserts HTML (and may include embedded Hugo code). NOTE: Available to use in markdown files.
(See both layouts/partials/
and themes/Author-Blog/layouts/partials/
.)
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 imagedownload
- Generate a clickable “Download” linkdump_page_variables
- For debugging, not production usedump_site_variables
- For debugging, not production useformspree
- 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.img/float-begin
- (INFERIOR) Display an image near the top-left, useimg/left
instead (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-end
insteadlink
- Generates a BootStrap “button” with an HTML linkmailto
- Wraps an email address so it can be clicked to send a messagerawhtml
- Rarely used, it encases raw HTML for odd jobssocialmedia
- Generates the list of social media sites associated with this website