Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several changes: Oriol, metadata and personal link #1

Merged
merged 3 commits into from
Aug 16, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion content/team/oriol-abril-pla/contents.lr
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
name: Oriol Abril Pla
---
picture: https://avatars3.githubusercontent.com/u/23738400?s=400&u=e12583539a9f95064bc8559c0669a2f00906bb41&v=4
picture: https://github.com/OriolAbril/calaix_de_sastre/raw/master/oriol-abril-pla.png
---
github_url: https://github.com/OriolAbril
---
location: Barcelona, Spain
---
blurb: Trying to develop and apply new methodology for a robust and reproducible statistical analysis workflow.
---
twitter_url: https://twitter.com/OriolAbril
---
linkedin_url: https://www.linkedin.com/in/oriol-abril-pla-1b9123180/
---
personal_url: https://oriolabril.github.io/oriol_unraveled/
---
specializations: Bayesian statistics, Model comparison
4 changes: 4 additions & 0 deletions models/index.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ type = string
label = Mission
type = markdown

[fields.description]
label = The company in one sentence
type = markdown

; [fields.flow]
; type = flow
6 changes: 5 additions & 1 deletion models/teammate.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ type = url
label = Linkedin URL
type = url

[fields.personal_url]
label = Personal URL
type = url

[fields.specializations]
label = Specializations (comma-separated)
type = string
Expand All @@ -31,4 +35,4 @@ type = string

[fields.blurb]
label = Blurb (140 characters)
type = markdown
type = string
6 changes: 6 additions & 0 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">

<title>PyMC Labs</title>
<meta property="og:url" content="{{ this|url(external=true) }}" />
<meta property="og:type" content="website" />
<meta property="og:title" content="{% block og_title%}PyMC Labs{% endblock %}" />
<meta property="og:description" content="{% block og_description%}Bespoke Bayesian Modeling{% endblock %}" />
<meta property="og:image" content="{% block og_image%}https://raw.githubusercontent.com/pymc-devs/pymcon/gh-pages/assets/contact.png{% endblock %}" />

</head>

<body>
Expand Down
16 changes: 16 additions & 0 deletions templates/macros/teammate.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ <h4 class="card-title text-center">{{ teammate.name }}</h4>
<i class="fab fa-linkedin"></i>
</a>
{% endif %}

{% if teammate.personal_url %}
<a href="{{ teammate.personal_url }}">
<i class="fas fa-globe"></i>
</a>
{% endif %}
</div>
</div>
</div>
Expand All @@ -40,6 +46,10 @@ <h4 class="card-title text-center">{{ teammate.name }}</h4>
<div class="card-body">
<h4 class="card-title text-center">{{ teammate.name }}</h4>

{%if teammate.blurb %}
<p>{{ teammate.blurb }}</p>
{% endif %}

{%if teammate.specializations %}
<h5>Specializations</h5>
<p>{{ teammate.specializations }}</p>
Expand Down Expand Up @@ -68,6 +78,12 @@ <h5>Location</h5>
<i class="fab fa-linkedin"></i>
</a>
{% endif %}

{% if teammate.personal_url %}
<a href="{{ teammate.personal_url }}">
<i class="fas fa-globe"></i>
</a>
{% endif %}
</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion templates/team.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{% extends "layout.html" %}
{% from "macros/teammate.html" import render_teammate_card %}
{% block og_title %}Our Team - PyMC Labs{% endblock %}
{% block og_description %}Meet the team of statistical consultants at PyMC Labs.{% endblock %}
{% block body %}
<style>
.img-round {
Expand All @@ -13,7 +15,7 @@
</style>
<div class="row">
{% for teammate in this.children %}
{{ render_teammate_card(teammate)}}
{{ render_teammate_card(teammate) }}
{% endfor %}
</div>
{% endblock %}
3 changes: 3 additions & 0 deletions templates/teammate.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{% extends "layout.html" %}
{% from "macros/teammate.html" import render_teammate_page %}
{% block og_title %}{{ this.name }} - PyMC Labs{% endblock %}
{% block og_description %}{{ this.blurb|string }}{% endblock %}
{% block og_image %}{{ this.picture }}{% endblock %}
{% block body %}
{{ render_teammate_page(this)}}

Expand Down