Page MenuHomeFreeBSD

website: Fix contributing article footer link
ClosedPublic

Authored by ziaee on Mon, May 18, 2:23 PM.
Tags
None
Referenced Files
F157538757: D57064.id178009.diff
Fri, May 22, 2:17 PM
Unknown Object (File)
Fri, May 22, 3:24 AM
Unknown Object (File)
Thu, May 21, 11:00 PM
Unknown Object (File)
Thu, May 21, 1:36 AM
Unknown Object (File)
Wed, May 20, 2:25 PM
Unknown Object (File)
Tue, May 19, 4:23 AM
Unknown Object (File)
Mon, May 18, 4:14 PM
Subscribers
None

Details

Summary

I know this is not the correct fix, but this is what's broken.

Reported by: debg

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ziaee requested review of this revision.Mon, May 18, 2:23 PM
ziaee created this revision.

Do it like this by now, we will think in a final solution later

This revision is now accepted and ready to land.Wed, May 20, 6:04 AM
This revision was automatically updated to reflect the committed changes.

I propose to use the same link, as "Documentation" item in th top menu (website/themes/layouts/_partials/site-header.html)
On the top of the page:
{{ $currentLang := $.Site.Language.Lang }}

link in site-header:
<a href="{{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/articles" }}">{{ i18n "h-articles" }}</a>

Proposed link text:
<a href="{{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/articles/contributing" }}" class="column-element">{{ i18n "f-get-involved" }}</a>

All languages have contributing article (en, ru, zh-tw)

I propose to use the same link, as "Documentation" item in th top menu (website/themes/layouts/_partials/site-header.html)
On the top of the page:
{{ $currentLang := $.Site.Language.Lang }}

link in site-header:
<a href="{{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/articles" }}">{{ i18n "h-articles" }}</a>

Proposed link text:
<a href="{{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/articles/contributing" }}" class="column-element">{{ i18n "f-get-involved" }}</a>

All languages have contributing article (en, ru, zh-tw)

If that will work, please go for it! I tried to use the printf initially but I didn't get the syntax correct.

I propose to use the same link, as "Documentation" item in th top menu (website/themes/layouts/_partials/site-header.html)
On the top of the page:
{{ $currentLang := $.Site.Language.Lang }}

link in site-header:
<a href="{{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/articles" }}">{{ i18n "h-articles" }}</a>

Proposed link text:
<a href="{{ printf "%s%s%s" "https://docs.FreeBSD.org/" $currentLang "/articles/contributing" }}" class="column-element">{{ i18n "f-get-involved" }}</a>

All languages have contributing article (en, ru, zh-tw)

If that will work, please go for it! I tried to use the printf initially but I didn't get the syntax correct.

Let my try. I just copied the syntax from other page. If it works, I will commit it, it is just a broken link.