Hugo-theme-zzo: [Feature] Showcase section should allow generic card

Created on 16 Feb 2020  路  4Comments  路  Source: zzossig/hugo-theme-zzo

I am trying to add patents to my showcase section.

Screenshot from 2020-02-16 01-29-30

Notice that this is not code, so </> Patents is wrong with </>.
Also Repository is also wrong as text with github icon in this context.

Suggestion:
There are two more fields in the meta data part for the page:

  • download: This will be a simple download link. People can use it for any generic download link. Probably will also have a generic download file icon.
  • _index.md for category i.e Patents/_index.md has type as metadata. Type can be

    • Code

    • Generic

Thoughts?

enhancement

Most helpful comment

I added categoryIcon front-matter in _index.md file.

showcase/hugo/_index.md

---
title: "Hugo"
date: 2020-01-19T21:04:11+09:00
description: Hugo theme collection
category: theme
categoryIcon: 'code'
enableBio: false
---

Possible categoryIcon value: author book certificate code download github reviewer
default value is code

Also, I added option for links

In your md file e.g: showcase/hugo/hugo-theme-zzo.md

...
links:
- name: download
  icon: download
  link: https://github.com/gohugoio/hugo/releases/download/v0.64.1/hugo_extended_0.64.1_Windows-64bit.zip
- name:
  icon:
  link:
...

The possible icon would be same as above.

All 4 comments

Another category I have is Books.
These can have 2 kinds:

  • Reviewer
  • Author

Hello!馃構
I think it's a good feature to have!
I'll make it anyway.
And then can talk to improve it

I added categoryIcon front-matter in _index.md file.

showcase/hugo/_index.md

---
title: "Hugo"
date: 2020-01-19T21:04:11+09:00
description: Hugo theme collection
category: theme
categoryIcon: 'code'
enableBio: false
---

Possible categoryIcon value: author book certificate code download github reviewer
default value is code

Also, I added option for links

In your md file e.g: showcase/hugo/hugo-theme-zzo.md

...
links:
- name: download
  icon: download
  link: https://github.com/gohugoio/hugo/releases/download/v0.64.1/hugo_extended_0.64.1_Windows-64bit.zip
- name:
  icon:
  link:
...

The possible icon would be same as above.

Awesome :rocket: This works perfectly. Thank you :smile:

Was this page helpful?
0 / 5 - 0 ratings