Coder Social home page Coder Social logo

cmlab's Introduction

This repo hosts source code for the ANU Computational Media Lab website http://cm.cecs.anu.edu.au/.

This site is created from the site example in the Hugo source code.

Building and updating the site

For people who are not admin/direct contributors to the head repo, fork this repo in your own github account, and then send a push request with your changes.

  1. Install Hugo in a way that best suits your environment and comfort level --- I recommend downloading the binary from here, unzip, and placing the executable (renamed to 'hugo') somewhere in your PATH.

  2. Navigate to the website source section of the repository, i.e. './cmLab/'

  3. Local Preview type "hugo server" .. make sure there's no complaints, and then view under (usually) http://localhost:1313 . Changes to the local site dir are usually "watched", i.e. automatically recompiled and browser content refreshed.

Note:

  • Production: use the enclosed "update_site.sh" script to complete pulling changes from repo, compiling, and copying as an all-in-one package.

  • You can also use the '-d /some/destination/directory' option to hugo to send the generated html directly to another location (e.g., the public www directory, or ../rendered).

To update the looks/templates of this site:

  1. The homepage sits under ./layouts/index.html -- it contains a few hugo macros, otherwise is plain html.

  2. Each page, or post, are undert ./content/ and written as markdown files (with front matter metadata plus content). Look at the examples there to see how to add one. They will appear on the homepage in reverse chronological order. To add a new page, do "hugo new schedule.md" (it won't let you do this one since schedule.md already exist, use some other name); to add a new post, do "hugo new post/another_post.md".

  3. Additional files (images, slides, etc) should be places in ./static and linked from the pages. They will be copied to the static html directory.

  4. The above should cover most of the routine editing task. The few bullets below covers editing of the site structure, as well as look-and-feel:

    • header/footer and includes are found in ./layouts/partials/
    • how each page appears in are governed by ./layouts/_default and ./layouts/post
    • stylesheets are in ./static/css

cmlab's People

Contributors

alasdairtran avatar alexandersoen avatar almath123 avatar andrei-rizoiu avatar avalanchesiqi avatar bistaumanga avatar cdawei avatar dongwookim-ml avatar jooyoungl avatar lexingxie avatar liyaotang avatar mengyanz avatar mesuvash avatar qxcv avatar qykong avatar ruizhang2016 avatar s-mishra avatar shinminjeong avatar yifeiacc avatar

Watchers

 avatar  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.