hugoasset

command module
v0.0.0-...-d2b621c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2017 License: MIT Imports: 12 Imported by: 0

README

Hugo Asset Management

Introduction

This utility helps manage the static assets under the static/ subdirectory of your Hugo installation:

  • Find broken links (missing assets)
  • Find assets that are not linked to anywhere in the content so you can reclaim the disk space

It searches for <a href="...">, <img src="..." srcset="..."> and <script src="...">

Building from source

You need Go as a prerequisite (but then you need it for Hugo as well).

Git clone or extract the source code from a tarball, then run make

Usage

Just run it under your hugo directory, just as you would hugo itself. The parameter -prefix tells it what the URL prefix is for the site URLs. It assumes static assets are under static/ and output files under public/

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL