Skip to content

Commit 70c166f

Browse files
committed
Build out sidenav, index page, and wiki layout
1 parent fa667b1 commit 70c166f

9 files changed

Lines changed: 240 additions & 78 deletions

File tree

_includes/layouts/base.njk

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<a href="#skip" class="visually-hidden">Skip to main content</a>
3838
<header class="flex-column">
3939
<div class="flex-row flex-between-start">
40-
<a id="jq-siteLogo" href="https://jquery.com/" title="jQuery Home">
40+
<a id="jq-siteLogo" href="/" title="jQuery Home">
4141
<img src="/img/logo.png" width="215" height="53" alt="jQuery: Write Less, Do More." />
4242
</a>
4343
<input class="hamburger-toggle visually-hidden" id="jq-menutoggle" type="checkbox" />
@@ -119,8 +119,19 @@
119119
</form>
120120
</div>
121121
</header>
122-
<main id="skip">
123-
{{ content | safe }}
122+
<main id="skip" class="flex-column">
123+
<h2 class="visually-hidden">Side navigation</h2>
124+
<nav id="jq-sidenav" class="flex-column white-box">
125+
<h5 class="sidenav-header">Bug Tracker</h5>
126+
<a href="https://github.com/jquery/jquery/issues/new/choose">New Ticket</a>
127+
<a href="/report">View Tickets</a>
128+
<a href="/ticketgraph">Ticket Graph</a>
129+
<a href="/roadmap">Roadmap</a>
130+
<a href="/timeline">Recent Changes</a>
131+
</nav>
132+
<div id="jq-content" class="white-box">
133+
{{ content | safe }}
134+
</div>
124135
</main>
125136
<footer>
126137
Copyright &copy; {% currentYear %}

_includes/layouts/wiki.njk

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: layouts/base.njk
3+
---
4+
5+
{%- css %}{% include "public/css/wiki.css" %}{% endcss %}
6+
7+
<div class="wiki flex-column">
8+
<div class="breadcrumbs-nav flex-row">
9+
<a href="/" class="breadcrumbs-nav-first">wiki:</a>
10+
</div>
11+
<nav class="wiki-nav">
12+
<ul class="flex-row">
13+
<li>
14+
<a href="/">Start Page</a>
15+
</li>
16+
<li>
17+
<a href="/wiki/TitleIndex">Index</a>
18+
</li>
19+
</ul>
20+
</nav>
21+
<div class="wiki-content">
22+
{{ content | safe }}
23+
</div>
24+
</div>

content/index.njk

Lines changed: 43 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,48 @@
11
---
2-
layout: layouts/base.njk
3-
eleventyNavigation:
4-
key: Home
5-
order: 1
6-
numberOfLatestPostsToShow: 3
2+
layout: layouts/wiki.njk
73
---
8-
{% set postsCount = collections.posts | length %}
9-
{% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %}
10-
<h1>Latest {{ latestPostsCount }} Post{% if latestPostsCount != 1 %}s{% endif %}</h1>
114

12-
{% set postslist = collections.posts | head(-1 * numberOfLatestPostsToShow) %}
13-
{% set postslistCounter = postsCount %}
14-
{% include "postslist.njk" %}
15-
16-
{% set morePosts = postsCount - numberOfLatestPostsToShow %}
17-
{% if morePosts > 0 %}
18-
<p>{{ morePosts }} more post{% if morePosts != 1 %}s{% endif %} can be found in <a href="/blog/">the archive</a>.</p>
19-
{% endif %}
20-
21-
{# List every content page in the project #}
22-
{#
5+
<p>
6+
Thanks for coming to report a bug or suggest a feature for jQuery! Before reporting, please take a minute to make sure this is the right place to file your issue.
7+
</p>
8+
<p>
9+
<strong>jQuery plugins:</strong> Report your bug to its author, <strong>not here</strong>.
10+
</p>
11+
<p>
12+
<strong>jQuery Core API Documentation issues:</strong> Problems with the documentation should be reported to <a class="ext-link" href="http://github.com/jquery/api.jquery.com/issues">
13+
<span class="icon">​</span>api.jquery.com GitHub repository</a>.
14+
</p>
15+
<p>
16+
<strong>jQuery web site issues:</strong> Use the trackers in the <a class="ext-link" href="http://github.com/jquery/">
17+
<span class="icon">​</span>individual repos</a> for each site by its domain name, e.g., <a class="ext-link" href="http://github.com/jquery/api.jquery.com/issues">
18+
<span class="icon">​</span>api.jquery.com</a>, <a class="ext-link" href="http://github.com/jquery/jquery.com/issues">
19+
<span class="icon">​</span>jquery.com</a>. Web site issues may also lie in <a class="ext-link" href="http://github.com/jquery/jquery-wp-content/issues">
20+
<span class="icon">​</span>jquery-wp-content</a>, and can be filed there if appropriate. If you file an web site issue in the wrong place, we will work to make sure it ends up in the right place, however the jQuery core bug tracker is <strong>not that place.</strong>
21+
</p>
22+
<p>
23+
<strong>jQuery UI (Tabs, Dialog, etc.):</strong> Use the <a class="ext-link" href="http://bugs.jqueryui.com/">
24+
<span class="icon">​</span>jQuery UI bug tracker</a>.
25+
</p>
26+
<p>
27+
<strong>jQuery Mobile:</strong> Use the <a class="ext-link" href="https://github.com/jquery/jquery-mobile/issues">
28+
<span class="icon">​</span>jQuery Mobile GitHub tracker</a>.
29+
</p>
30+
<p>
31+
<strong>jQuery core bugs only:</strong> Follow these instructions.
32+
</p>
2333
<ul>
24-
{%- for entry in collections.all %}
25-
<li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li>
26-
{%- endfor %}
34+
<li>
35+
<a class="ext-link" href="http://bugs.jquery.com/search?ticket=on">
36+
<span class="icon">​</span>Search</a> for existing similar tickets.
37+
</li>
38+
<li>Create a <strong>minimal</strong> test case on <a class="ext-link" href="http://jsfiddle.net">
39+
<span class="icon">​</span>jsfiddle.net</a> or <a class="ext-link" href="http://jsbin.com">
40+
<span class="icon">​</span>jsbin.com</a> demonstrating the issue. Remember that the team only supports the most recent versions; do not report a bug against version 1.7.2 for example.
41+
</li>
42+
<li>Read <a class="ext-link" href="http://docs.jquery.com/How_to_Report_Bugs">
43+
<span class="icon">​</span>How to Report Bugs</a> before creating a ticket.
44+
</li>
45+
<li>File your bug at the <a class="ext-link" href="https://github.com/jquery/jquery/issues">
46+
<span class="icon">​</span>jQuery Issue Tracker</a>.
47+
</li>
2748
</ul>
28-
#}

content/ticket.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ eleventyComputed:
99
permalink: /ticket/{{ ticket.id }}/
1010
---
1111

12-
{{ content | safe }}
12+
{{ content | safe }}

package-lock.json

Lines changed: 0 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,8 @@
4646
"luxon": "^3.3.0",
4747
"markdown-it-anchor": "^8.6.7",
4848
"prettier": "^2.8.8"
49+
},
50+
"overrides": {
51+
"sharp": "^0.32.1"
4952
}
5053
}

0 commit comments

Comments
 (0)