Skip to content

OPERA-Cal-Val/opera-blog

Repository files navigation

OPERA-blog

This is the repository for publishing the informal OPERA blog that covers various products.

Installation

  • Install hugo
    • we used homebrew: brew install hugo
    • can use mamba - do not use multiple hugos - otherwise will get tricky
    • great documentation at: https://gohugo.io/documentation/

Usage

Clone this repo (i.e. git clone ...) and then make sure the submodule is correctly installed via git submodule update --init --recursive --checkout. With the repository cloned and the submodule (which manages the hugo theme) correctly pulled, view the site locally with hugo serve.

Contributing

Make a PR to dev branch and once merged will publish to the test blog. When we are ready, we can publish by merging to main. Everything is public, but the test site makes sure things work first.

Drafts

You can use the header draft: true to prevent a blog post from being published. You can still view these draft blog posts using hugo serve -D.

Data

It's probably easiest to include data directly in the repository. See the sample blog posts for examples.

To create a single file capable of multiple zoom layers that can be integrated into leaflet see here: https://github.com/OPERA-Cal-Val/dist-s1-research/blob/dev/marshak/Xc_pmtiles/pm_tiles.ipynb

Note we converted a geotiff with a colorbar to RGB (3 channel) image and then to the pmtile format.

Disclaimer

We are not web-developers and so we are sorry for the js and hugo code not being done as elegantly as one might hope.

About

OPERA Blog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5