← Back to Documentation

Cards

This is an aside which is adding some helpful info about this paragraph.

Cards use a similar syntax to Collections and allow you to embed styled elements directly in a Markdown file: pullquote ↓, post link ↓, aside ↓.

To make things a bit easier, each card type has it’s own defaults. The card defaults can be edited in Admin/Settings.

Use the CARD ▼ button in the editor to insert a card. The CARD ▼ button templates can be edited as well: Admin/Settings.

Pull quote

Markdown supports block quotes but not pull quotes. The Pullquote Card allows you to add them easily.

Options

Option Required Description
type Yes Must be pullquote
text Yes The quote content
attribution No Who said it — displays with em-dash
position No center (default), left, or right - you can set the default in Settings → Defaults → cards.yml

To connect a pullquote to a particular paragraph, put it directly above that paragraph with no line between them.

Examples

```card
type: pullquote
text: There's only one way to find out…
```

↑ This code will look like this ↓ :

There’s only one way to find out…

You can also add attribution if this quote is from someone specific:

```card
type: pullquote
text: There's only one way to find out…
attribution: great philosopher
```
↑ Above looks like this ↓ :

There’s only one way to find out…

— great philosopher

position

(default: center)

You can also use position parameter: left, right. This allows the pullquote to be amoung the text and have the text flow around it. Like this: (try resizing the window to see how it flows.)


You wait and see, Mr. Caruthers, I will be mayor and I’ll be the most powerful mayor in the history of Hill Valley, and I’m gonna clean up this town. There’s that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth’s gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o.

Your not gonna be picking a fight, Dad, dad dad daddy-o.

You’re coming to a rescue, right? Okay, let’s go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c’mon, c’mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.


↑ To achieve that, you just have to give the Pullquote a position of right and put the Pullquote directly above the paragraph you want the Pullquote to interact with, like so ↓ :

```card
type: pullquote
text: Your not gonna be picking a fight, Dad, dad dad daddy-o.
position: right
```
You wait and see, Mr. Caruthers, I will be mayor and I'll be the most powerful mayor in the history of Hill Valley, and I'm gonna clean up this town. There's that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth's gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o. You're coming to a rescue, right? Okay, let's go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c'mon, c'mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.

The system automatically finds a reasonable place for the pullquote but if you want to control exactly where it is in the paragraph, you can indicate this with 2 pipes like so: || and that will indicate where the break for the pullquote goes. Like so ↓ :

```card
type: pullquote
text: Your not gonna be picking a fight, Dad, dad dad daddy-o.
position: right
```
You wait and see, Mr. Caruthers, I will be mayor and I'll be the most powerful mayor in the history of Hill Valley, and I'm gonna clean up this town. || There's that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth's gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o. You're coming to a rescue, right? Okay, let's go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c'mon, c'mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.

↑ And that looks like this ↓ :


You wait and see, Mr. Caruthers, I will be mayor and I’ll be the most powerful mayor in the history of Hill Valley, and I’m gonna clean up this town.

Your not gonna be picking a fight, Dad, dad dad daddy-o.

There’s that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth’s gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o. You’re coming to a rescue, right? Okay, let’s go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c’mon, c’mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.


Post Link

Post links are a great way to link to other posts in your site with support for thumbnails. The syntax is easy and automatically imports the necessary info and image.

Options

Most of these are not required. You can just use: type:, post:, these are here if you want to customize. As long as you add a post: option, it will pull all the info from the post. But you can override that if you like.

Option Required Description
type Yes Must be post-link
post Yes Reference a post by its url_name — auto-populates all fields
style No small (default), medium, or large
title No Override or provide custom title
subtitle No Override subtitle (medium/large only)
excerpt No Override excerpt (medium/large only)
image No Override image path, or set to none to hide image
author No Override author — falls back to site author
date No Override date
url No Custom URL if not using post reference
link_text No Custom call-to-action text — defaults to “Read full story →”

Examples

```card
type: post-link
style: small
post: collection-full
```

↑ That code will produce this ↓ :

And you can change the size (small/medium/large)

```card
type: post-link
style: medium
post: collection-full
```

↑ That code will produce this ↓ :

