|
36 | 36 | <meta name="twitter:description" content="{{ social_description | escape }}"> |
37 | 37 | <meta name="twitter:image" content="{{ social_image }}"> |
38 | 38 |
|
39 | | - <link rel="alternate" type="application/atom+xml" title="DocumentDB Blog" href="{{ '/feed.xml' | relative_url }}"> |
40 | | - <link rel="stylesheet" href="{{ '/assets/blog.css' | relative_url }}"> |
| 39 | + <link rel="alternate" type="application/atom+xml" title="DocumentDB Blog" href="{{ '/blogs/feed.xml' | relative_url }}"> |
| 40 | + <link rel="stylesheet" href="{{ '/blogs/assets/blog.css' | relative_url }}"> |
41 | 41 | </head> |
42 | 42 | <body> |
43 | | - {% assign blog_base = site.baseurl %} |
44 | | - {% assign blog_base_last = blog_base | slice: -1, 1 %} |
45 | | - {% if blog_base_last == '/' %}{% assign blog_base_end = blog_base | size | minus: 1 %}{% assign blog_base = blog_base | slice: 0, blog_base_end %}{% endif %} |
46 | | - {% assign site_root = blog_base %} |
47 | | - {% assign blogs_at = blog_base | size | minus: 6 %} |
48 | | - {% if blogs_at >= 0 %}{% assign blogs_tail = blog_base | slice: blogs_at, 6 %}{% if blogs_tail == '/blogs' %}{% assign site_root = blog_base | slice: 0, blogs_at %}{% endif %}{% endif %} |
49 | | - {% if site_root == '' %} |
50 | | - {% assign site_root = '/' %} |
51 | | - {% endif %} |
52 | | - |
53 | | - {% assign home_href = site_root | append: '/' | replace: '//', '/' %} |
54 | | - {% assign docs_href = site_root | append: '/docs' | replace: '//', '/' %} |
55 | | - {% assign packages_href = site_root | append: '/packages' | replace: '//', '/' %} |
56 | | - {% assign operator_href = site_root | append: '/kubernetes-operator' | replace: '//', '/' %} |
57 | | - {% assign logo_href = site_root | append: '/images/DocumentDB Logo - background removed.png' | replace: '//', '/' %} |
58 | | - {% assign blogs_href = site.baseurl | append: '/' | replace: '//', '/' %} |
| 43 | + {% assign home_href = '/' | relative_url %} |
| 44 | + {% assign docs_href = '/docs' | relative_url %} |
| 45 | + {% assign packages_href = '/packages' | relative_url %} |
| 46 | + {% assign operator_href = '/kubernetes-operator' | relative_url %} |
| 47 | + {% assign logo_href = '/images/DocumentDB Logo - background removed.png' | relative_url %} |
| 48 | + {% assign blogs_href = '/blogs/' | relative_url %} |
| 49 | + {% assign announcements_href = '/announcements/' | relative_url %} |
| 50 | + {% assign current_section = page.section | default: 'blogs' %} |
59 | 51 |
|
60 | 52 | {% capture nav_links %} |
61 | 53 | <a href="{{ home_href }}">Home</a> |
|
65 | 57 | <a href="{{ packages_href }}">Download</a> |
66 | 58 | <a href="https://github.com/Azure/documentdb-agent-kit" target="_blank" rel="noopener noreferrer">Agent-Kit</a> |
67 | 59 | <a href="{{ operator_href }}">K8s Operator</a> |
68 | | - <a href="{{ blogs_href }}" aria-current="page">Blogs</a> |
| 60 | + <a href="{{ announcements_href }}"{% if current_section == 'announcements' %} aria-current="page"{% endif %}>Announcements</a> |
| 61 | + <a href="{{ blogs_href }}"{% if current_section == 'blogs' %} aria-current="page"{% endif %}>Blogs</a> |
69 | 62 | {% endcapture %} |
70 | 63 |
|
71 | | - {% assign release_page_href = site_root | append: '/v1/' | replace: '//', '/' %} |
| 64 | + {% assign release_page_href = '/v1/' | relative_url %} |
72 | 65 | <div class="site-shell"> |
73 | 66 | <a class="release-bar" href="{{ release_page_href }}"> |
74 | 67 | <span class="release-bar__badge">New</span> |
|
0 commit comments