gethugothemes / dot-hugo

Dot - Hugo Documentation Theme
https://gethugothemes.com/products/dot/?utm_source=dot_github&utm_medium=referral&utm_campaign=github_theme_about
MIT License
260 stars 148 forks source link

Export an article to pdf #168

Closed Idadelveloper closed 3 years ago

Idadelveloper commented 3 years ago

This PR addresses #167 by @jwflory.

somratpro commented 3 years ago

Hello @Idadelveloper

Thanks for your contribution, It would be great if you add an option to the config.toml file, so if anyone wants this feature, then he/she can enable it from the config file, otherwise, we don't want to add extra two scripts to slow down this theme loading time. thank you

Idadelveloper commented 3 years ago

@somratpro I added a new taxonomy for the download button in my config.toml file. eg downloadable = "downloadBtn" When this downloadBtn is added in the front matter of any of the content files, it will be displayed. eg downloadBtn: "true" Adding it to the archetypes and setting it to false by default be awesome. What do you think?

somratpro commented 3 years ago

thank you