[social] add rel=me

This commit is contained in:
Andrea 2021-12-16 13:23:01 +01:00
parent 1f6c350343
commit 714460917a
2 changed files with 7 additions and 3 deletions

View File

@ -21,7 +21,7 @@
</nuxt-link> </nuxt-link>
</li> </li>
<li v-for="link in links" :key="link.url" class="mb-2"> <li v-for="link in links" :key="link.url" class="mb-2">
<a :href="link.url"> <a :href="link.url" target="_blank" rel="me">
<Icon :v="link.icon" :set="link.iconSet || 'l'"/> <Icon :v="link.icon" :set="link.iconSet || 'l'"/>
{{link.headline}} {{link.headline}}
</a> </a>
@ -33,7 +33,7 @@
</p> </p>
<ul class="list-unstyled mb-4"> <ul class="list-unstyled mb-4">
<li v-for="link in supportLinks" :key="link.url" class="mb-2"> <li v-for="link in supportLinks" :key="link.url" class="mb-2">
<a :href="link.url"> <a :href="link.url" target="_blank" rel="me">
<Icon :v="link.icon" :set="link.iconSet || 'l'"/> <Icon :v="link.icon" :set="link.iconSet || 'l'"/>
{{link.headline}} {{link.headline}}
</a> </a>
@ -104,6 +104,10 @@
<EasterEgg/> <EasterEgg/>
</div> </div>
</footer> </footer>
<div v-else>
<a :href="link.url" v-for="link in links" :key="link.url" target="_blank" rel="me">&nbsp;</a>
<a v-for="link in supportLinks" :key="link.url" :href="link.url" target="_blank" rel="me">&nbsp;</a>
</div>
</template> </template>
<script> <script>

View File

@ -85,7 +85,7 @@ function* getLink(links, feature, locale) {
for (let key in featureLinks) { for (let key in featureLinks) {
if (!featureLinks.hasOwnProperty(key)) { continue; } if (!featureLinks.hasOwnProperty(key)) { continue; }
let [, localesAllowed] = key.split('_'); let [, localesAllowed] = key.split('_');
if (localesAllowed === undefined || localesAllowed.split(',').includes(locale)) { if (localesAllowed === undefined || locale === '_' || localesAllowed.split(',').includes(locale)) {
yield featureLinks[key]; yield featureLinks[key];
} }
} }