This repository contains all the content necessary for proper rendering of BIASlab group website.
You need to have Hugo static site generator installed and working. More information might be found at Hugo Installation Guide.
Please install Hugo v0.58 or newer. Otherwise certain sections of the website won't be generated.
Working installation of GNU Make is recommended, but not required. You can test if you have it installed by typing make -v
in the terminal.
-
Create a directory where you're planning to store the website:
mkdir biaslab
-
Clone this repository and step into the directory:
git clone git@github.com:biaslab/biaslab-hugo.git ./biaslab cd ./biaslab
-
Install hugo-academic-group theme:
make install-theme
If you don't have a working installation of GNU Make, follow the installation instructions from hugo-academic-group repository.
-
To add new content use
hugo new
command:hugo new post/post-title.md
This way
hugo
will generate a template markdown file based on corresponding archetype with some of attributes filled with default values (creation timestamp, etc.), which you can later edit.More information on adding content can be found in the Hugo documentation in Content and Getting Started sections.
-
All the basic build operations might be carried with the use of
make
command. If you do not have a working installation of GNU Make, study the contents of theMakefile
and use the corresponding commands to operate the website. Currently following commands are defined in the file:install-theme
: Installs hugo-academic-group theme.update-theme
: Updates the theme.build-website
: Generates all the static content for the website.preview-website
: Builds the website content and starts Hugo debugging server with live reload enabled.publish
: Publishes the contents of the./public
directory to themaster
branch of https://biaslab.github.io repository.
-
Convert the notebook using
juputer-nbconvert
command, specifying Markdown as an output format:jupyter-nbconvert --to markdown ./notebook.ipynb
This command should convert your notebook to markdown file named
notebook.md
and create a separate directory for the files required for proper rendering of Markdown file namednotebook_files
. -
Move the
notebook_files
directory somewhere to thestatic
folder of the website (for example,/static/images/notebook_files
). Open thenotebook.md
file and edit all the links to the images accordingly to the place where you've put the folder, omitting/static
part of the path. For example:![png](notebook_files/image.png) --> ![png](/images/notebook_files/image.png)
-
Create a new post:
hugo new post/notebook.md
and copy content from your original
notebook.md
file to the newly created post. This way Hugo will automatically populate some fields in the header of the file.
Ranking team members is done in this code snippet given the sort_position
parameter.
Currently, this parameter is structured as a float (X.Y
) where X
is a number representing a team member belonging to the following group
1 Professor
2 Assistant Professor
3 Postdoc
4 full-time PhD student (BIASlab)
5 part-time PhD student (BIASlab)
6 guest PhD student (external)
Each group is sorted by seniority, determined by Y
.