Giter VIP home page Giter VIP logo

hugo-vsts-extension's Introduction

Generates a site using Hugo, a Fast and Flexible Website Generator.

Hugo logo here

Usage

The Build Task will automatically download the hugo executable, if the version is not already present on the build machine, and invoke it.

You can specify some common options.

  • Source: relative path from repo root of the Hugo sources, defaults to Build.SourcesDirectory, passed as --source flag.
  • Destination: path of Hugo generated site, typically Build.ArtifactStagingDirectory, passed as --destination flag.
  • Hugo Version: defines the Hugo version, use latest, 0.25.1, 0.24, but not v0.24 (pick valid values from Hugo Releases page). If the preferred version cannot be found, the latest released version will be used instead.
  • Extended Version: download the extended Hugo version (SCSS/SASS support).
  • Base URL: sets the hostname (and path) to the root, e.g. http://example.com/, passed as --baseURL flag.
  • Include Drafts: to include content marked as draft, passed as --buildDrafts flag.
  • Include Expired: to include expired content, passed as --buildExpired flag.
  • Include Future: to include content with publishdate in the future, passed as --buildFuture flag.
  • Use Ugly URLs: to use /filename.html instead of /filename/, passed as --uglyURLs flag.

Build Task Arguments screenshot here

A detailed walk through is here Building a Hugo Site with the Azure DevOps Extension

More Information on Hugo on this site.

The Hugo logos are copyright ยฉ Steve Francia 2013โ€“2022.

Release Notes

2.0

  • New Cross-platform implementation.
  • Removed uglyURLs option, deprecated since Hugo 0.xx ???
  • Added additionalArgs option to allow custom arguments.

1.1.0

  • Fixes (ISSUE#5)
  • Added support for Extended version (Hugo 0.43 and later)

1.0.1

  • Use TLS 1.2 for GitHub API (PR#3)

1.0.0

  • Initial release

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.