Skip to content

Blog posts from the USGS Office of Water Information

Notifications You must be signed in to change notification settings

USGS-OWI/owi-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

owi-blog

Blog posts from the USGS Office of Water Information

Guidelines for submission

  1. Applicable/useful to a greater audience.
  2. Content provides additional information not available elsewhere.
  3. Relevant to USGS employees or USGS data users
  4. Showcases databases, applications, software, or common practices associated with OWI or within the OWI portfolio.

Submitting blog post

  1. Fork repo
  2. Create a markdown file (.md)
  3. Add to content folder
  4. Include static images in static\name-of-blog. Images must include alt and title text
  5. Add a header similar to:
---
author: Laura DeCicco
date: 2016-06-16
slug: plotFlowConc
draft: True
type: post
title: EGRET plotFlowConc using ggplot2
categories: Data Science
tags: 
  - EGRET
  - R
image: static/plotFlowConc/unnamed-chunk-4-1.png
description: Using the R packages, ggplot and EGRET, a new function plotFlowConc        shows a new way to visualize the changes between flow and concentration.
keywords:
  - EGRET
  - ggplot2
  - data visualization
author_twitter: DeCiccoDonk
author_github: ldecicco-usgs
author_gs: jXd0feEAAAAJ
author_staff: laura-decicco
author_email: <ldecicco@usgs.gov>
author_researchgate: Laura_De_Cicco
  ---

Important notes about header:

  • Date format has to be "YYYY-MM-DD" for the blogs to be organized properly.

  • Initial submission must include draft: True

  • slug slug will be the name of your url after owi.usgs.gov\blog\xxx

  • image is not required, but will improve the look of the main "blog" page. Without an image, a generic OWI image will be included.

  • categories is a small list of approved options. The current list is Data Science, Applications, and Software Development. For each category, there is a designated list of people that have the authority to approve posts.

  • tags are more specific words, and do not need to be on a pre-approved list, these will show up on the sidebar of the blog.

  • description will go into a "meta" tag that Google and other sites use

  • keywords (can be the same as tags), also go in a "meta" tag to be used by Google and others.

  • It's a good idea to direct people to github issues, emails, or other ways to communicate if they have questions/comments/etc.

  • You can also add single author attributes for the following: twitter handles (author_twitter), github (author_github), Google Scholor (author_gs), ResearchGate (author_researchgate), USGS staff profile (author_staff), and email (author_email)

  1. Submit a pull request
  2. Wait for the pull request to get merged (blog maintainers will do that), it will then appear on the dev site.
  3. Submitter is responsible for getting 1 internal peer-review of content (interal reviews can be done on a Google Form). Send the reviewer a link to the dev site.
  4. A designated approver must sign off on content based on review response
  5. A designated web content manager will sign-off on if the page is generally fit to be published on a government website (verify the header follows the "Important notes" above, images contain alt/title tags)
  6. Once the content is approved, the draft status can be removed, and the content will appear on the QA site.
  7. Assuming all looks good, push to prod

Hugo Installation

Download/installation instructions

Essentially, the Hugo executable just needs to sit in a directory referenced in the shell $PATH variable

Quick start guide for Hugo

Shows how to build a simple example Hugo site. On the left sidebar there are links to more in-depth documentation.

To test locally, run:

export HUGO_BASEURL="blog/"
hugo server --theme=hugo_theme_robust --buildDrafts

Instructions for R users

Templates for R markdowns

install.packages("USGSmarkdowntemplates", repos=c("https://owi.usgs.gov/R",getOption("repos")))

This will add draft: True to the markdown header (not rmarkdown file). It is up to you to remove that AFTER the content has been reviewed.

To add 2 figures side by side, add class="sideBySide", for example:

<img class="sideBySide" src='/fig1.png'/ alt='/ggplot2'/>
<img class="sideBySide" src='/fig2.png'/ alt='/EGRET'/>

Disclaimer

This software is preliminary or provisional and is subject to revision. It is being provided to meet the need for timely best science. The software has not received final approval by the U.S. Geological Survey (USGS). No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. The software is provided on the condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from the authorized or unauthorized use of the software.

About

Blog posts from the USGS Office of Water Information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages