Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,179 changes: 0 additions & 5,179 deletions _includes/_whatsnew/whats-new.md

This file was deleted.

62 changes: 57 additions & 5 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,63 @@
toggle sidebar
</button>

<header class="post-header">
{%unless page.no-header %}
<h2 class="post-title{% if page.section_id %} section-anchor{% endif %}"{% if page.section_id %} id="{{ page.section_id }}"{% endif %}>{{ page.title }}{% if page.section_id %}{% include _help/section_anchor_link.html id=page.section_id %}{% endif %}</h2>
{% endunless %}
</header>
<div class="row justify-content-between">
<div class="col-xs-8">
<header class="post-header">
{%unless page.no-header %}
<h2
class="post-title{% if page.section_id %} section-anchor{% endif %}"
{%
if
page.section_id
%}
id="{{ page.section_id }}"
{%
endif
%}
>
{{ page.title }}{% if page.section_id %}{% include
_help/section_anchor_link.html id=page.section_id %}{% endif %}
</h2>
{% endunless %}
</header>
</div>

{% if page["by-year"] %} {% assign posts = site.categories[page.category]
| sort: "date" | reverse %} {% if page.date %} {% assign selected_year =
page.date | date: "%Y" %} {% else %} {% assign selected_year =
posts.first.date | date: "%Y" %} {% endif %}

<div class="col-xs-4 text-right">
<label for="yearDropdown">Browse by year:</label>

<div class="dropdown year-dropdown">
<button
class="btn btn-default dropdown-toggle"
type="button"
id="yearDropdown"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
{{ selected_year }}
<span class="caret"></span>
</button>

<ul
class="dropdown-menu dropdown-menu-right"
aria-labelledby="yearDropdown"
>
{% for post in posts %}
<li>
<a href="{{ post.url }}"> {{ post.date | date: "%Y" }} </a>
</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
</div>

<article class="post-content">{{ content }}</article>
</div>
Expand Down
62 changes: 57 additions & 5 deletions _layouts/post_scix.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,63 @@
toggle sidebar
</button>

<header class="post-header">
{%unless page.no-header %}
<h2 class="post-title{% if page.section_id %} section-anchor{% endif %}"{% if page.section_id %} id="{{ page.section_id }}"{% endif %}>{{ page.title }}{% if page.section_id %}{% include _help/section_anchor_link.html id=page.section_id %}{% endif %}</h2>
{% endunless %}
</header>
<div class="row justify-content-between">
<div class="col-xs-8">
<header class="post-header">
{%unless page.no-header %}
<h2
class="post-title{% if page.section_id %} section-anchor{% endif %}"
{%
if
page.section_id
%}
id="{{ page.section_id }}"
{%
endif
%}
>
{{ page.title }}{% if page.section_id %}{% include
_help/section_anchor_link.html id=page.section_id %}{% endif %}
</h2>
{% endunless %}
</header>
</div>

{% if page["by-year"] %} {% assign posts = site.categories[page.category]
| sort: "date" | reverse %} {% if page.date %} {% assign selected_year =
page.date | date: "%Y" %} {% else %} {% assign selected_year =
posts.first.date | date: "%Y" %} {% endif %}

<div class="col-xs-4 text-right">
<label for="yearDropdown">Browse by year:</label>

<div class="dropdown year-dropdown">
<button
class="btn btn-default dropdown-toggle"
type="button"
id="yearDropdown"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>
{{ selected_year }}
<span class="caret"></span>
</button>

<ul
class="dropdown-menu dropdown-menu-right"
aria-labelledby="yearDropdown"
>
{% for post in posts %}
<li>
<a href="{{ post.url }}"> {{ post.date | date: "%Y" }} </a>
</li>
{% endfor %}
</ul>
</div>
</div>
{% endif %}
</div>

<article class="post-content">{{ content }}</article>
</div>
Expand Down
1 change: 1 addition & 0 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ pre code {
h3[id],
h4[id] {
scroll-margin-top: 5rem;
margin-bottom: 2rem;
}

.section-anchor-link {
Expand Down
5 changes: 5 additions & 0 deletions help/common/css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4285,3 +4285,8 @@ $nav-text-color: $text-color;
}

//==== end of flyer =====================

.year-dropdown {
margin-top: 27px;
display: inline-block;
}
Loading