Giter Site home page Giter Site logo

artearthtech.com's Introduction

Art / Earth / Tech website: http://artearthtech.com/

Content Team Guide

Image Resizing

We have created an imgresize shortcode which will automatically do image resizing for you.

Suppose you have an image in images directory named:

sitting-room.jpg

Rather than embedding this in your post by doing:

<img src="/images/sitting-room.jpg" />

You would do:

{{< imgresize src="sitting-room.jpg" size="800x" >}}

Where 800x means width of 800px. If you want height of 800px you would do x800. For more information on this option see image resizing in hugo see: https://gohugo.io/content-management/image-processing/

Assets

All assets for the site are stored in this drive folder.

We use reduced (pixels and file size) versions of the images to increase pages' loading speed. All reduced images have appendix with W x H in their names.


Technical Stuff

This website is a static website.

To work on the website locally

  • Install hugo

  • Install git lfs and pull git large files

  • git clone the repo:

    git clone https://gitlab.com/artearthtech/artearthtech.com

  • Run hugo:

    hugo server

Extras

To build the CSS from the SASS:

  1. Install sass (e.g. brew install sass)

  2. Run:

    sass --watch static/scss:static/css

Deploying the website

We deploy the website live using gitlab pipelines.

Just git push and the new version of the site will go live.

If you want to learn more about how this happens see .gitlab-ci.yml file.

artearthtech.com's People

Contributors

rufuspollock avatar lkavanagh30 avatar inespihsuanchen avatar mikanebu avatar tanvirchahal avatar anuveyatsu avatar tommanwell avatar ninongodefroy avatar naimavrf avatar dipeshkhadkaa avatar ryleysill93 avatar shellyartearthtech avatar

Watchers

 avatar  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.