Giter Club home page Giter Club logo

showcase-hugo-theme's Introduction

Showcase theme for Hugo

Latest Release Showcase hugo theme Hugo generator

Showcase is a minimal, single page theme for Hugo

Preview

Preview Dark

Features:

  • Auto-generated menu
  • Responsive content
  • Filtering content
  • Social links
  • Custom menu
  • Darkmode

Get the theme

Run from the root of your Hugo site:

git clone https://github.com/apvarun/showcase-hugo-theme.git themes/showcase

Alternatively, you can include this repository as a git submodule. This makes it easier to update this theme if you have your Hugo site in git as well:

git submodule add https://github.com/apvarun/showcase-hugo-theme.git themes/showcase

Preview the theme with example content

Showcase theme ships with an fully configured example site. For a quick preview:

Copy the package.json file from themes/showcase folder to your hugo website root folder, and run npm install.

cd themes/showcase/exampleSite/
hugo serve --themesDir ../..

Then visit http://localhost:1313/ in your browser to view the example site.

Configuring theme to a hugo website

  1. Copy package.json and package-lock.json to the root folder of your the website
  2. Run npm install to install required packages for theme
  3. Run npm i -g postcss-cli to use PostCSS with Hugo build
  4. Set theme = 'showcase' in config.toml
  5. Run npm start to start your local server

Make sure to commit the above changes to your repository.

When deploying to services like Netlify or Vercel, use the following command for building your site:

npm i && hugo -D --gc

Migrating to v1.3.0

Minimum Hugo Version: 0.69.0

  • Copy the package.json file from themes/showcase folder to your hugo website root folder, and run npm install.

Add content

The following explains how to add content to your Hugo site. You can find sample content in the exampleSite/ folder.

Structure:

.
├── ...
├── projects       # Section Name
│   ├── project1   # Project 1
│   ├── project2   # Project 2
│   └── _index     # (optional) Customize section name &
│                  # default image for section contents
└── ...

Configure your site

From exampleSite/, copy config.toml to the root folder of your Hugo site and change the fields as you like. Helpful comments are provided.

Menu

Menu in Showcase theme is auto-generated from the sections inside your content folder.

Exclude Sections from Menu

It is possible to exclude sections from the auto-generated list. In order to exclude a section, create an _index.md file in that section and set the property private to true. Refer example index file.

Custom Menu

You can also add a custom menu item using the config.toml and disable auto-generated sections if not required. Refer config in exampleSite

Dark mode

In order to enable darkmode toggle in your side, set the params.darkMode property to true in your config.toml.

Google Analytics

Set googleAnalytics in config.toml to activate Hugo's internal Google Analytics template.

Used By

Issues

If you have a question, please open an issue for help and to help those who come after you. The more information you can provide, the better!

Contributing

Contributions are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

Licensed under MIT

Acknowledgements

Madhu Akula

showcase-hugo-theme's People

Contributors

apvarun avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

showcase-hugo-theme's Issues

Change logo

How can I change the logo with my own logo? Can find it how to change this.

markdown headings looks like normal text

Dear author:

I love this Hugo theme you made. but I run into a problem.
If I use markdown headings in any post, it looks like normal text.
View html source, I figure out it is correctly translated to html like H1 tag.
Should I look for any css problem?

Thanks for you work and contribution to oss community.

change logo ?

Hi thanks for your job !
I have an question about this theme, it's possible to change the logo ?

Hide categories from menu

Would be nice if one could add some pages to a folder that does not get added to the menu automatically. Just for some basic static content like an "about me" page or so.

Thanks!

Pagination?

Right now it just adds more and more entries. Would be nice if there was some pagination support. Thanks!

Search bar for searching across content

It would be really great to see if we can search across the content via search bar. As this is a SPA with lot of content it would be much efficient for users.

CSS Error?

Just updated to v1.3.0 on Windows 10, after building the page it throws an error:

PS D:\ProjectDir> hugo serve
Start building sites … 
hugo v0.85.0-724D5DB5 windows/amd64 BuildDate=2021-07-05T10:46:28Z VendorInfo=gohugoio
Error: Error building site: POSTCSS: failed to transform "css/main.css" (text/css). Check your PostCSS installation; install with "npm install postcss-cli". See https://gohugo.io/hugo-pipes/postcss/
Built in 33 ms

Markdown not working

Hi,

Thank you for creating this theme!

I'm trying create a single page but for some reason the Markdown isn't working.
Example (london.md):

---
title: London
date: 2020-06-01
subtitle: 2020
description: "This is meta description."
image: https://source.unsplash.com/900x600/?london
draft: false
---
## Hello

## My List
* Item 1
* Item 2
* Item 3

This is how it's displayed:
Screen Shot 2021-05-27 at 10 14 30 PM

I'm new to Hugo so apologies if this is something obvious!

Going to "About" breaks filter links

Steps to reproduce

  1. Click About
  2. Click any of the filter links

Expected behaviour

Going back to the home page and loading the appropriate filter

Actual behaviour

Nothing happens

Possible to remove the 's'

Is it possible to remove the 's' in the Automenu function?
So that the theme does not generate from security to securities.

[Feature request] Dark mode

I love this theme and I think it'd look really great with a dark mode! Would this be difficult to implement?

Option "multipage = false" is not working properly

Hi,

When the option "multipage" is set to "false", the menu filter is not working. If a menu is clicked it just changes the URL to /# In the old version of the theme, the /# is not added and filter works.

I tested it with the "exampleSite" folder as well, the result is the same.

Theme version -- not sure but my latest pull was 2021-07-06 (my last pull before today was sometime 2021 April or May).
Hugo version -- v0.85.0-extended.

Thank you.

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.