Giter Site home page Giter Site logo

penntaylor / redearthfarms-website Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 5.8 MB

Generating code for --->

Home Page: http://redearthfarms.org

License: MIT License

Makefile 7.68% Shell 3.90% Python 5.90% CSS 66.51% HTML 14.43% JavaScript 1.57%

redearthfarms-website's Introduction

redearthfarms-website

Code and public assets for redearthfarms.org website.


Did a Red Earth member send you here to find editable versions of our basic documents? If so, look under content/docs/editable to find open-document versions of some of our documents.

Otherwise, there isn't anything here that isn't available directly from our website, aside from some python scripts that make the sausage.


For Community members

DO NOT CHECK SECRETS, CREDENTIALS, OR PRIVATE INFO INTO THIS REPOSITORY. IT IS OPEN TO ANY AND ALL PRYING EYES!

Everything you are concerned with lives in the content directory. All pages in /content use Markdown formatting rather than raw html. Here's a cheatsheet for Markdown if you need some help getting the formatting you want.

To edit a page:

  • the "table" near the top of this page is actually a file explorer. Click on the name of a folder to enter that folder, e.g. content
  • find the page you want to edit in /content (or perhaps /content/people or /content/leaseholds; you get the idea)
  • click on the name of the page (eg. cooperatives.md). The page's text contents should now be displayed in a text pane.
  • select the little icon that looks like a pencil in the upper right of the text pane
  • edit the text however you want. (Don't try to use the "Preview changes" tab on the text pane. It doesn't do what you expect, and you'll wonder why everything looks wrong.)
  • once everything looks good, run down to the box below the text pane that says "Commit chnages", and
    • put a very brief description of the changes you made into the first box; eg. "Added basic instructions to the README"
    • ensure that "Commit directly to the master branch." is selected
    • click the "Commit changes" button
    • after ~20 seconds, the live website should be updated with your changes. Test by browsing to the site and being sure to refresh the particular page(s) you edited. If your changes still don't show up, try clearing your browser's cache and refreshing the page again. If you're still having trouble, email Penn.

To update a pdf document or add a new document/image/etc.:

  • use the file table above this text to navigate to the folder you want to update or add a file to
  • in the upper right of the file list inside that folder, there is a dropdown button labeled "Add file"; click it
  • select "Upload files" and then follow the onscreen instructions to select the file on your computer that you want to upload
    • if you're adding a new file, the file can be named whatever you want
    • if you're updating an existing file, the file you're uplaoding must have the exact same name. CapiTaLiZatiON MatTErs!
  • refer to the instructions for "Commit Changes" above

Super-secret tips and hints

Open this page again in a new tab. Open the Markdown cheatsheet in another tab as well. Now you can easily flip between these instructions, the markdown docs, and the page you're trying to edit.

Images

Images on people and leasehold pages should have a maximum width of 400 pixels.

On the rotating sidebar

Images should be jpeg, 180x120 pixels (max), and have all metadata stripped. Batch conversion can be done with imagemagick as follows:

mkdir small
for f in *.jpg; do convert -strip -resize 180x120 $f small/$f; done

Alternatively, black bars can be added to pad out images that don't have 3:2 aspect ratio by replacing the convert part above with:

convert -strip -resize 180x120 -background black -gravity center -extent 180x120 $f small/$f

How Do I ... ?

Add a link to a page inside the REF website

[my link text]({filename}path/to/file.md) Example: If you're editing the file who-we-are.md and want to add a link to Fido: [Fido the Dog]({filename}people/fido.md) Notice that {filename} is the literal text '{filename}'

Add a link to an external website

[my link text](https://foo.com)

Place an image into a page

![Image alt text]({filename}path/to/image.jpg) Notice this is nearly the same as adding a link to a page within the website, but has a leading !

Rename a file

Upload a file with the new name, then delete the version with the old name.

Edit / Resize an image

Download the image to your local computer, then use whichever image manipulation program you're familiar with to resize, rescale, adjust colors, etc. Overwrite your local version with the edited version, then upload it back to the repository.

redearthfarms-website's People

Contributors

penntaylor avatar applewoodmica avatar chamisoul avatar tomcatbirdsfoot avatar markmazziotti avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

kimscheidt

redearthfarms-website's Issues

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.