Skip to content

Instantly share code, notes, and snippets.

@sunkakar
Last active December 5, 2019 20:54
Show Gist options
  • Save sunkakar/1497184a1014eabf1fc30ecad63907e9 to your computer and use it in GitHub Desktop.
Save sunkakar/1497184a1014eabf1fc30ecad63907e9 to your computer and use it in GitHub Desktop.
Instructions on writing an "Excerpt" for the SCIU Blog

Instructions

  • Add image links to the excerpt for it to show up in the RSS Feed.
  • The excerpt consists of: an tag which contains the image link and a tag that contains the teaser text for the blog post.

Excerpt Template

<img class='teaser-img' src='[INSERT-IMAGE-PATH-HERE]' />
<teaser>
      [INSERT TEASER CONTENT HERE]
</teaser>
  • The <img> tag contains the image with the link in src=" "
  • The <teaser> tag encloses the excerpt for the blog post.

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
  • The element's source <img src="THIS_IS_THE_SOURCE"/> can be grabbed from the post content
<img class='teaser-img' src="https://blogs.iu.edu/sciu/files/2019/10/flix1.png" alt="[Sample alt text]"/>
<teaser>
      Lorem Ipsum dolor human resources is about 
      putting the right people in the right jobs with the right tools and resources to succeed.
</teaser>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment