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

TecnoYucas' programmable publisher #3

Open
sadasant opened this issue Jan 26, 2014 · 3 comments
Open

TecnoYucas' programmable publisher #3

sadasant opened this issue Jan 26, 2014 · 3 comments
Assignees
Milestone

Comments

@sadasant
Copy link
Member

Hello sir,

So you told me you had two Yucas to collaborate, but hey, the site is under construction, so let's take this issue as an opportunity: let's build a programmable publisher.

The problem is this: Given the existence of Markdown files (file.mkd) with a future date, there must be a way to make it available only after that day is reached.

Having the above statement, let's take a look to the whole picture:

  • We're working on a git repository over github.
  • Github offers free hosting with Jekyll.
  • Jekyll is intended to be used with minimal changes, barely mere configuration changes and then just publish your content.
  • Jekyll uses markdown, and uses some variables above the markdown to process the documents based on them, here's an example: https://raw2.github.com/tecnoyucas/tecnoyucas.github.io/master/_posts/2013-12-26-bienvenido-a-tecnoyucas.markdown, the lines between the --- bars at the top are those variables, as you see, there's a date variable over there, so we could use that to make them unavailable if the date is posterior to the current date.
  • To process those variables, Jekyll makes an object called page which has the defined variables as attributes, this object is available in the _layouts, for example, here we're currently using the date variable.
  • For example, we could filter the posts by the date. Currently we have a filter by categories, in the bottom of the page appears a list of old posts who can be identified and picked by the "old" category, check it here.
  • Jekyll has plugins, we could use them.

Tell me, what do you think? I'll give you any help if needed.

@ghost ghost assigned schoettler Jan 26, 2014
@schoettler
Copy link

Yeah! I asked you things about Jekyll and Liquid because this was exactly my approach! I'll do my research and reply tonight.

@sadasant
Copy link
Member Author

Good :D

@schoettler
Copy link

Okay so i've been reading a couple of tuts to mess around with my local copy, will come with something good later!

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

2 participants