Skip to content

Commit

Permalink
Merge pull request #60 from SpeciesFileGroup/development
Browse files Browse the repository at this point in the history
Fix meta tags and SEO
  • Loading branch information
José Luis Pereira authored and GitHub committed Apr 25, 2023
2 parents e5b59a8 + 4cd62f7 commit e84f5e1
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 51 deletions.
2 changes: 2 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Allow: /
3 changes: 0 additions & 3 deletions src/components/Animation/AnimationOpacity.global.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@
<slot />
</transition>
</template>

<script setup>
</script>
24 changes: 6 additions & 18 deletions src/components/Dropdown/Dropdown.global.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
<template>
<div class="relative inline">
<button @click="toggleMenu">
<button
title="Menu"
@click="toggleMenu"
>
<slot name="button" />
</button>
<ul
v-if="isVisible"
class="
bg-base-foreground
absolute font-normal
text-sm
text-base-lighter
right-0
z-10
mt-2
w-56
origin-top-right
rounded-md
shadow-lg
ring-1
ring-black
ring-opacity-5
focus:outline-none"
class="bg-base-foreground absolute font-normal text-sm text-base-lighter right-0 z-10 mt-2 w-56 origin-top-right rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"
>
<li
v-for="item in items"
Expand Down Expand Up @@ -50,7 +38,7 @@ const toggleMenu = () => {
isVisible.value = !isVisible.value
}
const itemClicked = item => {
const itemClicked = (item) => {
isVisible.value = false
item.action()
Expand Down
2 changes: 1 addition & 1 deletion src/components/Gallery/GalleryMainImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
ref="imageElement"
class="max-h-80 h-max w-100 cursor-zoom-in m-auto"
:src="image.original"
:alt="image.depictions.map((d) => d.label).join(';')"
@click="emit('open:viewer')"
/>
</div>
Expand Down Expand Up @@ -38,5 +39,4 @@ watch(
onMounted(() => {
imageElement.value.addEventListener('load', () => (isLoading.value = false))
})
</script>
27 changes: 13 additions & 14 deletions src/components/Layout/LayoutFooter.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<footer class="footer text-white bottom-0 border-gray-200 bg-zinc-800 pl-4 pr-4">
<footer
class="footer text-white bottom-0 border-gray-200 bg-zinc-800 pl-4 pr-4"
>
<div class="container mx-auto text-sm pt-2 pb-4">
<div class="pt-4 pb-2">
{{ project_authors }}
Expand All @@ -10,32 +12,31 @@
class="text-secondary-color"
:href="project_url"
>
{{ project_url }}
{{ project_url }}
</a>
&gt;
</span>
</div>
<div class="flex items-center text-xs">
<component
:is="copyright_image_link
? 'a'
: 'span'"
<component
:is="copyright_image_link ? 'a' : 'span'"
:href="copyright_image_link"
>
<img
v-if="copyright_image"
class="mr-2"
:src="copyright_image"
>
alt="copyright"
class="mr-2"
/>
</component>
<p>{{ copyright_text }}</p>
</div>

<hr class="mt-3 mb-3 border-gray-500">
<hr class="mt-3 mb-3 border-gray-500" />

<div class="flex items-center">
<span>
Data provided by
Data provided by
<a
class="text-slate-400 hover:text-slate-500 dark:hover:text-slate-300 font-medium"
target="_blank"
Expand All @@ -49,7 +50,7 @@

<span>
Pages by
<a
<a
class="text-slate-400 hover:text-slate-500 dark:hover:text-slate-300 font-medium"
target="_blank"
href="https://github.com/SpeciesFileGroup/taxonpages"
Expand All @@ -59,7 +60,7 @@
</span>
<span class="ml-2 mr-2">|</span>
<span>
Support (Services) by
Support (Services) by
<a
class="text-slate-400 hover:text-slate-500 dark:hover:text-slate-300 font-medium"
target="_blank"
Expand All @@ -73,7 +74,6 @@
</footer>
</template>
<script setup>
const {
project_authors,
project_citation,
Expand All @@ -82,5 +82,4 @@ const {
copyright_image,
copyright_image_link
} = __APP_ENV__
</script>
2 changes: 2 additions & 0 deletions src/components/Layout/LayoutHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
>
<img
v-if="header_logo_url"
width="auto"
height="auto"
class="mr-3 h-10"
:src="header_logo_url"
:alt="header_logo_text"
Expand Down
3 changes: 2 additions & 1 deletion src/components/Navbar/NavbarMobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<button
type="button"
class="inline-flex items-center p-2 z-50 ml-3 text-sm text-primary-content rounded-lg md:hidden print:hidden"
title="Menu"
aria-controls="mobile-menu"
aria-expanded="false"
:aria-expanded="isMenuVisible"
@click="toggleMenu"
>
<span class="sr-only">Open main menu</span>
Expand Down
1 change: 1 addition & 0 deletions src/components/SwitchTheme.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<button
type="button"
@click="toggleTheme"
title="Toggle mode"
>
<svg
v-if="themeMode === themeModes.dark"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@
:count="citationList.middle.length"
@click="showAll = true"
/>
<AnimationOpacity>
<div v-show="showAll">
<CitationRow
v-for="citation in citationList.middle"
:key="citation.label"
:citation="citation"
/>
</div>
</AnimationOpacity>

</ul>
<AnimationOpacity>
<ul
class="text-sm"
v-show="showAll"
>
<CitationRow
v-for="citation in citationList.middle"
:key="citation.label"
:citation="citation"
/>
</ul>
</AnimationOpacity>
<ul class="text-sm">
<CitationRow
v-for="citation in citationList.last"
:key="citation.label"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="flex justify-start border-b p-3 px-4 last:border-b-0 cursor-pointer border-base-muted"
<li
class="flex justify-start border-b p-3 px-4 cursor-pointer border-base-muted"
>
<div
class="h-5 w-5 text-secondary-color opacity-60 mr-2 cursor-pointer"
Expand All @@ -9,7 +9,7 @@
<IconPlusCircle class="h-5 w-5" />
</div>
<span>... Show all ... ({{ count }})</span>
</div>
</li>
</template>

<script setup>
Expand Down
3 changes: 2 additions & 1 deletion src/utils/getMeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export function getMetaFromConfig(configObj) {
const metaKey = key.slice(5)

return {
[metaKey]: value
name: metaKey,
content: value
}
})
}

0 comments on commit e84f5e1

Please sign in to comment.