Skip to content

Commit 549bfb4

Browse files
orbeckstrichardjgowers
authored andcommitted
empty site.baseurl and no trailing slashes in site.images, site.blog
- see #16 (comment) for comments - fixed _posts where trailing slash was needed - fixed blog layout where trailing slash in site.blog was needed
1 parent 775b939 commit 549bfb4

8 files changed

+15
-15
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# MDAnalysis Web Site
22

3-
The home page [www.mdanalysis.org](http://www.mdanalysis.org) is maintained as
3+
The home page [www.mdanalysis.org](https://www.mdanalysis.org) is maintained as
44
a [GitHub pages](https://pages.github.com) site. The home page is also
5-
accessible as [mdanalysis.github.io](http://mdanalysis.github.io).
5+
accessible as [mdanalysis.github.io](https://mdanalysis.github.io).
66

77

8-
## Blog [blog.mdanalysis.org](http://blog.mdanalysis.org)
8+
## Blog [blog.mdanalysis.org](https://blog.mdanalysis.org)
99

1010
Check out the repository, edit the pages under `_posts`, and push
1111
commits. The published pages are on the *master* branch.
@@ -66,13 +66,13 @@ including MathJax.
6666
Drop images into the `public/images` directory and include them like
6767

6868
```html
69-
<img src="{{site.images}}imagename.png"
69+
<img src="{{site.images}}/imagename.png"
7070
style="float: right" alt="alternative text" width="30%"/>
7171
```
7272

7373
or use Markdown
7474
```markdown
75-
![alternative text]({{site.images}}imagename.png)
75+
![alternative text]({{site.images}}/imagename.png)
7676
```
7777

7878

_config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ author:
1919
url: https://twitter.com/mdanalysis
2020
email: mdnalysis-devel@googlegroups.com
2121

22-
images: /public/images/
22+
images: /public/images
2323
data: /public/data
2424
js: /js
25-
blog: /blog/
25+
blog: /blog
2626

2727
# see https://help.github.com/articles/adding-jekyll-plugins-to-a-github-pages-site/
2828
gems:

_posts/2015-12-15-The_benefit_of_social_coding.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ possibly gain?
1919

2020
In turns out, a lot.
2121

22-
<img src="{{site.images}}mdanalysis_history_small.png"
22+
<img src="{{site.images}}/mdanalysis_history_small.png"
2323
style="center" alt="MDAnalysis commit history (Jan 2008 to Sept 2015)"
2424
width="100%"/>
2525

_posts/2017-03-01-numfocus.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: post
33
title: MDAnalysis is a NumFOCUS affiliated project
44
---
55
<img
6-
src="{{site.images}}numfocus.png"
6+
src="{{site.images}}/numfocus.png"
77
title="NumFOCUS Foundation" alt="NumFOCUS Foundation"
88
style="float: right; width: 10em;" />
99

_posts/2017-03-02-gsoc2017.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Google Summer of Code 2017
55

66
<p>
77
<img
8-
src="{{site.images}}numfocus.png"
8+
src="{{site.images}}/numfocus.png"
99
title="NumFOCUS Foundation" alt="NumFOCUS Foundation"
1010
style="float: right; width: 10em;" />
1111

_posts/2017-06-03-numfocus-grant.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: post
33
title: NumFOCUS small grant for Python 3 support
44
---
55
<img
6-
src="{{site.images}}numfocus.png"
6+
src="{{site.images}}/numfocus.png"
77
title="NumFOCUS Foundation" alt="NumFOCUS Foundation"
88
style="float: right; width: 10em;" />
99

_posts/2018-02-14-gsoc2018.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Google Summer of Code 2018
55

66
<p>
77
<img
8-
src="{{site.images}}numfocus.png"
8+
src="{{site.images}}/numfocus.png"
99
title="NumFOCUS Foundation" alt="NumFOCUS Foundation"
1010
style="float: right; width: 10em;" />
1111

blog/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ <h1 class="post-title">
2121

2222
<div class="pagination">
2323
{% if paginator.next_page %}
24-
<a class="pagination-item older" href="{{site.blog}}page{{paginator.next_page}}">Older</a>
24+
<a class="pagination-item older" href="{{site.blog}}/page{{paginator.next_page}}">Older</a>
2525
{% else %}
2626
<span class="pagination-item older">Older</span>
2727
{% endif %}
2828
{% if paginator.previous_page %}
2929
{% if paginator.page == 2 %}
30-
<a class="pagination-item newer" href="{{site.blog}}">Newer</a>
30+
<a class="pagination-item newer" href="{{site.blog}}/">Newer</a>
3131
{% else %}
32-
<a class="pagination-item newer" href="{{site.blog}}page{{paginator.previous_page}}">Newer</a>
32+
<a class="pagination-item newer" href="{{site.blog}}/page{{paginator.previous_page}}">Newer</a>
3333
{% endif %}
3434
{% else %}
3535
<span class="pagination-item newer">Newer</span>

0 commit comments

Comments
 (0)