lxndrblz / anatole

Anatole is a minimalistic two-column theme for Hugo.
https://themes.gohugo.io/themes/anatole/
MIT License
651 stars 363 forks source link

Enable 'pre' property in menu config file #381

Closed jaestevan closed 1 year ago

jaestevan commented 1 year ago

Description

Enables the 'pre' property while defining menus in Hugo: https://gohugo.io/content-management/menus/

Like:

[[main]]
  name = "Home"
  weight = 100
  identifier = "home"
  pre = "<i class='fa fa-house' style='padding-right:0.2em'></i>"
  url = "/"

This is a standard property that can be enabled with this minimum change

Issue Number:

None


Additional Information (Optional)

Enabling this property enables the theme to use icons in the menu if desired


Checklist

Yes, I included all necessary artefacts, including:


Testing Checklist

Yes, I ensured that all of the following scenarios were tested:


Notify the following users

N/A

netlify[bot] commented 1 year ago

Deploy Preview for anatole-demo ready!

Name Link
Latest commit 2e92ace655c6e606bad26784dd54c1120851609d
Latest deploy log https://app.netlify.com/sites/anatole-demo/deploys/6445a7968d39b30008e07d5f
Deploy Preview https://deploy-preview-381--anatole-demo.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information