Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to recursively display files/dir ? #140

Closed
k0pernicus opened this issue Oct 1, 2016 · 2 comments
Closed

How to recursively display files/dir ? #140

k0pernicus opened this issue Oct 1, 2016 · 2 comments

Comments

@k0pernicus
Copy link

k0pernicus commented Oct 1, 2016

I try to use posts as a planning directory.
So, each subdirectory in posts is a date, which contains some files and each of these files is a talk and some informations about that one.

So, I have this configurations:

post/
    |-> 22-09-2016/
        |-> talk1.md
        ...
    |-> 23-09-2016/
        |-> talk1.md
        ...

I think that the index.liquid seems to be like that:

{% for s_date in posts %}
    // Get the name of the subdirectory to get the date of following talks
    {% for post in s_date %}
        {{ post.content }}
    {% endfor %}
{% endfor %}

But I don't think that s_date is recognized as a subdirectory from posts...
Is there a simple solution for my problem please?

Thanks a lot!

@uwearzt
Copy link
Contributor

uwearzt commented Feb 2, 2017

see pull request #134

@uwearzt
Copy link
Contributor

uwearzt commented Feb 10, 2017

can be closed, done with #185

epage added a commit to epage/cobalt.rs that referenced this issue Nov 8, 2017
New liquid features
- syntax: Add arr[0] and obj["name"] indexing (PR cobalt-org#141, fixes cobalt-org#127)
- value: Add nil value to support foreign data (PR cobalt-org#140)

Also, other dependencies were upgraded
epage added a commit that referenced this issue Nov 9, 2017
Bug Fixes

* **new:**
  *  Pages start as md by default ([892d798](892d798))
  *  Auto-created posts start as drafts ([0cfc158](0cfc158))
* **watch:**  Rebuilding ignores dest ([b72863b](b72863b))
*   Auto-ignore dest in more cases ([8676a3a](8676a3a))
*   Don't ignore dest look-alikes ([33c7d0d](33c7d0d))
*   source/dest are now relative to config ([ce95b39](ce95b39))
* **clean:**  Better detect what we can't clean ([78bbfc3](78bbfc3))
* **cli:**  Clarify role of --destination ([a9fce40](a9fce40))
* **config:**
  *  Don't support absolute paths ([6fd9af9](6fd9af9), closes [#319](#319))
* **jekyll:**  Clean up flag names ([80468b9](80468b9))
* **data-files:**  Provide information which file caused an error ([6b8e701](6b8e701))
* **error:**  Report file path on parse error ([c1cf01c](c1cf01c))
* **log:**  Reduce noise when level is debug ([646d589](646d589))

Breaking Changes

* **config:**
  * Auto-ignore dest in more cases ([8676a3a](8676a3a))
  * source/dest are now relative to config ([ce95b39](ce95b39))
  * Remove layouts config setting ([137fb96](137fb96))
  * Find config in parent rather than default ([4e96a1f](4e96a1f))
* **cli:**
  * Remove global config flags ([b00aad6](b00aad6))
  * Remove source/posts/layouts flags ([70b549d](70b549d))
* **jekyll:**  Clean up flag names ([80468b9](80468b9))

Features

* **init:**  Update defaults ([8a0eda9](8a0eda9))
* **new:**  Clearer contract for `cobalt new` ([8e44311](8e44311))
*   New publish sub-command ([c0329df](c0329df))
*   Expose config's site values ([7fea9dd](7fea9dd), closes [#216](#216))
* **cli:**
  * Remove global config flags ([b00aad6](b00aad6))
  * Remove source/posts/layouts flags ([70b549d](70b549d))
* **config:**
  *  Change future destination to `_site` ([da586c7](da586c7))
  *  Remove layouts config setting ([137fb96](137fb96))
  *  Find config in parent rather than default ([4e96a1f](4e96a1f))
* **front:**
  *  Set `published_date` from filename ([ad69b1f](ad69b1f))
* **liquid:**  Upgrade to 0.11 ([fd366fb](fd366fb))
  * syntax: Add `arr[0]` and `obj["name"]` indexing (PR #141, fixes #127)
  * value: Add `nil` value to support foreign data (PR #140)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants