E D Skinner

Fiction, facts, and philosophy

Partials and Shortcodes


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 text
  • audio - Generate the link for an audio (mp3) player
  • blockquote - Enclose .Inner inside HTML blockquote, and (if either) $0 as author, and $1 as citation
  • blurb - Book-blurb with cover image and story synopsis
  • card-big - Full-width previews of publications
  • card-group - Wrapper for multiple card-small “cards”
  • card-small - Small “card” used as a link to other pages
  • carousel - Begin (and end) a carousel of images
  • carousel-image - An image inside a carousel
  • clearfix.html - Force a break from a floating image
  • debug_check.html - (WEBMASTER ONLY) Warns which, if any, debug-related flags are enabled
  • download - Generate a clickable “Download” link
  • formspree - Insert a Formspree.io Contact (or other) form
  • gallery - Begin (and end) a gallery of images
  • gallery-image - An image in a gallery
  • html - (DISCOURAGED) - Wrapper for plain HTML. Use only as a last resort. See also rawhtml below.
  • img/float-begin - (INFERIOR) Display an image near the top-left, use img/left instead (text flows around it better)
  • img/float-end - (BEST) Display an image to the right
  • img/full - (SECOND CHOICE) Display an image front and center
  • img/left - Display an image to the left
  • img/right - (INFERIOR) Display an image to the right, use img/float-end instead
  • link - Generates a BootStrap “button” with an HTML link
  • mailto - Wraps an email address so it can be clicked to send a message
  • socialmedia - Generates the list of social media sites associated with this website
  • video - 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/post
  • card_list.html - Show a list of page-links as Bootstrap cards
  • copyright.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 webpage
  • nav-prev.html - Next/Previous buttons with name of current section
  • scripts.html - Scripts to pull from elsewhere