Skip to content

code-newbies/codeland

Repository files navigation

Netlify Status

CodeLand!

This is a Middleman staticly-generated site. It is Ruby based with erb syntax and conventions familiar to Ruby on Rails developers.

Getting Started

git clone git@github.com:code-newbies/codeland.git
cd codeland
# Install the dependencies
bundle install

# Start the server locally (development mode)
bundle exec middleman server

# Build the site
bundle exec middleman build

For more info, visit the Middleman docs

Where to find stuff

All files to modify are located in the source directory. These are the basis for the generated files which live in the project root.

Within the source directory are various pages, partials, and assets which are compiled to their static production versions.

imgix images

This site uses imgix for image optimization/transformations. There is a helper called imgixUrl that makes use of the imgix-rb gem. In local development, the original image will be served without transformations/optimizations. Sample usage in templates:

<img
  src="<%= imgixUrl('image.png', {w: 365, h: 365, crop: 'faces,center', fit: 'crop'}) %>"
  alt="meaningful alt text"
>

Deploy to Netlify

This site is hosted on Netlify. Any changes pushed to main will get deployed automatically. Any Pull Requests created will automatically receive a Deploy Preview - check the PR comments for the details.

License

This repo uses the MIT license.

All uses of the CodeLand logo, DEV logo, related imagery, brand slogans, iconography, and the like, may only be used with express permission from Dev Community Inc. ("DEV"). DEV reserves all rights, even if certain assets are included in DEV open source projects. Please contact yo@dev.to with any questions or to request permission.