Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

GSA/search.digitalgov.gov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 15, 2020
188a57c · Apr 15, 2020
Apr 5, 2019
Oct 30, 2015
Aug 28, 2019
Apr 10, 2019
Sep 30, 2017
Apr 15, 2020
Mar 16, 2018
Jun 23, 2015
Mar 30, 2018
Apr 10, 2020
Nov 25, 2014
Aug 30, 2019
Jun 29, 2015
Jun 13, 2014
Apr 10, 2019
May 19, 2015
Nov 25, 2014
Sep 30, 2017
Mar 26, 2013
May 19, 2015
Feb 27, 2014
Apr 5, 2019
Aug 9, 2018
Feb 22, 2017
Oct 2, 2017
Apr 30, 2019
Feb 28, 2020
Nov 6, 2014
Apr 5, 2019
Jun 16, 2016
Apr 30, 2019
May 19, 2015
Mar 26, 2013
Mar 30, 2018
May 19, 2015
Mar 16, 2018
Mar 16, 2018

Repository files navigation

search.gov

CircleCI

How to add a new post

  1. Clone the master branch.
  2. Create a new file in the drafts directory using the following naming convention: YYYY-MM-DD-post-filename-title.md
  3. Add the YAML block to the top of the file. You can use the following sample file as a starting point.
  4. Add the content of your new post below the YAML block. Feel free to use HTML, Markdown or Liquid Extension.
  5. Add, commit and push your new post back to the repository.
  6. After roughly 3 minutes, visit https://search.digitalgov.gov/drafts/post-filename-title.html to preview your post. If you added a permalink config in your post, visit https://search.digitalgov.gov/drafts/your-permalink.html
  7. When you're ready to publish your post, move the file from from drafts to the _posts directory.

How to set up your development environment

Open a Terminal window. Start homebrew.

$ brew update
$ brew doctor

We use bundler to manage gems. cd into the local repo. Install bundler and other required gems.

$ gem install bundler
$ bundle install

Start a server and try it out. From the root directory, run:

$ bundle exec compass watch (ctrl+c to stop)
$ bundle exec jekyll serve

Go to http://localhost:4000. The site should have the expected content & formatting of the Search.gov homepage.


  • For more information about Jekyll, visit the wiki pages.

  • If you don't already have it, you'll need the Ruby version specified in .ruby-version. RVM is recommended to install Ruby on your development environment. Verify that your path points to the correct version of Ruby:

    $ ruby -v ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-darwin18]