Skip to content

Instantly share code, notes, and snippets.

@sunkakar
Created October 1, 2019 18:10
Show Gist options
  • Save sunkakar/bc2d6cd06b9e4ac039c3064f6cd1e521 to your computer and use it in GitHub Desktop.
Save sunkakar/bc2d6cd06b9e4ac039c3064f6cd1e521 to your computer and use it in GitHub Desktop.
Template on how to write your Excerpts for the page

Template

  • Add image links to the excerpt for it to show up on the front page.
  • The excerpt consists of: an tag which contains the image link and a tag that contains the teaser text for the blog post.
<img class='teaser-img' src='[INSERT-IMAGE-PATH-HERE]' />
<teaser>
	<p>
      [INSERT TEASER CONTENT HERE]
  </p>
</teaser>

Can't see Excerpt in the Blog Edit View?

  • Click on the blog post
  • Click on "Edit Post"
  • In the Top-Right, click on "Screen Options" and select "Excerpt"
  • Scroll down to find the Excerpt input box

Example

  • This is an example on how the excerpt should look
<img class='teaser-img' src='https://hub.kelley.iupui.edu/images/blog/Jayce-Everling-768x768-1.jpg' />
<teaser>
	<p>
      For Jayce Everling, BS'20, human resources is about 
      putting the right people in the right jobs with the right tools and resources to succeed.
  </p>
</teaser>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment