GithubHelp home page GithubHelp logo

amberinitiative / peoplesopen-front Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sudomesh/peoplesopen-front

0.0 1.0 0.0 2.82 MB

Front landing page for the peoplesopen.net website.

Home Page: https://peoplesopen.net

License: MIT License

JavaScript 3.31% CSS 86.58% HTML 10.12%

peoplesopen-front's Introduction

PeoplesOpen.Net

Build Status

This repo stores the content and builds the static html for the peoplesopen.net website, excluding the blog/ and gardenmesh/ directories.

Make changes

If you want to change the text/links/images on a page, simply edit the index.md file in the corresponding page directory in src/.

If you want to add a new page that will live at, say, https://peoplesopen.net/sour-raccoons, create the src/sour-raccoons directory, and put an index.md in it.

View your changes locally

First you'll need to install node.js. Then:

cd peoplesopen-front
npm install               (install all the dependencies needed by our gulpfile)
npm install -g npx        (npx comes with new versions of npm)

Now you're ready. This command runs a local webserver:

npx gulp webserver

And this one rebuilds the web/ directory with your latest changes:

npx gulp

Publish

After gaining ssh access to the peoplesopen.net webserver, run:

npm run publish

which is just an alias for npx gulp && scp -r web/* [email protected]:/var/www/peoplesopen.net/public-current.

Structure

- lib/                    # helpers used by the gulpfile

- src/                    # page content and assets live here
-- about/                 
--- index.md              # every page has an index.md that lives
                          # in a directory corresponding to the page's url
                          # (e.g. peoplesopen.net/about)

                          # at the top of the index.md, you can specify
                          # the page title and the name of the template to use
                          # to render the page (see templates/)

-- assets/
--- files/
--- fonts/
--- images/
--- javascript/
--- stylesheets/

- templates/              # reused html lives here (e.g. page layouts)
-- html.twig              # this is the base html used for all pages
-- layout/
--- homepage.twig         # this is the html used for the homepage
--- two-columns.twig      # this is the layout used for pages with the "Let's Hack" sidebar

- config.yml              # project settings (e.g. website title)

- gulpfile.js             # turns .scss and .md files into css and html files
                          # in the web/ directory

- package-lock.json       # these files keep track of dependencies used by the gulpfile 
- package.json

peoplesopen-front's People

Contributors

bennlich avatar sierkje avatar wrought avatar jnny avatar maisutton avatar gobengo avatar papazoga avatar max-b avatar denisdefreyne avatar kaldari avatar juul avatar max-mapper avatar nanomonkey avatar elimisteve avatar

Watchers

James Cloos 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.