Skip to content

Commit 2d16d43

Browse files
committed
TinaCMS integration + Incubator content
1 parent 23fd3c2 commit 2d16d43

32 files changed

+9262
-126
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.vscode
55
_site
66
.jekyll-cache
7+
node_modules

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.6

.tina/__generated__/.gitignore

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.tina/__generated__/_graphql.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.tina/__generated__/_lookup.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.tina/__generated__/_schema.json

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.tina/config.js

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
import { defineConfig } from "tinacms";
2+
3+
// Your hosting provider likely exposes this as an environment variable
4+
const branch = process.env.HEAD || process.env.VERCEL_GIT_COMMIT_REF || "main";
5+
6+
export default defineConfig({
7+
branch,
8+
clientId: "2f550628-79a9-4f87-8a84-4ef15734c0b2", // Get this from tina.io
9+
token: "dc3e003f707dde93329516b08f24133f7a80a332", // Get this from tina.io
10+
build: {
11+
outputFolder: "admin",
12+
publicFolder: "/",
13+
},
14+
media: {
15+
tina: {
16+
mediaRoot: "/assets/images",
17+
publicFolder: "/",
18+
},
19+
},
20+
schema: {
21+
collections: [
22+
{
23+
label: "Projects",
24+
name: "projects",
25+
path: "_projects",
26+
fields: [
27+
// {
28+
// type: "rich-text",
29+
// name: "body",
30+
// label: "Content",
31+
// description: "This is the markdown body",
32+
// isBody: true,
33+
// },
34+
{
35+
type: "string",
36+
name: "title",
37+
label: "Title",
38+
isTitle: true,
39+
required: true,
40+
},
41+
{
42+
type: "string",
43+
name: "intro",
44+
label: "Lead",
45+
},
46+
{
47+
type: "rich-text",
48+
name: "description",
49+
label: "Description",
50+
isBody: true,
51+
},
52+
{
53+
type: "object",
54+
name: "publications",
55+
label: "Publications",
56+
list: true,
57+
ui: {
58+
itemProps: (item) => {
59+
return { label: item?.name };
60+
},
61+
},
62+
fields: [
63+
{
64+
type: "string",
65+
name: "lang",
66+
label: "Language(s)",
67+
},
68+
{
69+
type: "object",
70+
name: "links",
71+
label: "Links",
72+
list: true,
73+
ui: {
74+
itemProps: (item) => {
75+
return { label: item?.name };
76+
},
77+
},
78+
fields: [
79+
{
80+
type: "string",
81+
name: "name",
82+
label: "Title",
83+
isTitle: true,
84+
required: true,
85+
},
86+
{
87+
type: "string",
88+
name: "url",
89+
label: "URL",
90+
ui: {
91+
component: "textarea",
92+
},
93+
},
94+
],
95+
},
96+
{
97+
type: "string",
98+
name: "name",
99+
label: "Name",
100+
isTitle: true,
101+
required: true,
102+
},
103+
{
104+
type: "string",
105+
name: "url",
106+
label: "URL",
107+
},
108+
],
109+
},
110+
{
111+
type: "rich-text",
112+
name: "team_initiators",
113+
label: "Team initiators"
114+
},
115+
{
116+
type: "rich-text",
117+
name: "team_participants",
118+
label: "Team participants"
119+
},
120+
{
121+
type: "datetime",
122+
name: "date",
123+
label: "Date",
124+
},
125+
],
126+
},
127+
{
128+
label: "Posts",
129+
name: "posts",
130+
path: "_posts",
131+
ui: {
132+
filename: {
133+
readonly: false,
134+
slugify: values => {
135+
const date = new Date();
136+
const day = `0${date.getDate()}`.slice(-2);
137+
const month = `0${(date.getMonth() + 1)}`.slice(-2);
138+
const year = date.getFullYear();
139+
140+
let currentDate = `${year}-${month}-${day}`;
141+
142+
return `${currentDate}-${values?.title?.toLowerCase().replace(/ /g, '-')}`
143+
}
144+
}
145+
},
146+
fields: [
147+
{
148+
type: "string",
149+
name: "title",
150+
label: "Title",
151+
isTitle: true,
152+
required: true,
153+
},
154+
{
155+
type: "rich-text",
156+
name: "body",
157+
label: "Content",
158+
description: "This is the markdown body",
159+
isBody: true,
160+
},
161+
]
162+
}
163+
],
164+
},
165+
});

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ gem "jekyll", "~> 4.2.0"
1414
# If you have any plugins, put them here!
1515
group :jekyll_plugins do
1616
gem "jekyll-feed"
17-
gem 'jekyll-admin'
17+
#gem 'jekyll-admin'
1818
end
1919

