Code Monkey home page Code Monkey logo

terminal-hugo-theme's Introduction

terminal-hugo-theme

A theme for hugo made using tailwind CSS library and mono font family

Live Demo

https://nayanseth.com

Theme Screenshot

Setup

  1. This theme uses tailwind CSS
  2. [Optional] How to Use Tailwind
    1. By default, the existing tailwind.css file will be used in the theme but if you want to play around with tailwind then follow the steps mentioned below
    2. There are two config files for tailwind located in assets/csss/tailwind directory
      1. For dev run npm run dev -> This generates all the possible CSS classes from tailwind. Some may still be left out
      2. For prod run npm run prod -> This generates only the CSS classes from tailwind that you are using in the theme
  3. hugo new site <SITE_NAME>
  4. cd <SITE_NAME>
  5. git submodule add [email protected]:techbarrack/terminal-hugo-theme.git themes/terminal
  6. Replace the contents of <SITE_NAME>/hugo.yaml with <SITE_NAME>/themes/terminal/hugo.yaml
  7. In the root directory of the hugo site, create the directory: mkdir -p layouts/partials/third_party_js. This directory is to store any sort of third party javascript like google analytics, disqus, etc
  8. Run the website hugo server --buildDrafts --disableFastRender --gc --ignoreCache --noHTTPCache --forceSyncStatic --verbose -w

Modifying the Contents

  1. Uncomment the ignoreFiles attribute in <SITE_NAME>/hugo.yaml
  2. Start adding the files in <SITE_NAME>/content by replicating what is present in <SITE_NAME>/themes/terminal/content
  3. Update the meta content in head.html

Third Party JS

  1. Create partials in <SITE_NAME>/layouts/partials/third_party_js/<FILE>.html
  2. All the files in third_party_js folder will get included before </body> tag

Shortcodes

  • {{< svg logo="blah" >}} -> Use the following code to add svg in markdown files
    1. Add svg as .html file in layouts/content/svg
  • Raw HTML
{{< rawhtml >}}
  <div>This is raw HTML content</div>
{{< /rawhtml >}}

References

Some reference links for additional info on how to do things in Hugo:

terminal-hugo-theme's People

Contributors

nayanseth avatar

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.