Remove exhibition links
This commit is contained in:
parent
84de819756
commit
aa60c4d52b
5 changed files with 5 additions and 100 deletions
|
@ -69,35 +69,6 @@ body {
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation {
|
|
||||||
max-width: 100%;
|
|
||||||
|
|
||||||
&__item {
|
|
||||||
|
|
||||||
+ .navigation__item {
|
|
||||||
margin: 0.3rem 0 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__link {
|
|
||||||
display: block;
|
|
||||||
max-width: fit-content;
|
|
||||||
overflow-x: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
font-weight: var(--bold-font-weight);
|
|
||||||
transition: color 200ms ease-in-out;
|
|
||||||
|
|
||||||
&--white {
|
|
||||||
color: var(--white);
|
|
||||||
|
|
||||||
&:focus-visible {
|
|
||||||
outline: 1px dashed var(--white);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.social {
|
.social {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -132,33 +103,12 @@ body {
|
||||||
|
|
||||||
@media screen and (min-width: $tablet-media-query) {
|
@media screen and (min-width: $tablet-media-query) {
|
||||||
|
|
||||||
.navigation {
|
|
||||||
|
|
||||||
&__item {
|
|
||||||
|
|
||||||
+ .navigation__item {
|
|
||||||
margin: 0.2rem 0 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.social {
|
.social {
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: $desktop-media-query) {
|
@media screen and (min-width: $desktop-media-query) {}
|
||||||
|
|
||||||
.navigation {
|
|
||||||
|
|
||||||
&__item {
|
|
||||||
|
|
||||||
+ .navigation__item {
|
|
||||||
margin: 0.1rem 0 0 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Slider section
|
// Slider section
|
||||||
|
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
label:
|
|
||||||
en: Exhibitions
|
|
||||||
fr: Expositions
|
|
||||||
type: fields
|
|
||||||
fields:
|
|
||||||
exhibitions:
|
|
||||||
label:
|
|
||||||
en: Exhibitions
|
|
||||||
fr: Expositions
|
|
||||||
type: structure
|
|
||||||
prepend: true
|
|
||||||
sortable: true
|
|
||||||
required: true
|
|
||||||
fields:
|
|
||||||
url:
|
|
||||||
label:
|
|
||||||
en: URL
|
|
||||||
fr: URL
|
|
||||||
type: url
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,5 @@ label:
|
||||||
fr: Contenu
|
fr: Contenu
|
||||||
icon: text
|
icon: text
|
||||||
sections:
|
sections:
|
||||||
exhibitions: sections/site_content_exhibitions
|
|
||||||
artworks: sections/site_content_images
|
artworks: sections/site_content_images
|
||||||
contact: sections/site_content_contact
|
contact: sections/site_content_contact
|
||||||
|
|
|
@ -2,28 +2,18 @@
|
||||||
|
|
||||||
return function ($site) {
|
return function ($site) {
|
||||||
|
|
||||||
// Get exhibitions field content (stored as yaml) and parse it to return an array
|
// Get image files section content
|
||||||
$exhibitions = $site->exhibitions()->yaml();
|
$images = $site->files()->template("full_screen_image")->shuffle();
|
||||||
|
|
||||||
// Add url based title to each exhibition
|
|
||||||
foreach ($exhibitions as &$exhibition) {
|
|
||||||
$exhibition['title'] = str_replace(['http://', 'https://', 'www.', '.html'], '', $exhibition['url']);
|
|
||||||
$exhibition['title'] = rtrim($exhibition['title'], '/');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get contact fields content
|
// Get contact fields content
|
||||||
$email = $site->email();
|
$email = $site->email();
|
||||||
$instagram = $site->instagram();
|
$instagram = $site->instagram();
|
||||||
$portfolio = $site->portfolio()->toFile();
|
$portfolio = $site->portfolio()->toFile();
|
||||||
|
|
||||||
// Get image files section content
|
|
||||||
$images = $site->files()->template("full_screen_image")->shuffle();
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'exhibitions' => $exhibitions,
|
'images' => $images,
|
||||||
'email' => $email,
|
'email' => $email,
|
||||||
'instagram' => $instagram,
|
'instagram' => $instagram,
|
||||||
'portfolio' => $portfolio,
|
'portfolio' => $portfolio
|
||||||
'images' => $images
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,18 +5,6 @@
|
||||||
|
|
||||||
<section class="home-section">
|
<section class="home-section">
|
||||||
|
|
||||||
<nav class="navigation" aria-label="Menu">
|
|
||||||
{% if exhibitions is not empty %}
|
|
||||||
<ul class="navigation__menu">
|
|
||||||
{% for exhibition in exhibitions %}
|
|
||||||
<li class="navigation__item">
|
|
||||||
<a class="navigation__link" href="{{ exhibition.url }}" target="_blank">{{ exhibition.title }}</a>
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<a class="social__link" href="{{ instagram }}" target="_blank" title="Go to {{ site.title }}'s Instagram profile">
|
<a class="social__link" href="{{ instagram }}" target="_blank" title="Go to {{ site.title }}'s Instagram profile">
|
||||||
<svg class="instagram-icon" aria-hidden="true" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
<svg class="instagram-icon" aria-hidden="true" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue