Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable 'pre' property in menu config file #381

Merged
merged 6 commits into from
Apr 29, 2023
Merged

Conversation

jaestevan
Copy link
Contributor

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:

  • Tests
  • Documentation
  • Implementation (Code and Ressources)
  • Example

Testing Checklist

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

  • Desktop Light Mode (Default)
  • Desktop Dark Mode
  • Desktop Light RTL Mode
  • Desktop Dark RTL Mode
  • Mobile Light Mode
  • Mobile Dark Mode
  • Mobile Light RTL Mode
  • Mobile Dark RTL Mode

Notify the following users

N/A

@netlify
Copy link

netlify bot commented Sep 27, 2022

Deploy Preview for anatole-demo ready!

Name Link
🔨 Latest commit 2e92ace
🔍 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
Copy link

sonarcloud bot commented Oct 15, 2022

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

@lxndrblz lxndrblz added the enhancement New feature or request label Oct 15, 2022
@sonarcloud
Copy link

sonarcloud bot commented Apr 23, 2023

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

@lxndrblz lxndrblz merged commit 6deb26e into lxndrblz:master Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants