We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Add the following code to your module list in the config/_default/module.toml file.
config/_default/module.toml
[[imports]] path = "github.com/gethugothemes/hugo-modules/shortcodes/button"
Note: Button style comes from your existing button.scss files. If you don't have this file, you can add the following css to your main css file.
button.scss
.btn { display: inline-block; padding: 0.5em 1em; text-decoration: none; border: 1px solid transparent; } .btn-primary { background-color: #000; border-color: #000; color: #fff; } .btn-outline-primary { background-color: transparent; border-color: #000; color: #000; }
Available parameters:
label
link
style
outline
solid
class
rel
noopener
<!-- internal link --> {{< button label="contact" link="contact/" >}} <!-- external link --> {{< button label="google" link="https://google.com/" rel="nofollow noreferrer" >}}