Apply open graph
This commit is contained in:
@@ -216,11 +216,6 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
PostListItem,
|
PostListItem,
|
||||||
},
|
},
|
||||||
metaInfo() {
|
|
||||||
return {
|
|
||||||
title: this.$page.blog.title,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
copyLink() {
|
copyLink() {
|
||||||
const el = document.createElement("input");
|
const el = document.createElement("input");
|
||||||
|
|||||||
@@ -214,7 +214,45 @@ export default {
|
|||||||
},
|
},
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
return {
|
return {
|
||||||
title: this.$page.news.title,
|
title: "",
|
||||||
|
titleTemplate: `ThreeFold | ${this.$page.news.title}`,
|
||||||
|
meta: [
|
||||||
|
{
|
||||||
|
key: "description",
|
||||||
|
name: "description",
|
||||||
|
content: this.$page.news.excerpt,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "og:title",
|
||||||
|
property: "og:title",
|
||||||
|
content: this.$page.news.title,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "og:description",
|
||||||
|
property: "og:description",
|
||||||
|
content: this.$page.news.excerpt,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "og:image",
|
||||||
|
property: "og:image",
|
||||||
|
content: this.$page.news.image.src,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "twitter:description",
|
||||||
|
name: "twitter:description",
|
||||||
|
content: this.$page.news.excerpt,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "twitter:image",
|
||||||
|
property: "twitter:image",
|
||||||
|
content: this.$page.news.image.src,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "twitter:title",
|
||||||
|
property: "twitter:title",
|
||||||
|
content: this.$page.news.title,
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -216,7 +216,45 @@ export default {
|
|||||||
},
|
},
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
return {
|
return {
|
||||||
title: this.$page.person.name,
|
title: "",
|
||||||
|
titleTemplate: `ThreeFold | ${this.$page.person.title}`,
|
||||||
|
meta: [
|
||||||
|
{
|
||||||
|
key: "description",
|
||||||
|
name: "description",
|
||||||
|
content: this.$page.person.excerpt,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "og:title",
|
||||||
|
property: "og:title",
|
||||||
|
content: this.$page.person.title,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "og:description",
|
||||||
|
property: "og:description",
|
||||||
|
content: this.$page.person.excerpt,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "og:image",
|
||||||
|
property: "og:image",
|
||||||
|
content: this.$page.person.image.src,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "twitter:description",
|
||||||
|
name: "twitter:description",
|
||||||
|
content: this.$page.person.excerpt,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "twitter:image",
|
||||||
|
property: "twitter:image",
|
||||||
|
content: this.$page.person.image.src,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "twitter:title",
|
||||||
|
property: "twitter:title",
|
||||||
|
content: this.$page.person.title,
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,7 +5,15 @@
|
|||||||
<div class="w-full md:w-1/6 mx-auto sm:mx-0">
|
<div class="w-full md:w-1/6 mx-auto sm:mx-0">
|
||||||
<g-image
|
<g-image
|
||||||
:src="$page.project.logo"
|
:src="$page.project.logo"
|
||||||
class="rounded-full bg-gray-200 w-32 h-32 border-4 border-gray-400 mx-auto md:mx-0"
|
class="
|
||||||
|
rounded-full
|
||||||
|
bg-gray-200
|
||||||
|
w-32
|
||||||
|
h-32
|
||||||
|
border-4 border-gray-400
|
||||||
|
mx-auto
|
||||||
|
md:mx-0
|
||||||
|
"
|
||||||
></g-image>
|
></g-image>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full md:w-5/6 text-center md:text-left md:pl-8 lg:pl-0">
|
<div class="w-full md:w-5/6 text-center md:text-left md:pl-8 lg:pl-0">
|
||||||
@@ -39,7 +47,13 @@
|
|||||||
<g-image
|
<g-image
|
||||||
:src="member.image"
|
:src="member.image"
|
||||||
:alt="member.name"
|
:alt="member.name"
|
||||||
class="w-8 h-8 rounded-full bg-gray-200 border-2 border-white"
|
class="
|
||||||
|
w-8
|
||||||
|
h-8
|
||||||
|
rounded-full
|
||||||
|
bg-gray-200
|
||||||
|
border-2 border-white
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
</g-link>
|
</g-link>
|
||||||
</li>
|
</li>
|
||||||
@@ -82,7 +96,19 @@
|
|||||||
v-for="tag in $page.project.tags"
|
v-for="tag in $page.project.tags"
|
||||||
:key="tag.id"
|
:key="tag.id"
|
||||||
:to="tag.path"
|
:to="tag.path"
|
||||||
class="text-xs bg-transparent hover:text-blue-700 py-2 px-4 mr-2 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full"
|
class="
|
||||||
|
text-xs
|
||||||
|
bg-transparent
|
||||||
|
hover:text-blue-700
|
||||||
|
py-2
|
||||||
|
px-4
|
||||||
|
mr-2
|
||||||
|
border
|
||||||
|
hover:border-blue-500
|
||||||
|
border-gray-600
|
||||||
|
text-gray-700
|
||||||
|
rounded-full
|
||||||
|
"
|
||||||
>{{ tag.title }}</g-link
|
>{{ tag.title }}</g-link
|
||||||
>
|
>
|
||||||
</section>
|
</section>
|
||||||
@@ -198,7 +224,45 @@ export default {
|
|||||||
},
|
},
|
||||||
metaInfo() {
|
metaInfo() {
|
||||||
return {
|
return {
|
||||||
title: this.$page.project.title,
|
title: "",
|
||||||
|
titleTemplate: `ThreeFold | ${this.$page.project.title}`,
|
||||||
|
meta: [
|
||||||
|
{
|
||||||
|
key: "description",
|
||||||
|
name: "description",
|
||||||
|
content: this.$page.project.excerpt,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "og:title",
|
||||||
|
property: "og:title",
|
||||||
|
content: this.$page.project.title,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "og:description",
|
||||||
|
property: "og:description",
|
||||||
|
content: this.$page.project.excerpt,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "og:image",
|
||||||
|
property: "og:image",
|
||||||
|
content: this.$page.project.image.src,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "twitter:description",
|
||||||
|
name: "twitter:description",
|
||||||
|
content: this.$page.project.excerpt,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "twitter:image",
|
||||||
|
property: "twitter:image",
|
||||||
|
content: this.$page.project.image.src,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "twitter:title",
|
||||||
|
property: "twitter:title",
|
||||||
|
content: this.$page.project.title,
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user