Skip to content

Commit a23613e

Browse files
Merge pull request #38 from lauraengelhardt/cleanup-unused-code
Clean-up unused code and two fixes
2 parents c13d755 + ec8533a commit a23613e

23 files changed

+34
-367
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ If you don't want to provide a link to any webpage, include the whole `link` ite
3232

3333
## How to add an associated project
3434

35-
Adding another software project that is either a wrapper around 4C, or it uses some 4C code or provides a pre-/postprocessing tool
36-
works in the same way as adding examples. The file to be modified is here
35+
Adding another software project that is either a wrapper around 4C, or it uses some 4C code or provides a pre-/postprocessing tool works in the same way as adding examples. The file to be modified is here
3736

3837
`associated.yml`
3938

@@ -46,8 +45,7 @@ Note that the names are in alphabetical order, so add it at the right place.
4645
## How to add a new publication to the website?
4746

4847
The 4C website contains a list of all publications, that have been created with the help of 4C.
49-
When your new 4C-related publication has been published and all its bibliographic details (e.g. volume, issue, DOI, ...) are known,
50-
please add the publication to the list of publications.
48+
When your new 4C-related publication has been published and all its bibliographic details (e.g. volume, issue, DOI, ...) are known, please add the publication to the list of publications.
5149

5250
Bibliographic data is stored in the `bibtex` format in two files:
5351

_config.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,6 @@ logo:
1212
desktop_width: "100px"
1313
banner: "/images/illustrations/fiber-fluidflow2.jpg"
1414

15-
collections:
16-
capabilities:
17-
output: true
18-
community:
19-
output: true
20-
associated:
21-
output: true
22-
23-
defaults:
24-
- scope:
25-
path: ""
26-
type: "capabilities"
27-
values:
28-
layout: "capability"
29-
- scope:
30-
path: ""
31-
type: "community"
32-
values:
33-
layout: "contributor"
34-
- scope:
35-
path: ""
36-
type: "associated"
37-
values:
38-
layout: "associate"
39-
4015
sass:
4116
indentWidth: 4
4217
style: compressed # possible values: nested expanded compact compressed

_data/contact.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

_data/menus.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ main:
55
- name: "Capabilities and examples"
66
url: "/capabilities/"
77
weight: 1
8-
# - name: "Code"
9-
# url: "/code.html"
10-
# weight: 3
118
- name: "Associated projects"
129
url: "/associated_projects/"
1310
weight: 4

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<p><br /><br /></p>
2929
<img
3030
alt="banner"
31-
class="intro-image{% if page.banner_hide_on_mobile %} intro-image-hide-mobile{% endif %}"
31+
class="image{% if page.banner_hide_on_mobile %} image-hide-mobile{% endif %}"
3232
src="{{ site.logo.banner | relative_url }}"
3333
width="100%"
3434
height="100%"

_layouts/associated.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ <h1>{{ page.title }}</h1>
1212
<div class="col-12 col-md-7 col-lg-7 order-2 order-md-1">
1313
{{ content }}
1414
</div>
15-
{% if page.intro_image %}
15+
{% if page.image %}
1616
<div
1717
class="col-12 col-md-5 col-lg-5 order-1 order-md-2 position-relative"
1818
>
1919
<img
2020
alt="{{ page.title }}"
21-
class="intro-image{% if page.intro_image_absolute %} intro-image-absolute{% endif %}{% if page.intro_image_hide_on_mobile %} intro-image-hide-mobile{% endif %}"
22-
src="{{ page.intro_image | absolute_url }}"
21+
class="image {% if page.image_hide_on_mobile %} image-hide-mobile{% endif %}"
22+
src="{{ page.image | absolute_url }}"
2323
/>
2424
</div>
2525
{% endif %}

_layouts/capability.html

Lines changed: 0 additions & 15 deletions
This file was deleted.

_layouts/home.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ <h1 class="title">4C: A Comprehensive Multiphysics Simulation Framework</h1>
1111
<div class="container">
1212
<div class="row justify-content-start">
1313
<div class="col-12 col-md-8 col-lg-8 order-2 order-md-1">
14-
{{ content }} {% if page.show_call_box %} {% include mission.html
15-
show_button=true %} {% endif %}
14+
{{ content }}
1615
</div>
17-
{% if page.intro_image %}
16+
{% if page.image %}
1817
<div
1918
class="col-12 col-md-4 col-lg-4 order-1 order-md-2 position-relative"
2019
>
2120
<img
2221
alt="{{ page.title }}"
23-
class="intro-image{% if page.intro_image_absolute %} intro-image-absolute{% endif %}{% if page.intro_image_hide_on_mobile %} intro-image-hide-mobile{% endif %}"
24-
src="{{ site.logo.desktop | relURL }}"
22+
class="image{% if page.image_hide_on_mobile %} image-hide-mobile{% endif %}"
23+
src="{{ page.image | absolute_url }}"
2524
/>
2625
</div>
2726
{% endif %}

_sass/components/_call.scss

Lines changed: 0 additions & 60 deletions
This file was deleted.

_sass/components/_image.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.image {
2+
width: 100%;
3+
height: auto;
4+
margin-top: -40px;
5+
}
6+
.image-hide-mobile {
7+
display: none;
8+
@include media-breakpoint-up(md) {
9+
display: block;
10+
}
11+
}

0 commit comments

Comments
 (0)