Code Monkey home page Code Monkey logo

allegrowww2's Introduction

The Allegro web site is generated using Pandoc.

The parts which are common to all pages are stored in the en/_include/* files.

The initial portion of the page (title and sidebar) are generated by running these files through Pandoc to produce HTML:

en/_include/before-body
en/_include/links

=> produces en/_include/before-body.html

The end of the page (footer) is generated from the files:

en/_include/after-body
en/_include/links

=> produces en/_include/after-body.html

The files en/_include/in-header, en/_include/before-body.html en/_include/after-body.html are then included into each page.

The main content of each page is generated for all the files within a directory, e.g. for the news page:

en/news/a.header
en/news/news.2008-11-02
en/news/news.2008-10-01
en/news/news.2008-09-10
en/news/z.footer
en/_include/links

Notice that the filenames within the directory are sorted, except that sequences of files with dates in them are reverse sorted.

To create a news item, just add a new file in en/news. Old news items can be moved to en/oldnews periodically.

Any content run through Pandoc can be written with Markdown syntax, but you can also insert any HTML you need.

Files in the static directory are copied directly to the output directory.

allegrowww2's People

Contributors

allefant avatar edgarreynaldo avatar gillius avatar kazzmir avatar siegelord avatar siegelordex avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.