This simple syntax will pull all the information from the Post itself. You can also override this fully if you want. Just add the fields you’d like to replace ↓ :

```card
type: post-link
post: collection-full
style: large
title: Collection Full
author: Benjamin Welch, Esq.
date: 1983-06-15
excerpt: Example of full collection
link_text: Read more…
```

↑ Above will look like this ↓ :

Note: when you add style: small, style: mediuam or style: large this adds a CSS class to the element so that you can style it however you like. You could use style: featured if you like and use CSS to style the post-link-featured card.

Aside

Asides allow you to add notes “next to” the content of the text. The syntax is similar to other cards. You can create an Aside with: just text, image, both. You can also add links

Options

You’re only required to set: type: and then add image, text and links as needed. You can use: image, text, or both and add a link.

Option Required Description
type Yes Must be aside
text No Body text
image No Path to image — displays above text
link No URL to link to
link_text No Custom link text — if omitted, shows arrow appended to text

Just Text (example)

Note: the aside will be next to the paragraph immediately below it:

```card
type: aside
text: I'll never let him forget it. And if I did, what would that make me?
```
You wait and see, Mr. Caruthers, I will be mayor and I'll be the most powerful mayor in the history of Hill Valley, and I'm gonna clean up this town. There's that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth's gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o. You're coming to a rescue, right? Okay, let's go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c'mon, c'mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.

↑ This code looks like this ↓ :


I'll never let him forget it. And if I did, what would that make me?

You wait and see, Mr. Caruthers, I will be mayor and I’ll be the most powerful mayor in the history of Hill Valley, and I’m gonna clean up this town. There’s that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth’s gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o. You’re coming to a rescue, right? Okay, let’s go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c’mon, c’mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.


Try different browser widths to see how it interacts

Just Image (example)

```card
type: aside
image: /media/images/house-on-ilkley-moore.jpg
```

You wait and see, Mr. Caruthers, I will be mayor and I'll be the most powerful mayor in the history of Hill Valley, and I'm gonna clean up this town. There's that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth's gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o. You're coming to a rescue, right? Okay, let's go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c'mon, c'mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.

↑ This code looks like this ↓ :


You wait and see, Mr. Caruthers, I will be mayor and I’ll be the most powerful mayor in the history of Hill Valley, and I’m gonna clean up this town. There’s that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth’s gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o. You’re coming to a rescue, right? Okay, let’s go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c’mon, c’mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.


Image + Text (example)

You can use both image and text like so ↓ :

```card
type: aside
text: I'll never let him forget it. And if I did, what would that make me?
image: /media/images/house-on-ilkley-moore.jpg
```
You wait and see, Mr. Caruthers, I will be mayor and I'll be the most powerful mayor in the history of Hill Valley, and I'm gonna clean up this town. There's that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth's gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o. You're coming to a rescue, right? Okay, let's go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c'mon, c'mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.

↑ This code looks like this ↓ :


I'll never let him forget it. And if I did, what would that make me?

You wait and see, Mr. Caruthers, I will be mayor and I’ll be the most powerful mayor in the history of Hill Valley, and I’m gonna clean up this town. There’s that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth’s gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o. You’re coming to a rescue, right? Okay, let’s go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c’mon, c’mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.


To add a link to an Aside, just do this ↓ :

```card
type: aside
text: I'll never let him forget it. And if I did, what would that make me?
link: https://en.wikipedia.org/wiki/Back_to_the_Future
link_text: Quoted from →
``` 

↑ This code looks like this ↓ :


I'll never let him forget it. And if I did, what would that make me?
Quoted from →

You wait and see, Mr. Caruthers, I will be mayor and I’ll be the most powerful mayor in the history of Hill Valley, and I’m gonna clean up this town. There’s that word again, heavy. Why are things so heavy in the future. Is there a problem with the Earth’s gravitational pull? Your not gonna be picking a fight, Dad, dad dad daddy-o. You’re coming to a rescue, right? Okay, let’s go over the plan again. 8:55, where are you gonna be. Wow, ah Red, you look great. Everything looks great. 1:24, I still got time. Oh my god. No, no not again, c’mon, c’mon. Hey. Libyans. It works, ha ha ha ha, it works. I finally invent something that works.