Skip to content

Commit 337a87f

Browse files
axamboaxambo
authored andcommitted
changed exhibition to online version - basic start
1 parent 03e8ff6 commit 337a87f

File tree

51 files changed

+1218
-40
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1218
-40
lines changed

.eleventy.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,16 @@ module.exports = function (eleventyConfig) {
6969
eleventyConfig.addPassthroughCopy("./utils/googlemapsapi.js")
7070
eleventyConfig.addPassthroughCopy("./utils/googlemaps.js")
7171
eleventyConfig.addPassthroughCopy("./src/assets/css/googlemaps.css");
72-
eleventyConfig.addPassthroughCopy("./src/assets/html/googlemaps.html");
72+
eleventyConfig.addPassthroughCopy("./src/assets/html/googlemaps.html");
7373
})
7474

75+
// eleventyConfig.addCollection('artwork', (collection) => {
76+
// if (process.env.ELEVENTY_ENV !== 'production')
77+
// return [...collection.getFilteredByGlob('./src/exhibition/*.md')]
78+
// else
79+
// return [...collection.getFilteredByGlob('./src/exhibition/*.md')].filter((post) => !post.data.draft)
80+
// })
81+
7582
/**
7683
* Collections
7784
* ============================

src/_includes/layouts/post.njk

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,17 @@ layout: base
7070

7171
{# ===== Previous and Next ===== #}
7272
<div class="border-t mt-4 pt-4 {{ colors.borderCustom.color or colors.borderDefault.color }} md:flex-row md:flex md:justify-between">
73+
{%- if tags == 'exhibition' -%}
74+
{% set previousPost = collections.exhibition | getPreviousCollectionItem(page) %}
75+
{% set nextPost = collections.exhibition | getNextCollectionItem(page) %}
76+
{%- else -%}
7377
{% set previousPost = collections.post | getPreviousCollectionItem(page) %}
7478
{% set nextPost = collections.post | getNextCollectionItem(page) %}
75-
79+
{%- endif -%}
7680
<div class="py-2 text-center sm:py-0">
7781
{% if previousPost %}
7882
<a class="{{ colors.prevNextCustom.text or colors.prevNextDefault.text }} hover:{{ colors.prevNextCustom.text or colors.prevNextDefault.textHover }}" href="{{ previousPost.url }}">← {{ previousPost.data.title }}</a>
79-
{% endif %}
83+
{%- endif -%}
8084
</div>
8185

8286
<div class="py-2 text-center sm:py-0">
@@ -87,4 +91,5 @@ layout: base
8791

8892
</div>
8993

94+
9095
</article>
80 KB
Loading
76.6 KB
Loading
50.4 KB
Loading
185 KB
Loading
165 KB
Loading
63.2 KB
Loading
364 KB
Loading
44.4 KB
Loading

0 commit comments

Comments
 (0)