Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 450 Vote(s) - 3.57 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatically generating sub-dir paths in OCTOPRESS menu bar

#1
I see a similar question already been posted, but was down-voted and left unanswered. Also I was not able to find any answer via google search.

I am trying to use Octopress for both blogging and posting articles. But I don't have much experience with it.

Blog pages work fine and are indexed automatically. However other type of pages (for example *source/projects/project1/project1.md* and *source/articles/article1/article1.md*) are not indexed in archive nor visible on navigation bar. I can still navigate to them automatically by changing the URL, but otherwise they are hidden.

The question: Is there an easy way to automatically generate some kind of a tree for these deeper files? Maybe some kind of a plugin?

Thanks,
KK.
Reply

#2
I'm not completely certain how Octopress works, but in Jekyll (which Octopress is based on) you could use the pages accessor to loop through all the pages. It would work something like this:

{% for page in site.pages %}
<a href="{{ page.url }}">{{ page.title }}</a>
{% endfor %}
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through