Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 428da8a

Browse files
committed
Updates to werk with Jekyll 3.8.5 (latest)
1 parent 143b7cc commit 428da8a

File tree

4 files changed

+23
-26
lines changed

4 files changed

+23
-26
lines changed

‎_config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ url: //libreobjet.org # the base hostname & protocol for your site
1919
twitter_username: libreobjet
2020
github_username: libreobjet
2121

22-
# Build settings
23-
markdown: rdiscount #redcarpet #kramdown
24-
2522
exclude: ['node_modules', 'Gruntfile.js', 'package.json', '**/*.styl']
2623
keep_files: ['.git', 'README.md']
2724

‎_layouts/home.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
<div class="highlight">
88
{% if page.title %}{{ page.title }}{% else %}{{ site.moto }}{% endif %}
99
</div>
10-
{% assign object_list = (site.objects | sort: 'creation_date' | reverse ) %}
10+
{% assign object_list = site.objects | sort: 'creation_date' | reverse %}
1111
{% for object in object_list %}
1212
{% assign obj_name = object.url | split:"/" | last %}
1313
{% if obj_name != "index.html" %}
1414
<div class="object-box">
15-
{% assign t = 0 %}
15+
{% assign t = false %}
1616
{% for collection in site.collections %}
1717
{% if collection.label == 'objects' %}
1818
{% for file in collection.files %}
1919
{% assign object_folder = object.path | split:"/" %}
2020
{% assign file_folder = file.path | split:"/" %}
21-
{% if object_folder[1] == file_folder[2] %}
21+
{% if object_folder[1] == file_folder[1] %}
2222
{% assign source = file.path | remove_first:"_" %}
2323
{% assign name = source | split:"/" | last %}
2424
{% if file.extname == ".jpg" or
@@ -31,10 +31,10 @@
3131
file.extname == ".GIF" %}
3232
{% assign source_name = name | split:"." | first | downcase %}
3333
{% if source_name == "thumb" or source_name == "cover" %}
34-
{% assign t = 1 %}
34+
{% assign t = true %}
3535
<div class="object-image">
3636
<a href="{{ relative }}{{ object.url }}">
37-
<img src="{{ relative }}{{ source }}" width="500" height="auto" class="project-thumb" alt="{{ object.object_name }}">
37+
<img src="{{ relative }}/{{ source }}" width="500" height="auto" class="project-thumb" alt="{{ object.object_name }}">
3838
</a>
3939
</div>
4040
{% endif %}
@@ -43,7 +43,7 @@
4343
{% endfor %}
4444
{% endif %}
4545
{% endfor %}
46-
{% if t == 0 %}
46+
{% if t == false %}
4747
<div class="object-image noimage">
4848
</div>
4949
{% endif %}

‎_layouts/object.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{% for file in collection.files %}
1616
{% assign page_folder = page.path | split:"/" %}
1717
{% assign file_folder = file.path | split:"/" %}
18-
{% if page_folder[1] == file_folder[2] %}
18+
{% if page_folder[1] == file_folder[1] %}
1919
{% assign source = file.path | remove_first:"_" %}
2020
{% assign name = source | split:"/" | last %}
2121
{% if file.extname == ".jpg" or
@@ -24,7 +24,7 @@
2424
file.extname == ".JPG" or
2525
file.extname == ".PNG" or
2626
file.extname == ".GIF" %}
27-
<li><img src="{{ relative }}{{ source }}" alt="{{ name }}"/></li>
27+
<li><img src="{{ relative }}/{{ source }}" alt="{{ name }}"/></li>
2828
{% endif %}
2929
{% endif%}
3030
{% endfor %}

‎package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"name": "libreobjet.org",
3-
"version": "0.1.0",
4-
"homepage": "http://lireobjet.org",
5-
"bugs": {
6-
"url": "https://github.com/libreobjet/libreobjet.github.io/issues",
7-
"email": "hello@libreobjet.org"
2+
"name": "libreobjet.org",
3+
"version": "0.1.0",
4+
"homepage": "http://lireobjet.org",
5+
"bugs": {
6+
"url": "https://github.com/libreobjet/libreobjet.github.io/issues",
7+
"email": "hello@libreobjet.org"
88
},
9-
"license": "SEE LICENSE IN LICENSE",
10-
"repository": {
11-
"type": "git",
12-
"url": "https://github.com/libreobjet/libreobjet.github.io.git"
9+
"license": "SEE LICENSE IN LICENSE",
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/libreobjet/libreobjet.github.io.git"
1313
},
1414
"devDependencies": {
15-
"grunt": "~0.4.5",
16-
"grunt-contrib-stylus": "~0.22.0",
17-
"grunt-build-control": "~0.6.2",
18-
"grunt-jekyll": "~0.4.2",
19-
"grunt-contrib-compress": "~0.14.0",
15+
"grunt": "~0.4.5",
16+
"grunt-contrib-stylus": "~0.22.0",
17+
"grunt-build-control": "~0.6.2",
18+
"grunt-jekyll": "~0.4.2",
19+
"grunt-contrib-compress": "~0.14.0",
2020
"grunt-contrib-imagemin": "~1.0.0",
2121
"grunt-image-resize": "~1.0.0",
2222
"grunt-contrib-htmlmin": "~0.6.0"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /