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

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

Merged
merged 1 commit into from
May 15, 2024

Conversation

Spirit532
Copy link

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``

…tra email page

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 ``domain at domain dot tld``.
@Spirit532 Spirit532 changed the title Add option to not open the socials link on a new page, i.e. for an ex… Add option to not open the socials link on a new page Apr 9, 2024
@rhazdon rhazdon merged commit b607c4c into rhazdon:master May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants