Giter Club home page Giter Club logo

sparkfabrik.github.com's Introduction

Sparkfabrik's tech blog

Installation

### Docker

You can run everything needed to start developing with hugo, just running docker-compose up -d, just make sure to have dnsdock container up and running or point tech.sparkfabrik.loc:1313 or localhost:1313.

The hugo container expose a fixed port 80 to the docker host.

#### Gotchas on OSX/Windows

As on OSX/Windows docker uses vboxfs/nfs which does not support any kind of inotify-like notifications events, you can't rely on the really useful livereload while editing the blog using a GUI editor. To manual rebuild the pages run make build-loc

Native

#### OSX

Install hugo with brew: brew install hugo

Then cd src && hugo server --buildDrafts --theme spark --baseUrl=http://localhost:1313 or just execute scripts/run-local-server.sh

### Windows

Are you really using Windows ?! :D

Download latest release here: https://github.com/spf13/hugo/releases/download/v0.15/hugo_0.15_windows_amd64.zip

Then cd src && hugo server --buildDrafts --theme spark --baseUrl=http://localhost:1313

Usage

Official documentation: https://gohugo.io/overview/introduction/

Source code structure:

src
├── archetypes
├── config.toml              <-- hugo global configurations
├── content                  <-- contents
│   ├── archive.md           <-- achive page (route `/archive`)
│   ├── pages
│   │   ├── about.md         <-- page about (route `/page/about`)
│   │   └── team.md          <-- page team (route `/page/team`)
│   └── post
│       └── hello-world.md   <-- blog post (route `/post/hello-world`)
├── data
├── layouts
│   └── archive              <-- custom page layouts
├── static                   <-- static assets
│   ├── css
│   └── img
└── themes
    └── spark
    ```

The following steps to contribute with a post:

# Clone the repo
# Create a branch start from the last `dev`, for example `post/docker-starterkit`
# Save the file to `src/content/page/docker-starterkit.md` commit and push
# Open a new MR from `post/docker-starterkit` => `dev` and ask your colleagues for a review
# Check the travis.ci build, if you have enough :+1: and travis.ci, just merge the page to auto deploy
your post





sparkfabrik.github.com's People

Watchers

 avatar  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.