Coder Social home page Coder Social logo

commandovmgit / awesome-hugo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hugoblox/awesome-hugo

0.0 0.0 0.0 20 KB

Automate batch edits to your Markdown content. Integrates with static website generators such as Hugo and Gatsby

Home Page: https://discord.gg/z8wNYzb

License: MIT License

Shell 65.90% Python 34.10%

awesome-hugo's Introduction

Awesome Hugo

A collection of scripts to help you easily manage your Markdown content.

๐Ÿ‘‰ Questions? Join the community on Discord.

๐Ÿ’ก Have you developed a useful script? Consider contributing it in a Pull Request so the community can benefit!

Scripts

  • refactor-pages-to-page-bundles
    • Refactor all Markdown page files to page bundles (each page gets a portable, self contained folder with its assets)
  • refactor_page_bundles_to_pages.sh
    • Convert page bundles (e.g. content/home/hero/index.md) to page files (e.g. content/home/hero.md)
  • refactor_pages_convert_TOML_to_YAML.py
    • Python script to convert front matter of all pages from TOML to YAML for compatibility with a wider range of Markdown editors
    • Prerequisite: pip install pipenv and pipenv install
    • To use cd YOUR_SITE_FOLDER and python3 refactor_pages_convert_TOML_to_YAML.py
  • refactor-widget-bundles-as-headless.sh
    • Refactor Hugo widgets to add headless: true to front matter (assumes YAML front matter, such as by running above Python script to convert all front matter from TOML to YAML)

Notes

Please make a full backup of your site and Markdown content prior to running any scripts.

These scripts are provided by the community in the hope that they might aid updating and managing large collections of Markdown content. Before running a script, you should review its code and adapt it as necessary for your content.

Windows users may need to install the Windows Linux Subsystem in order to run Bash scripts.

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.