Giter Site home page Giter Site logo

nntest.org's Introduction

NewsNerdery.organization

Local Development

Before you start

We build the site using Hugo. If you have brew installed, simply run brew install hugo.

Hugo also has tutorials for Mac and Windows.

Running the server locally

Navigate in a terminal window to the folder containing the cloned or forked instance of NewsNerdery.org and run hugo server. Hugo should give you a URL like http://localhost:1313/ where you will now find the site.

Updates made to Hugo files will be reflected instantly in your browser. Try it by modifying a file within content/onepage/.

Adding a section to the website

NewsNerdery.org currently exists on a single page. Sections on this page are configured through content/onepage and ordered based on their filename.

Composing text for NewsNerdery.org

Text can be written in raw HTML or markdown. Hugo uses the [BlackFriday renderer(https://github.com/russross/blackfriday) with an extension to support Github-style checklists, like this one:

  • Find a static site generator for News Nerdery.org

Hugo also supports code highlighting. To highlight a block of HTML within your Hugo file, you would include a chunk of markdown like this:

body {
  font-family: "Noto Sans", sans-serif;
}
<p>
  <strong>HTML!!!</strong>
</p>

Optional author parameter

By default very little metadata is shown for blocks on NewsNerdery.org. But if you add an author: Joe Journo to the parameters, we'll tag the post as being by that value.

For instance, this post file:

---
date: 2016-11-16
author: "Joe Journo"
---
## A cool post

Would be rendered as:

screen shot 2016-11-16 at 3 42 59 pm

Deploying changes

To deploy changes, you'll need to do two things.

  1. Build the site for distribution with hugo -d dist.
  2. Run the deploy script with ./deploy.sh.

nntest.org's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.