News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Any thoughts on a MurgaLua facebook page?
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
Any thoughts on a MurgaLua facebook page?

See thread title...I guess that's all I had to say.

02-11-2011 02:28 AM
Find all posts by this user Quote this message in a reply
jpjacobs
Member
***


Posts: 113
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #2
RE: Any thoughts on a MurgaLua facebook page?

I guess that's a good idea, but an up-to-date website is even more important I think. The last update on the site is about 3 years old ... That'll make about anyone think it's an abandoned project!

Regards,

Jan-Pieter

02-11-2011 02:51 AM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #3
RE: Any thoughts on a MurgaLua facebook page?

Yeah...site updates are a lot more work, though. A facebook page all you have to do is click a few buttons and done =o)

02-11-2011 05:46 AM
Find all posts by this user Quote this message in a reply
jpjacobs
Member
***


Posts: 113
Group: Registered
Joined: Jul 2007
Status: Offline
Reputation: 0
Post: #4
RE: Any thoughts on a MurgaLua facebook page?

Well, I just hacked something together to facilitate the task of keeping a website up to date
just edit the config.lua to your needs:

config.page should contain a template for all pages (use @@keyword for keywords, which will be matched by gsub in the script).

config.post_title contains a template for the post title
config.post_body containts a template for the posts body
config.sections contains a table with all directories which should be looked through for converting posts to posts in the page
config.output should contain the name of the output directory, where the html's will be put.

now just make some section-directories, put in some markdown-coded .txt's, and run
murgaLua wman.lua config.lua

and there they are!

Feel free to use/ adapt /improve but don't blame me if it eats your dog Wink

Edit: Now checks whether output files are up to date before re-rendering them, should save time on big websites.

Regards,

Jan-Pieter



Attached File(s)
.zip File  WebsiteManager.zip (Size: 6.73 KB / Downloads: 2)

This post was last modified: 02-15-2011 02:17 AM by jpjacobs.

02-15-2011 12:37 AM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #5
RE: Any thoughts on a MurgaLua facebook page?

That's very interesting.

I forgot I had markdown already installed, so that was handy =o)
Never learned how to use it, though...I had planned to try some dynamic page building with it, but that idea just sort of got lost over time.

02-15-2011 01:25 AM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #6
RE: Any thoughts on a MurgaLua facebook page?

Definitely needs some CSS inserted...

02-15-2011 01:26 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: