rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.47k stars 784 forks source link

Add option to not open the socials link on a new page #468

Closed Spirit532 closed 6 months ago

Spirit532 commented 7 months ago

I've added a nonewpage parameter to social links to avoid popping them open on a new page. This is useful, for example, for adding an email page that is resistant to scraping.

As an example:

[[params.social]]
  name = "email"
  url  = "/email"
  nonewpage = true

Where /email.md is a page that says something like

+++
title = 'Want to email me?'
+++

The address is ``this domain`` at ``this domain`` dot ``this tld``