Skip to content

Commit fc288ba

Browse files
authored
Merge pull request #136 from nginx/version-link-to-announce
link version to announcement
2 parents b131b04 + 29392b3 commit fc288ba

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

source/theme/layout.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ <h1>
109109
{%- if pagename != "index" %}
110110
</a>
111111
{%- endif %}
112-
<div title="Released on {{release_date}}">v. {{version}}</div>
112+
{% set release_year = release_date.split(',')[1].strip() %}
113+
<div id="version_link" title="Released on {{release_date}}">
114+
<a style="text-decoration:none;" href="{{ pathto('news') }}{{release_year}}/unit-{{version}}-released/">v. {{version}}</a>
115+
</div>
113116
</h1>
114117
{{ toctree(maxdepth = 4) }}
115118
</div>

source/theme/static/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ pre {
1313
a {
1414
color: #333;
1515
}
16+
#version_link a {
17+
color: #333;
18+
}
1619
a:hover {
1720
text-decoration: none;
1821
}
@@ -781,6 +784,9 @@ iframe {
781784
a {
782785
color: #8cb4ff;
783786
}
787+
#version_link a {
788+
color: #cbd5e1;
789+
}
784790
#content .literal,
785791
#content span.option {
786792
background: #343434;

0 commit comments

Comments
 (0)