Skip to content
Snippets Groups Projects
Commit d14e4e9e authored by Hayley Corson-Dosch's avatar Hayley Corson-Dosch
Browse files

clean up naming

parent a896c087
No related branches found
No related tags found
1 merge request!5Custom subpage content
export default { export default {
pageTitle: "Climate chart gallery", pageTitle: "Climate chart gallery",
projectBlurbs: { projects: {
// keys must match project routes (with '-' replaced with '') // keys must match project routes (with '-' replaced with '')
findex: { findex: {
title: "Findex", title: "Findex",
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
</div> </div>
<ChartGrid :view="currentView"/> <ChartGrid :view="currentView"/>
<div class="text-container" v-if="projectPage"> <div class="text-container" v-if="projectPage">
<h2>About the {{ projectBlurbContent.title }} project</h2> <h2>About the {{ projectBlurbText.title }} project</h2>
{{ projectBlurbContent.blurb }} {{ projectBlurbText.blurb }}
</div> </div>
<PreFooterCodeLinks :gitHubRepositoryLink="gitHubRepositoryLink"/> <PreFooterCodeLinks :gitHubRepositoryLink="gitHubRepositoryLink"/>
</section> </section>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
const projectRoute = route.params.projectRoute const projectRoute = route.params.projectRoute
const currentView = projectRoute ? projectRoute : 'all' const currentView = projectRoute ? projectRoute : 'all'
const projectPage = projectRoute ? true : false const projectPage = projectRoute ? true : false
const projectBlurbContent = projectRoute ? text.projectBlurbs[`${projectRoute.replace(/-/g, '')}`] : null const projectBlurbText = projectRoute ? text.projects[`${projectRoute.replace(/-/g, '')}`] : null
const gitHubRepositoryLink = import.meta.env.VITE_APP_GITHUB_REPOSITORY_LINK; const gitHubRepositoryLink = import.meta.env.VITE_APP_GITHUB_REPOSITORY_LINK;
</script> </script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment