Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

jean-bertrand/reach-website

Repository files navigation

Reach Website

Landing pages and website for Reach Vote app.

Installation

  1. Make sure you have python installed
  2. If you don't have virtualenv installed, install it using pip install virtualenv
  3. From root directory of project run virtualenv venv
  4. Run source venv/bin/activate
  5. Install Flask library into this virtual environment pip install flask
  6. Install Lektor static site management pip install Lektor

Run

From the root directory run lektor server to start server

Content

There are two ways to edit content on pages:

  1. While the development server is running you can use the built-in admin interface. It can be accessed by clicking on the pencil symbol on a page or by manually navigating to /admin/

  2. You can edit the content in the /content directory directly. Content files are in folders respective to each page. the .contens.lr file in /content root is content for the home page.

Adding fields

If you want to define more specific content fiels to use in templates or components, you can define new fields in /models.

Fields defined in .ini model files will be visible and accessible when in Admin UI. More about data modeling for content here.

Deployment

Reach.vote uses Netlify for deployment.

  • Commits to master automatically trigger a build and deploy to the production site.
  • Preview PRs with Netlify deploy preview directly from the pull request in Github.

Build static site

To generate a static static site direct, run $ lektor build --output-path [PATH] from root directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published