fixes to projects

This commit is contained in:
hamdy
2020-11-10 12:16:25 +02:00
parent 32b7f65358
commit 4fde0b40b5
5 changed files with 34 additions and 41 deletions

View File

@@ -14,10 +14,10 @@ logo: ./logo.png
author: kristine_vilnite author: kristine_vilnite
members: vasily_gnuchev members: vasily_gnuchev
websites: https://artheon.co/ websites: https://artheon.co/
tags: tfgrid tags: tfgrid, grid
private: 0 private: 0
potential: potential:
linkedin: ''
--- ---
# Artheon # Artheon

View File

@@ -30,14 +30,17 @@
<time :datetime="record.datetime">{{ record.humanTime }}</time> <time :datetime="record.datetime">{{ record.humanTime }}</time>
</g-link> </g-link>
</p> </p>
<p>
<g-link :to="record.path">
<time :datetime="record.datetime">{{ record.startDate }}</time>
</g-link>
{{ record.status }}
</p>
</div> </div>
<div class="ml-3 pl-3 border-l flex flex-col text-xs leading-none uppercase">
<p>
{{record.status}}
</p>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -22,7 +22,11 @@ query($page:Int) {
title title
members members
rank rank
linkedin
startDate : startdate(format:"MM YYYY")
humanTime : created(format:"DD MMMM YYYY")
datetime : created(format:"ddd MMM DD YYYY hh:mm:ss zZ")
status
excerpt excerpt
image(width:800) image(width:800)
path path

View File

@@ -12,26 +12,8 @@
<h1 class="pb-0 mb-0 mt-0 text-4xl font-medium">{{ $page.project.title }}</h1> <h1 class="pb-0 mb-0 mt-0 text-4xl font-medium">{{ $page.project.title }}</h1>
<p class="text-gray-700 text-xl" v-if="$page.project.bio">{{ $page.project.bio }}</p> <p class="text-gray-700 text-xl" v-if="$page.project.bio">{{ $page.project.bio }}</p>
<div class="author-social"> <div class="author-social">
{{ $page.project.belongsTo.totalCount }} Projects
&nbsp;&middot;&nbsp; &nbsp;&middot;&nbsp;
<!-- <a
:href="$page.project.facebook"
target="_blank"
rel="noopener noreferrer"
class="text-gray-400 hover:text-black"
>
<font-awesome :icon="['fab', 'facebook']" />
</a>
&nbsp;
<a
:href="$page.project.twitter"
target="_blank"
rel="noopener noreferrer"
class="text-gray-400 hover:text-black"
>
<font-awesome :icon="['fab', 'twitter']" />
</a>
&nbsp; -->
<a <a
:href="$page.project.linkedin" :href="$page.project.linkedin"
target="_blank" target="_blank"
@@ -54,13 +36,20 @@
<div class="pt-8 border-b mx-4 sm:-mx-4"></div> <div class="pt-8 border-b mx-4 sm:-mx-4"></div>
<div class="flex flex-wrap pt-8 pb-8 mx-4 sm:-mx-4"> <div class="flex flex-wrap pt-8 pb-8 mx-4 sm:-mx-4">
<PostListItem <ProjectListItem
v-for="edge in $page.project.belongsTo.edges" v-for="edge in $page.project.belongsTo.edges"
:key="edge.node.id" :key="edge.node.id"
:record="edge.node" :record="edge.node"
/> />
</div> </div>
<section class="post-tags container mx-auto relative py-10">
<g-link
v-for="tag in $page.project.tags"
:key="tag.id"
: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"
>{{ tag.title }}</g-link>
</section>
<div class="pagination flex justify-center mb-8"> <div class="pagination flex justify-center mb-8">
<Pagination <Pagination
:baseUrl="$page.project.path" :baseUrl="$page.project.path"
@@ -81,6 +70,9 @@
title title
status status
countries countries
startDate : startdate(format:"MM YYYY")
humanTime : created(format:"DD MMMM YYYY")
datetime : created(format:"ddd MMM DD YYYY hh:mm:ss zZ")
image(width:150, height:150) image(width:150, height:150)
image_caption image_caption
logo logo
@@ -88,13 +80,12 @@
timeToRead timeToRead
path path
timeToRead timeToRead
linkedin
tags { tags {
id id
title title
path path
} }
members members
websites websites
private private

View File

@@ -7,7 +7,7 @@
A collection of A collection of
<span <span
class="self-center" class="self-center"
>{{ $page.tag.belongsTo.totalCount }} {{ postLabel }}</span> >{{ $page.tag.belongsTo.totalCount }} items</span>
</p> </p>
</div> </div>
@@ -92,12 +92,7 @@ export default {
Pagination, Pagination,
PostListItem PostListItem
}, },
computed: {
postLabel: function() {
var pluralize = require("pluralize");
return pluralize("post", this.$page.tag.belongsTo.totalCount);
}
},
metaInfo() { metaInfo() {
return { return {
title: this.$page.tag.title title: this.$page.tag.title