Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance updates to make the web fully static #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/MainFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
<div
class="mx-auto"
>
<nuxt-link to="/pages/terms" class="mr-6 text-sm text-gray-400 hover:text-gray-300">
<nuxt-link to="/terms" class="mr-6 text-sm text-gray-400 hover:text-gray-300">
Terms of Service
</nuxt-link>
<nuxt-link to="/pages/privacy" class="mr-6 text-sm text-gray-400 hover:text-gray-300">
<nuxt-link to="/privacy" class="mr-6 text-sm text-gray-400 hover:text-gray-300">
Police Privacy
</nuxt-link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/MainSections.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="container mx-auto px-4 md:flex gap-x-6">
<div class="flex flex-wrap -mx-3 w-full md:w-1/4">
<div class="mb-6 lg:mb-0 w-full px-3">
<nuxt-link to="/pages/resources">
<nuxt-link to="/resources">
<div class="p-6 flex flex-wrap bg-white shadow hover:shadow-lg transition rounded-lg">
<span class="mb-4 lg:mb-0 mr-6 inline-block p-3 md:p-5 rounded bg-pink-100">
<svg class="h-8 w-8 md:w-12 md:h-12 text-primary" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
Expand Down
4 changes: 2 additions & 2 deletions content/pages/community.md → content/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Community
---
# Community

The NL-RSE community is formed by more than 200 Research Software Engineers across all Dutch universities, university medical centers, research institutes and other research related organizations. Do you want to become a member of NL-RSE, [sign up here](/pages/join)! See below the list of institutes across the country where RSEs are working and have already joined NL-RSE.
The NL-RSE community is formed by more than 200 Research Software Engineers across all Dutch universities, university medical centers, research institutes and other research related organizations. Do you want to become a member of NL-RSE, [sign up here](/join)! See below the list of institutes across the country where RSEs are working and have already joined NL-RSE.

### NL-RSE Meetups

Expand Down Expand Up @@ -37,7 +37,7 @@ Do you have an upcoming event, job opening or other news to share with the commu

### Contact the Core Team

Would you like to share something during our next [meetup](/pages/meetups)? Email [email protected] to get in contact with the NL-RSE committee and conference organisers
Would you like to share something during our next [meetup](/meetups)? Email [email protected] to get in contact with the NL-RSE committee and conference organisers

## List of institutes where RSEs have joined NL-RSE

Expand Down
6 changes: 5 additions & 1 deletion content/events/2022-03-08-meetup.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ We've invited 3 RSEs to showcase projects they have completed. See the descripti
3. Martine de Vos - Harvesting the Internet Archive

After this, we will have a panel discussion with the three RSEs above, and Alejandra Hérnandez from RIVM. To honour International Women's Day, we will touch upon the topic of gender diversity in the profession.

<a href="https://www.eventbrite.co.uk/e/rse-career-stages-from-junior-to-group-lead-tickets-262466312807" target="_blank">
<div class="btn btn-primary ">
Register on Eventbrite
</div>
</a>
## Join us!
Sounds interesting? Join our NL-RSE Meetup on March 8, 2022.

Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions content/menu-items.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
items:
- title: Community
path: /pages/community
path: /community

- title: Blog
path: /blog

- title: Join
path: /pages/join
path: /join

- title: Meetups
path: /pages/meetups
path: /meetups

- title: Core Team
path: /core-team
Expand Down
2 changes: 1 addition & 1 deletion content/posts/2019-06-24-derse.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ It at first seems as if RSEs in the Netherlands can already rely a better job si

We don’t know — undoubtedly research software will continue to play an important part in science and with it the role of RSEs will become more prominent.

What we do know for sure is that deRSE was a fantastic conference and a great success! And it reminded us that would be very beneficial for the RSE community in the Netherlands to have another local RSE conference (we had a [first meet-up last year](/posts/2018-06-29-first-meetup)) where RSEs from different institutions can come together and share their experiences and thoughts. [Join the NL-RSE mailing list](/pages/join) for updates on upcoming RSE events in the Netherlands.
What we do know for sure is that deRSE was a fantastic conference and a great success! And it reminded us that would be very beneficial for the RSE community in the Netherlands to have another local RSE conference (we had a [first meet-up last year](/posts/2018-06-29-first-meetup)) where RSEs from different institutions can come together and share their experiences and thoughts. [Join the NL-RSE mailing list](/join) for updates on upcoming RSE events in the Netherlands.

## Some impressions from the conference

Expand Down
2 changes: 1 addition & 1 deletion content/posts/2019-07-01-rse-survey-2018-results.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ to [email protected].

The final question that we'll discuss here is another very interesting one! Would you like to attend a national RSE event?
An overwhelming number of RSEs in the Netherlands answered YES to this question! And for those of you, we have good news!
NL-RSE will be organizing a first NL-RSE conference in November 2019! Be sure to [join the NL-RSE mailinglist](/pages/join)
NL-RSE will be organizing a first NL-RSE conference in November 2019! Be sure to [join the NL-RSE mailinglist](/join)
to stay up to date on information about the event.
2 changes: 1 addition & 1 deletion content/posts/2020-09-22-rs-first-class-citizen.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ Four centuries after Leeuwenhoek, research tools have only gained importance. Re

However, research software does not receive the recognition it deserves. A group of members of the [NL-RSE network](http://nl-rse.org/), and software minded data specialists, got together in an attempt to raise the profile of research software. [Our position paper](https://doi.org/10.5281/zenodo.4015242) provides further details.

Back in March 2019, we had a [meeting with NWO](http://doi.org/10.5281/zenodo.2647436) about the role of software in research. Following that meeting, we wrote a [position paper](https://doi.org/10.5281/zenodo.3378571) with recommendations for funding agencies and research institutions to raise the profile of research software. In August 2019 made it publicly available for [comments from the RSE community](/posts/2019-09-17-RaisingResearchSoftware). In November 2019, we also had a [feedback session during the NL-RSE conference](/events/nl-rse19). The author group got together again in January 2020 to integrate the community feedback. After a long revision process, the [“final” version](https://doi.org/10.5281/zenodo.4015242) is ready. This paper focuses on the Netherlands, but the issues and recommendations could be adapted and adopted by other countries.
Back in March 2019, we had a [meeting with NWO](http://doi.org/10.5281/zenodo.2647436) about the role of software in research. Following that meeting, we wrote a [position paper](https://doi.org/10.5281/zenodo.3378571) with recommendations for funding agencies and research institutions to raise the profile of research software. In August 2019 made it publicly available for [comments from the RSE community](/posts/2019-09-17-raising-research-software). In November 2019, we also had a [feedback session during the NL-RSE conference](/events/nl-rse19). The author group got together again in January 2020 to integrate the community feedback. After a long revision process, the [“final” version](https://doi.org/10.5281/zenodo.4015242) is ready. This paper focuses on the Netherlands, but the issues and recommendations could be adapted and adopted by other countries.

These recommendations have been broadly commented on however if you would like to comment on them feel free to reach out to any of the authors or contact us via the [NL-RSE network](http://localhost:3000/pages/community).
File renamed without changes.
File renamed without changes.
File renamed without changes.
43 changes: 43 additions & 0 deletions layouts/error.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<template>
<div class="h-screen">
<div v-if="!!error" class="mt-60 p-20 bg-base-300 prose">
<h3>
Page not found
<div class="btn btn-ghost btn-primary" @click="$router.push('/')">
← Go back
</div>
</h3>
</div>
</div>
</template>

<script>
export default {
layout: 'empty',
props: {
error: {
type: Object,
default: null
}
},
data () {
return {
pageNotFound: '404 Not Found',
otherError: 'An error occurred'
}
},
head () {
const title =
this.error.statusCode === 404 ? this.pageNotFound : this.otherError
return {
title
}
}
}
</script>

<style scoped>
h1 {
font-size: 20px;
}
</style>
10 changes: 4 additions & 6 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ const isDev = process.env.NODE_ENV === 'development'
export default {
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
ssr: false,
generate: {
fallback: true,
async routes () {
const { $content } = require('@nuxt/content')
const files = await $content({ deep: true }).only(['path']).fetch()
return files.map(file => file.path === '/index' ? '/' : file.path)
}
exclude: [
'/202x-mm-dd-meetup.template',
'/menu-item'
]
},

// If deploying on github pages
Expand Down
20 changes: 20 additions & 0 deletions pages/_slug.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<div class="flex flex-col ">
<section class=" py-20 container mx-auto px-4 h-full ">
<nuxt-content :document="content" class="prose max-w-2xl mx-auto " />
</section>
<main-footer />
</div>
</template>

<script>
export default {
transition: 'fade',
async asyncData ({ $content, params }) {
const content = await $content(params.slug).fetch()
return {
content
}
}
}
</script>
24 changes: 4 additions & 20 deletions pages/events/_event.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@
<div class="flex flex-col">
<section class="py-20 container mx-auto px-4 flex-1">
<div class="max-w-2xl mx-auto">
<nuxt-content :document="content" class="prose" />
</div>
<div v-if="!!error" class="mt-60 p-20 bg-secondary prose">
<h3>
Page not found
<div class="btn btn-ghost" @click="$router.push('/')">
← Go back
</div>
</h3>
<nuxt-content :document="event" class="prose" />
</div>
</section>
<main-footer class="flex-none" />
Expand All @@ -20,18 +12,10 @@
<script>
export default {
transition: 'fade',
data () {
async asyncData ({ $content, params }) {
const event = await $content('events', params.event).fetch()
return {
content: {},
error: null
}
},
async fetch () {
const { event } = this.$route.params
try {
this.content = await this.$content('events/' + event).fetch()
} catch {
this.error = true
event
}
}
}
Expand Down
36 changes: 0 additions & 36 deletions pages/pages/_page.vue

This file was deleted.

2 changes: 1 addition & 1 deletion static/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/2019/06/24/deRSE.html /posts/2019-06-24-derse
/2019/07/01/RSE-Survey-2018-results.html /posts/2019-07-01-rse-survey-2018-results
/2019/07/09/NL-RSE-2019.html /posts/2019-07-09-nl-rse-2019
/2019/09/17/RaisingResearchSoftware.html /posts/2019-09-17-raisingresearchsoftware
/2019/09/17/RaisingResearchSoftware.html /posts/2019-09-17-raising-research-software
/2019/11/29/FAIR-Software-eScience2019.html /posts/2019-11-29-fair-software-escience2019
/2019/12/02/Looking-back-at-NL-RSE19.html /posts/2019-12-02-looking-back-at-nl-RSE19
/2020/09/22/RS-first-class-citizen.html /posts/2020-09-22-rs-first-class-citizen
Expand Down