2020
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem

Gemfile.lock

+2-24
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ GEM
33
specs:
44
addressable (2.8.0)
55
public_suffix (>= 2.0.2, < 5.0)
6-
backports (3.21.0)
76
colorator (1.1.0)
87
concurrent-ruby (1.1.8)
98
em-websocket (0.5.2)
@@ -30,10 +29,6 @@ GEM
3029
rouge (~> 3.0)
3130
safe_yaml (~> 1.0)
3231
terminal-table (~> 2.0)
33-
jekyll-admin (0.11.0)
34-
jekyll (>= 3.7, < 5.0)
35-
sinatra (~> 1.4)
36-
sinatra-contrib (~> 1.4)
3732
jekyll-feed (0.15.1)
3833
jekyll (>= 3.7, < 5.0)
3934
jekyll-sass-converter (2.1.0)
@@ -49,15 +44,9 @@ GEM
4944
rb-fsevent (~> 0.10, >= 0.10.3)
5045
rb-inotify (~> 0.9, >= 0.9.10)
5146
mercenary (0.4.0)
52-
multi_json (1.15.0)
5347
pathutil (0.16.2)
5448
forwardable-extended (~> 2.6)
5549
public_suffix (4.0.6)
56-
rack (1.6.13)
57-
rack-protection (1.5.5)
58-
rack
59-
rack-test (1.1.0)
60-
rack (>= 1.0, < 3)
6150
rb-fsevent (0.10.4)
6251
rb-inotify (0.10.1)
6352
ffi (~> 1.0)
@@ -66,29 +55,18 @@ GEM
6655
safe_yaml (1.0.5)
6756
sassc (2.4.0)
6857
ffi (~> 1.9)
69-
sinatra (1.4.8)
70-
rack (~> 1.5)
71-
rack-protection (~> 1.4)
72-
tilt (>= 1.3, < 3)
73-
sinatra-contrib (1.4.7)
74-
backports (>= 2.0)
75-
multi_json
76-
rack-protection
77-
rack-test
78-
sinatra (~> 1.4.0)
79-
tilt (>= 1.3, < 3)
8058
terminal-table (2.0.0)
8159
unicode-display_width (~> 1.1, >= 1.1.1)
82-
tilt (2.0.10)
8360
unicode-display_width (1.7.0)
8461

8562
PLATFORMS
63+
arm64-darwin-21
64+
universal-darwin-22
8665
x86_64-darwin-19
8766
x86_64-linux
8867

8968
DEPENDENCIES
9069
jekyll (~> 4.2.0)
91-
jekyll-admin
9270
jekyll-feed
9371
tzinfo (~> 1.2)
9472
tzinfo-data

_config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
title: EIC
1+
title: EIC Incubator
22
email: eic@0x19.net
3-
description: European Investigative Collaborations
3+
description: European Investigative Collaborations Incubator
44
base_url: "/"
5-
url: "http://eic-network.github.io"
5+
url: "http://eic-incubator.github.io"
66

77
twitter_username: eicnetwork
88
github_username: eic-network

_data/board.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
- name:
2+
image: https://theblacksea.eu/_old/mirror/theblacksea.eu/RES/uploads/images/candea.jpg
3+
title: Board Director
4+
url: https://eic.network/
5+
- name:
6+
image: http://www.orientalische-nacht-leipzig.de/images/kunst/nachm_andreea-bonea2015.jpg
7+
title: Board Fundraising & Operational Management
8+
url: https://eic.network/
9+
- name:
10+
image: https://theblacksea.eu/_old/mirror/theblacksea.eu/RES/uploads/images/candea.jpg
11+
title: Board Director
12+
url: https://eic.network/
13+
- name:
14+
image: http://www.orientalische-nacht-leipzig.de/images/kunst/nachm_andreea-bonea2015.jpg
15+
title: Board Fundraising & Operational Management
16+
url: https://eic.network/

_data/team.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
- name:
2+
image: https://theblacksea.eu/_old/mirror/theblacksea.eu/RES/uploads/images/candea.jpg
3+
title: Director
4+
url: https://eic.network/
5+
- name:
6+
image: http://www.orientalische-nacht-leipzig.de/images/kunst/nachm_andreea-bonea2015.jpg
7+
title: Fundraising & Operational Management
8+
url: https://eic.network/
9+
- name:
10+
image: https://theblacksea.eu/_old/mirror/theblacksea.eu/RES/uploads/images/candea.jpg
11+
title: Director
12+
url: https://eic.network/
13+
- name:
14+
image: http://www.orientalische-nacht-leipzig.de/images/kunst/nachm_andreea-bonea2015.jpg
15+
title: Fundraising & Operational Management
16+
url: https://eic.network/

_includes/head.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
<link rel="shortcut icon" href="/assets/images/favicon.png">
88
<title>{{ page.title }} {%if page.title%} | {%endif%} {{ site.title }}</title>
99
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
10-
<link rel="stylesheet"
11-
href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,700%7COpen+Sans:300,400,700">
10+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Condensed:300,700%7COpen+Sans:300,400,700">
11+
<link rel="preconnect" href="https://fonts.googleapis.com">
12+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
13+
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap" rel="stylesheet">
1214
<link rel="stylesheet" href="/assets/css/bootstrap.min.css" type="text/css">
13-
<link rel="stylesheet" href="/assets/css/eic-theme.css" type="text/css">
1415
<link rel="stylesheet" href="/assets/css/themify-icons.css" type="text/css">
1516
<link rel="stylesheet" href="/assets/css/style.red.css" type="text/css">
17+
<link rel="stylesheet" href="/assets/css/eic-incubator-theme.css" type="text/css">
1618
</head>

_includes/home/about.html

+32-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,39 @@
11
<section id="about">
2+
<h2 class="heading">About us</h2>
3+
24
<div class="container clearfix">
35
<div class="row">
4-
<h2 class="heading">About us</h2>
5-
<div class="col-md-2">
6+
<div class="col-md-12">
7+
<div class="about-text">
8+
{{ page.content | markdownify }}
9+
</div>
610
</div>
7-
<div class="col-md-8">
8-
{{ page.content | markdownify }}
11+
</div>
12+
<div class="row">
13+
<div class="col-md-3">
14+
<div class="about-title-block">The problem(s)</div>
15+
<div class="about-column">
16+
{{ page.problems | markdownify }}
17+
</div>
18+
</div>
19+
<div class="col-md-3">
20+
<div class="about-title-block">The solution</div>
21+
<div class="about-column">
22+
{{ page.solution | markdownify }}
23+
</div>
24+
</div>
25+
<div class="col-md-3">
26+
<div class="about-title-block">Value proposition</div>
27+
<div class="about-column">
28+
{{ page.value | markdownify }}
29+
</div>
30+
31+
</div>
32+
<div class="col-md-3">
33+
<div class="about-title-block">Beneficiaries</div>
34+
<div class="about-column">
35+
{{ page.beneficiaries | markdownify }}
36+
</div>
937
</div>
1038
</div>
1139
</div>

0 commit comments

Comments
 (0)