tonyfast / nsf-goali

A Testing Environment for Mini-Research Sites
tonyfast.com/nsf-goali
1 stars 3 forks source link

Content manager links always publish as a new line #14

Closed jsweaver closed 10 years ago

jsweaver commented 10 years ago

If you use {% include ContentManager.html content=page.link1%} Vs. [thelink](http://www.google.com) to publish a link, the ContentManager always does a new line. You can look at Noah's Post versus Jordan's Post for an example.

tonyfast commented 10 years ago

Okay. This problem is annoying. I don't think it is something we can handle on our end.

I would simply use the markdown syntax for links that need to be inside.

It is easy enough to make a set of references in the front matter and directly use the tags.

Examples

Just Link sources

YAML

---
references:
   - www.google.com
   - www.github.com
---

HTML/Markdown

* [{{page.references[0]}}]({{page.references[0]}})
* [{{page.references[1]}}]({{page.references[1]}})

Links and Text

YAML

---
references:
   - src: www.google.com
     text: "Google Example"
   - src: www.github.com
     text: "Github Example"
---

HTML/Markdown

* [{{page.references[0].text}}]({{page.references[0].src}})
* [{{page.references[1].text}}]({{page.references[1].src}})
tonyfast commented 10 years ago

I am going to open a new issue for a references section