Git Product home page Git Product logo

hugo-asciinema's Introduction

Hugo Asciinema

This incomplete theme contributes a shortcode and partial to be used with other themes to embed asciicasts into your site. The asciicast file itself may be anywhere, not just locally. The css and js assets come from the player's latest release. At the time of writing, that was v2.6.1.

Usage

Add the following to your hugo.yaml.

module:
  imports:
    - path: 'github.com/hybras/hugo-asciinema'

Shortcode

1 Positional parameter, the url to the cast file

{{< asciicast hello_world.cast >}}

All Named parameters. All player attributes are supported.

{{< asciicast src="hello_world.cast" speed="1.2" >}}

Partial

Include this somehow in <head>. Hugo themes can have their layouts overriden. You can override your theme's header. My theme has a special sections to be overriden, so users can append content to <head> without overwriting it.

{{ partial "asciinema.html" . }}

hugo-asciinema's People

Contributors

hybras avatar renovate[bot] avatar

Watchers

 avatar  avatar

hugo-asciinema's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/renovate.yml
  • actions/checkout v4.1.4
  • renovatebot/github-action v40.1.10
gomod
go.mod
  • go 1.19
npm
package.json
  • asciinema-player ^3.0.1

  • Check this box to trigger a request for Renovate to run again on this repository

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.