An open API service indexing awesome lists of open source software.

https://github.com/spandigital/presidium-layouts-base

The global base (default) Hugo layouts and functionality for Presidium
https://github.com/spandigital/presidium-layouts-base

hugo layouts presidium themes

Last synced: 8 months ago
JSON representation

The global base (default) Hugo layouts and functionality for Presidium

Awesome Lists containing this project

README

          

# presidium-layouts-base
Base Hugo layouts for Presidium

## Custom Output Formats

### Snippets

The `Snippet` output format is a alternative HTML output format to the standard output (`index.html`) for _pages_ and _sections_. It's intended for generating standalone articles that can be used in third-party/isolated contexts (such as in an `iframe`).

Features of a snippet:
- Generates content from the `content/` directory.
- Uses the same stylesheets as the standard output.
- Excludes inter-host navigation contexts that are in the standard output, such as the toolbar and left sidebar.
- Includes breadcrumbs to ancestor snippets for limited navigation within the docset.

**Usage**

Snippet outputs must be configured per docset repository in `config.yml`.

```yaml
# /config.yml
...
outputs:
page:
- html # -> index.html
- snippet # -> snippet.html
section:
- html # -> index.html
- snippet # -> snippet.html
```