- Notifications
You must be signed in to change notification settings - Fork3
PyMC Labs Website
pymc-labs/pymc-labs.github.io
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
git clone git@github.com:pymc-labs/pymc-labs.github.io.gitcd pymc-labs.github.ioconda env create -f environment.yml# can use mamba too!
lektor server -p 5959# you can change it to any port you wantGo to your browser, and loadhttp://localhost:5959to access the website UI content editor UI.
For navigation:databags/nav.json.
For contact information:databags/contact.json.
Use the Lektor editor
Uses Jinja2 templating.
They are pulled from GitHub by just loadingwhatever URL to our main profile page is.
Most forums and social networks nowadays can use fancy card views with atitle, a description and an image, which serves as a link preview. For thecard preview to work, the<head> section must include some metadata fields.
The most important fields have been configured for all pages with somedefaults and they can be overwritten from more specific templates. Seetemplates/layout.html for info on how to set the metadata and the defaultsused.
og_title,og_description andog_image block can be used to modify the default titledescription and image in the card respectively. Here is one example from theteammates template:
<!-- layout sets the metadata defaults and blocks to modify it -->{% extends "layout.html" %}<!-- Use og_title to modify the default "PyMC Labs" as title --><!-- Note that this only affects the card title, not the title shown by the browser -->{% block og_title %}{{ this.name }} - PyMC Labs{% endblock %}<!-- Use og_title to modify the default "Bespoke Bayesian Modeling" as description -->{% block og_description %}{{ this.blurb|string }}{% endblock %}
See more on possible metadata fieldshere. Moreover,Twitter is extremely picky and in addition to being the most restrictive ingeneral, also requires an extra line to choose between thesummary orsummary_large_image card types. For now all pages usesummary format, butthis could be modified or left to configure for each page if desired.
Consult:
- Lektor docs
- Eric Ma for a one-on-one coaching session on how to make the website.
About
PyMC Labs Website
Resources
Uh oh!
There was an error while loading.Please reload this page.