Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PyMC Labs Website

NotificationsYou must be signed in to change notification settings

pymc-labs/pymc-labs.github.io

 
 

Repository files navigation

Business contact

Maintenance

Environment

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!

Start Lektor Server

lektor server -p 5959# you can change it to any port you want

Go to your browser, and loadhttp://localhost:5959to access the website UI content editor UI.

Editing

"Static" data

For navigation:databags/nav.json.

For contact information:databags/contact.json.

Main page content

Use the Lektor editor

Templates

Uses Jinja2 templating.

Headshots

They are pulled from GitHub by just loadingwhatever URL to our main profile page is.

Metadata

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.

Other stuff to edit?

Consult:

About

PyMC Labs Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp