Skip to content

Latest commit

 

History

History
128 lines (88 loc) · 2.87 KB

README.md

File metadata and controls

128 lines (88 loc) · 2.87 KB

gis.utah.gov

Read about our new website. Contribute content or typos. License: MIT.

Netlify Status

Local Development

  1. Check out this repository
  2. run docker-compose up
  3. browse to localhost:4000
  4. run docker pull jekyll/jekyll:4 to update your image
  5. run grunt imagemin:images to minify images

Common Website Tips

Markdown syntax conventions

_italics_
**bold**
_**bold italics**_
- list

link to page

  • markdown

    [link text]({% link path/to/item.with-extension %})
  • html

    <a href="{% link path/to/item.with-extension %}">link text</a>

link to post

  • markdown

    [link text]({% link _posts/2016-05-26-file-name.with-extension %})
  • html

    <a href="{% link _posts/2016-05-26-file-name.with-extension %}">link text</a>

external link

  • markdown

    [link text](http://external.website.location)

images

  • markdown

    ![alt text]({% link path/to/item.with-extension %})
  • html

    <img src="{% link path/to/image.jpg" %} alt="hover text"/>

link alt text

[link text]({% link path/to/item.with-extension %} "popup text")

css in markdown

![alt text]({% link path/to/item.with-extension %})
{: .css-class-name}

font matter

  • page - the post vs page layout
  • title: Title - the title of the content
  • author.display_name: Full Name - The author of the content
  • author.email: email@address - The author email
  • date: 2018-02-13 - the date the content was created
  • update_date: 2018-02-13 - this will show in under the title that the page has been updated
  • tags: a list of tags
  • categories: Featured|Developer|SGID Blog|GPS-surveyor|Guestblog
  • published: true|false

contact information

Contacts are managed in a yml file. Please do not put email addresses directly into content.

The include has a few properties:

  • subject: the subject of the email link. Most of the time using page.title is good enough™

  • contact: the contact in the yml file to create

  • text: update this to change the default text generated

  • hide-punctuation: set this to true if you would like to remove the . at the end of the text

  • markdown

    {% capture contact %}{% include contact.html subject=page.title contact=site.data.contacts.agrc %}{% endcapture %}
    {{ contact }}
  • html

    {% include contact.html subject=page.title contact=site.data.contacts.agrc %}