Skip to content

Commit 5148477

Browse files
committed
add icons and reorder pages on sidebar
1 parent 64f3706 commit 5148477

File tree

13 files changed

+455
-21
lines changed

13 files changed

+455
-21
lines changed

_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permalink: pretty
99
title: MDAnalysis
1010
name: MDAnalysis
1111
tagline: molecular simulations data analysis
12-
description: working with data in the molecular sciences
12+
description: working with data in molecular sciences
1313
# long_description is not currently used by the theme
1414
long_description: |
1515
MDAnalysis is a Python library which enables the handling and
@@ -40,8 +40,8 @@ plugins:
4040
- jekyll-feed
4141

4242
# Blog pagination
43-
paginate_path: "/blog/page:num/"
44-
paginate: 3
43+
paginate_path: "/pages/blog/page:num/"
44+
paginate: 12
4545

4646
# jekyll-feed
4747
# - our previous feed was called atom.xml so we use it instead

_includes/head.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@
3939
anchors.add('h1, h2, h3, h4, h5, h6');
4040
});
4141
</script>
42+
43+
<!-- FontAwesome Icons -->
44+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
45+
4246
</head>

_includes/sidebar.html

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,29 @@ <h1>
99
<p class="lead">{{ site.description }}</p>
1010
</div>
1111

12-
<div id="docsearch">Enable javascript for search.</div>
13-
12+
<!-- Social Media Icons -->
13+
<div class="sidebar-social-icons">
14+
<a href="https://www.linkedin.com/company/mdanalysis/" target="_blank" title="LinkedIn">
15+
<i class="fab fa-linkedin"></i>
16+
</a>
17+
<a href="https://bsky.app/profile/mdanalysis.bsky.social" target="_blank" title="Bluesky">
18+
<img src="{{ site.baseurl }}/public/images/bluesky.svg" width="24" height="24" alt="Bluesky">
19+
</a>
20+
<a href="https://discord.com/invite/fXTSfDJyxE" target="_blank" title="Discord">
21+
<i class="fab fa-discord"></i>
22+
</a>
23+
<a href="https://github.com/MDAnalysis/mdanalysis" target="_blank" title="GitHub">
24+
<i class="fab fa-github"></i>
25+
</a>
26+
</div>
27+
28+
<!-- Search Bar -->
29+
<div class="sidebar-search">
30+
<div class="sidebar-search-box">
31+
<div id="docsearch">Enable javascript for search.</div>
32+
</div>
33+
</div>
34+
1435
<nav class="sidebar-nav">
1536
{% assign site_base_url = site.baseurl | append: "/" %}
1637
<a class="sidebar-nav-item{% if page.url == site_base_url %} active{% endif %}" href="{{ site.baseurl }}/">Home</a>
@@ -24,21 +45,15 @@ <h1>
2445
{% assign blogpagedir_len = blogpagedir | size %}
2546
{% assign pages_list = site.pages | sort: "order" %}
2647
{% for node in pages_list %}
27-
{% if node.title != null %}
28-
{% if node.layout == "page" %}
29-
{% assign prefix = node.url | truncate: blogpagedir_len, '' %}
48+
{% if node.title != null%}
49+
{% if node.layout == "page"%}
50+
{% assign prefix = node.url | truncate: blogpagedir_len, '' %}
3051
{% if prefix != blogpagedir %}
3152
<a class="sidebar-nav-item{% if page.url == node.url %} active{% endif %}" href="{{ node.url }}">{{ node.title }}</a>
3253
{% endif %}
3354
{% endif %}
3455
{% endif %}
3556
{% endfor %}
36-
37-
<a class="sidebar-nav-item" href="{{ site.docs.userguide.url }}">User Guide</a>
38-
<a class="sidebar-nav-item" href="{{ site.docs.mdanalysis.url }}">Docs</a>
39-
<a class="sidebar-nav-item" href="{{ site.pypi.package }}">Download</a>
40-
<a class="sidebar-nav-item" href="{{ site.github.repo }}">GitHub project</a>
41-
<a class="sidebar-nav-item" href="{{ site.twitter.url }}">@{{ site.twitter.name }}</a>
4257
</nav>
4358

4459
<p>&copy; {{ site.time | date: '%Y' }}. All rights reserved.</p>

_posts/2022-11-07-relicensing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,4 +203,4 @@ fiscal sponsor, [NumFOCUS][].
203203
[contributors]: https://github.com/MDAnalysis/mdanalysis/blob/develop/package/AUTHORS
204204
[faq wiki]: https://github.com/MDAnalysis/mdanalysis/wiki/GPLv2--to-LGPLv3--relicensing-summary-and-FAQ
205205
[NumFOCUS]: https://www.numfocus.org
206-
[Core Developers]: {% link about.md %}#mdanalysis-core-developers
206+
[Core Developers]: {% link pages/about.md %}#mdanalysis-core-developers

_posts/2023-09-22-licensing-update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,4 @@ an advised fund of Silicon Valley Community Foundation (funder DOI 10.13039/1000
324324
[consultation]: {{ site.baseurl }}{% post_url 2022-11-07-relicensing %}#consultation-period-7th-november-until-5th-december-2022
325325
[release 2.6]: {{ site.baseurl }}{% post_url 2023-09-02-release-2.6.1 %}
326326
[release 2.5]: {{ site.baseurl }}{% post_url 2023-06-05-releases-2.4.x-2.5.0 %}
327-
[Core Developers]: {% link about.md %}#mdanalysis-core-developers
327+
[Core Developers]: {% link pages/about.md %}#mdanalysis-core-developers

_posts/2023-10-25-towards_3.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ If you have any feedback on this roadmap or would like to discuss our future pla
6464

6565
– Hugo MacDermott-Opeskin on behalf of the MDAnalysis [Core Developers][]
6666

67-
[Core Developers]: {{ site.baseurl }}{% link about.md %}#mdanalysis-core-developers
67+
[Core Developers]: {{ site.baseurl }}{% link pages/about.md %}#mdanalysis-core-developers
6868
[Discord]: {{ site.discord.url }}
6969
[distopia]: https://github.com/MDAnalysis/distopia
7070
[EOSS4]: {{ site.baseurl }}{% post_url 2021-08-31-CZI-EOSS4 %}

0 commit comments

Comments
 (0)