Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

markdown frontmatter not passed along to views #4

Open
orenmizr opened this issue Jan 9, 2016 · 5 comments
Open

markdown frontmatter not passed along to views #4

orenmizr opened this issue Jan 9, 2016 · 5 comments

Comments

@orenmizr
Copy link

orenmizr commented Jan 9, 2016

OS: windows 10
root 3.1.0

bug: simply prints out the frontmatter. I assume this is why it does not contain the data within post.title / entry.title


---
title:  "Escape from the Citadel (Season 6)"
date:   2014-04-21 10:33:56
categories: season6 episodes
shortdesc: Finn and Jake follow the Lich to the Citadel, where Finn meets his long lost dad.
banner: /img/citadel.jpg

---
[Finn](http://adventuretime.wikia.com/wiki/Finn) and [Jake](htt...

@biilmann
Copy link
Member

biilmann commented Jan 9, 2016

Think the parser is just a bit too strict right now - it requires you to have an empty line after the last --- so it should be:

---
title:  "Escape from the Citadel (Season 6)"
date:   2014-04-21 10:33:56
categories: season6 episodes
shortdesc: Finn and Jake follow the Lich to the Citadel, where Finn meets his long lost dad.
banner: /img/citadel.jpg
---

[Finn](http://adventuretime.wikia.com/wiki/Finn) and [Jake](htt...

@orenmizr
Copy link
Author

orenmizr commented Jan 9, 2016

update: pushed to the clean test project (billroots)

i 've tried putting spaces this as well before opening the issue. didn't work.

b.t.w
sry for the long pause, i'm 10 hours ahead of you.

tried every form of variable extraction seen in the examples

     - each post in posts.orderBy('date', 'desc').slice(0, 10)
            li
              img(src= post.banner)
              h3.title
                a.post-title(href=post.permalink)!= post.title |= post.date |= post.slug
                //p= "BODY " + postExcerpt(post.content, 250)
          p -------------------
          - each post in posts.orderBy('date', 'desc').slice(0, 10)
            h3.title A
              a.post-title(href=post.permalink)= console(post.entry)
            //.body!= post.body
            //p= "BODY " + postExcerpt(post.content, 250)

        div.row
          each post in posts.sort('date', 'desc').slice(0,2)
            section.box
              a.image.featured(href=post.permalink)
                img(src= post.banner)
              header
                h3= post.title
                //p= "Posted " + dateFormat(post.date, 'LL')
                //!= postExcerpt(post.body, 250)
              footer
                ul.actions
                  li
                    a.button.icon.fa-file-text(href= post.permalink) Continue Reading

@orenmizr orenmizr changed the title markdown frontmatter in collections is treated is text not metadata markdown frontmatter not passed along to views Jan 10, 2016
@orenmizr
Copy link
Author

more info:

the frontmatter is in the entry content:

 content: '<hr>\n<p>title:  &quot;substack blog&quot;\ndate:   2014-04-21 10:33:56\ncategories: season6 episodes\nshortdesc: Finn and Jake follow the Lich to the Citadel, where Finn m

entry.title does not exist

*update: *
frontmatter regex match is null

should probably be tested on window machine using virtualbox and a free iso from microsoft.

@ayenzky
Copy link

ayenzky commented Mar 18, 2016

Same issue here...

@biilmann
Copy link
Member

Think I might have figured out what caused this. Try the new v0.3.3 of the extensions, and let me know if that solves the issue...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants