mrfdn.com – Hugo memiliki beberapa fungsi yang dapat digunakan untuk merender halaman yang diinginkan.
Salah satunya adalah fungsi if Dan isset Yang bisa dilakukan dengan syarat.
Daripada melakukan pengkondisian sederhana seperti menampilkan deskripsi atau ringkasan di Hugo
Pada artikel ini saya ingin menunjukkan bagaimana saya menggunakan fungsi if isset untuk merender taksonomi yang namanya telah kuberikan kata kunci Dan menandaiDi mana saya mengatur tag dan kata kunci ini di bagian frontmatter file artikel.md saya.
keyword:
- keyword1
- keyword 2
tags:
- tag 1
- tag 2
Kode ini biasanya digunakan dalam file single.html milik Hugo untuk merender tag.
{{ if isset .Params "keyword" }}
{{ range .GetTerms "keyword" }}
<a class="" href="{{ .Permalink }}">{{ .LinkTitle }}</a>
{{ end }}
{{ else }}
{{ range .GetTerms "tags" }}
<a class="" href="{{ .Permalink }}">{{ .LinkTitle }}</a>
{{ end }}
{{ end }}
Penjelasan kode diatas#
Kode di atas akan dirender Hanya daftar kata kunci Jika ada di artikel dan tidak dapat dirender menandaiNamun jika tidak ada kata kunci Kemudian itu akan dirender menandai hanya
Mungkin ada di antara teman-teman yang punya sedikit trik, bagikan di kolom komentar di bawah.
PakarPBN
A Private Blog Network (PBN) is a collection of websites that are controlled by a single individual or organization and used primarily to build backlinks to a “money site” in order to influence its ranking in search engines such as Google. The core idea behind a PBN is based on the importance of backlinks in Google’s ranking algorithm. Since Google views backlinks as signals of authority and trust, some website owners attempt to artificially create these signals through a controlled network of sites.
In a typical PBN setup, the owner acquires expired or aged domains that already have existing authority, backlinks, and history. These domains are rebuilt with new content and hosted separately, often using different IP addresses, hosting providers, themes, and ownership details to make them appear unrelated. Within the content published on these sites, links are strategically placed that point to the main website the owner wants to rank higher. By doing this, the owner attempts to pass link equity (also known as “link juice”) from the PBN sites to the target website.
The purpose of a PBN is to give the impression that the target website is naturally earning links from multiple independent sources. If done effectively, this can temporarily improve keyword rankings, increase organic visibility, and drive more traffic from search results.