All Projects → fenneclab → hugo-bin

fenneclab / hugo-bin

Licence: MIT license
Binary wrapper for Hugo

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hugo-bin

hugo-lamp
A light Hugo AMP responsive theme for blogger ⚡.
Stars: ✭ 51 (-31.08%)
Mutual labels:  hugo
hugo-lime
Hugo Lime is a business theme for GoHugo by https://uicard.io
Stars: ✭ 31 (-58.11%)
Mutual labels:  hugo
hugo-notice
A Hugo theme component to display nice notices
Stars: ✭ 138 (+86.49%)
Mutual labels:  hugo
web
Hugo content for the openshift.tips blog
Stars: ✭ 48 (-35.14%)
Mutual labels:  hugo
TinkerHub-Learning-Paths
TinkerHub Learning Paths repo contains curated learning paths for learning technologies
Stars: ✭ 52 (-29.73%)
Mutual labels:  hugo
wowchemy-hugo-themes
🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, easily build with blocks! 创建在线课程,学术简历或初创网站。#OpenScience
Stars: ✭ 6,891 (+9212.16%)
Mutual labels:  hugo
hugo-theme-chunky-poster
A simple, bootstrap 4 based hugo blog theme.
Stars: ✭ 106 (+43.24%)
Mutual labels:  hugo
hugy
Hugy is an Electron desktop app acting as a GUI for the Hugo static site generator.
Stars: ✭ 44 (-40.54%)
Mutual labels:  hugo
hugo-uilite
uicard.io/products/hugo-uilite
Stars: ✭ 85 (+14.86%)
Mutual labels:  hugo
hugo-theme-fluency
A fluent hugo theme.
Stars: ✭ 48 (-35.14%)
Mutual labels:  hugo
hugo-alabaster-theme
A documentation theme ported from Sphinx to Hugo
Stars: ✭ 73 (-1.35%)
Mutual labels:  hugo
npqhugo
npq-hugo is a customizable and responsive dark blog theme with integrated contact form and code syntax highlighting
Stars: ✭ 24 (-67.57%)
Mutual labels:  hugo
hugo-theme-minima
A clean and minimal Hugo theme.
Stars: ✭ 70 (-5.41%)
Mutual labels:  hugo
hugo-documentation-theme
📖 Project Docs / Knowledge Base template for Hugo Website Builder. 创建项目文档
Stars: ✭ 101 (+36.49%)
Mutual labels:  hugo
readme-in-static-site
💎 Transform and insert your GitHub readme in your static site.
Stars: ✭ 24 (-67.57%)
Mutual labels:  hugo
axiom
Axiom - A Hugo Theme. GitTip: https://gitcoin.co/tip?username=jhauraw
Stars: ✭ 67 (-9.46%)
Mutual labels:  hugo
showcase-hugo-theme
Showcase is a minimal, single page theme for Hugo
Stars: ✭ 54 (-27.03%)
Mutual labels:  hugo
bulma
Bulma is a simple and a responsive Hugo theme that offers a traditional blog mixed with a landing page designed to bootstrap your frontend!.
Stars: ✭ 41 (-44.59%)
Mutual labels:  hugo
coopcycle-website
The coopcycle.org website.
Stars: ✭ 14 (-81.08%)
Mutual labels:  hugo
io-oi.me
Blog of reuixiy!
Stars: ✭ 88 (+18.92%)
Mutual labels:  hugo

hugo-bin npm version Build Status

Binary wrapper for Hugo

Install

npm install hugo-bin --save-dev

hugo-bin now supports the Extended Hugo version. See Installation options for more details.

For usage within corporate networks or behind corporate proxies, the download repository can be overwritten, see Installation options for more details.

Usage

API

import { execFile } from 'node:child_process';
import hugo from 'hugo-bin';

execFile(hugo, ['version'], (error, stdout) => {
  if (error) {
    throw error;
  }

  console.log(stdout);
});

CLI

$(npm bin)/hugo --help
npm run create -- post/my-new-post.md # see below 'npm run-script'

or on Windows:

for /f "delims=" %F in ('npm bin') do call "%F\hugo" help
rem see below 'npm run-script'
npm run create -- post/my-new-post.md

npm run-script

{
  "scripts": {
    "build": "hugo",
    "create": "hugo new",
    "serve": "hugo server"
  }
}

See the Hugo Documentation for more information.

Installation options

hugo-bin supports options to change the variation of Hugo binaries and to overwrite the download repository.

Each option can be configured in the hugo-bin section of your package.json:

{
  "name": "your-package",
  "version": "0.0.1",
  "hugo-bin": {
    "buildTags": "extended",
    "downloadRepo" : "https://some.example.com/artifactory/github-releases"
  }
}

Also as local or global .npmrc configuration file:

hugo_bin_build_tags = "extended"
hugo_bin_download_repo = "https://some.example.com/artifactory/github-releases"

Also as an environment variable:

export HUGO_BIN_BUILD_TAGS="extended"
export HUGO_BIN_DOWNLOAD_REPO="https://some.example.com/artifactory/github-releases"

Note that you have to run npm install hugo-bin to re-install hugo-bin itself, if you change any of these options.

Options

buildTags

Default: ""

Set it to extended to download the extended version binary.

If this is set to extended but it's not available for the user's platform, then the normal version will be downloaded instead.

downloadRepo

Default: "https://github.com"

Set it to your corporate proxy url to download the hugo binary from a different download repository.

Supported versions

See the package.json commit history.

Super Inspired By

License

MIT © Shun Sato

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].