# Render-link.html help need

**URL:** <https://discourse.gohugo.io/t/render-link-html-help-need/30006>\
**Category:** support\
**Created:** [December 15, 2020, 8:19am UTC](https://discourse.gohugo.io/t/render-link-html-help-need/30006 "2020-12-15T08:19:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [December 16, 2020, 7:18am UTC](https://discourse.gohugo.io/t/render-link-html-help-need/30006/3 "2020-12-16T07:18:00Z")

</div>

You could do something like

```auto
{{ $do := false }}
{{ $destination := .Destination }}
{{ $dofollow := .Page.Params.dofollow }}
{{ range $dofollow }}{{ if (in ($destination) .) }}{{ $do = true }}{{ end }}{{ end }}

{{ if (or (in (.Destination) "mydomain.com") $do ) }} 
...

```

---

_[View the full topic](https://discourse.gohugo.io/t/render-link-html-help-need/30006)._
