Skip to content

artearthtech.com / lifeitelf.us website 2017-2020 in markdown, hugo-powered form.

Notifications You must be signed in to change notification settings

life-itself/artearthtech.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

artearthtech.com / lifeitelf.us website 2017-2020 in markdown, hugo-powered form.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published