This is a Middleman staticly-generated site. It is Ruby based with erb
syntax and conventions familiar to Ruby on Rails developers.
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
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.
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="https://github.com/code-newbies/codeland/raw/main/<%= imgixUrl('image.png', {w: 365, h: 365, crop: 'faces,center', fit: 'crop'}) %>"
alt="meaningful alt text"
>
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.
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.