Giter Site home page Giter Site logo

nihalsahu.net-v2's Introduction

hugo starter site

Created with help from Sebastian Pech's list of Hugo best practices.

I build lots of Hugo sites, around 3 sites per month. And I don't like the default site layout that Hugo creates when you run hugo new site. It doesn't have all the necessary elements to get started with, and has some you don't really need.

Most importantly, it's useful for a site to have placeholder posts to work with. The goal is to be able to copy the folder, open it up, and start working on design immediately. without having to worry about folder structure, necessary files, and where my stylesheets and fonts go.

Features:

  • Header and footer partials
  • Templates for single, list, taxonomy pages, that use the baseof template correctly.
  • CSS, JS, and fonts all stored within the static directory
  • Two different kinds of posts, to test different content formats
  • Dynamic social media/preview cards
  • Deafult archetype with all the essential front-matter
  • 404 page
  • RSS feed (index.xml)

Missing features:

  • Assets: If you use Hugo's assets folder and build pipelines, you can set up things like automatic image optimization and minification or stylesheets/scripts. But I don't like thinking about that stuff when I'm developing, I want the fewest possible number of folders, and the static folder is the more obvious default to put all your static files into.
  • Data: This folder usually contains a bunch of TOML/YAML/JSON files that are used to add content to certain parts of the site, without creating a separate page for them. Often unnecessary for blog-based sites. Also really simple to add if you need them.
  • Thumbnails: Hugo recommends putting thumbnail images (as well as other media files) in the same folder as a post (yes, it also recommends creating a folder for each post), which I think is way too cumbersome. Instead I just store all images in the static/media folder and add sub-folders when necessary.

nihalsahu.net-v2's People

Contributors

annihalated avatar

Watchers

 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.