-
Notifications
You must be signed in to change notification settings - Fork 2
Home
The sysbio website
Content: actual data as customizable Markdown
Files:
-
netlify.toml
- Hugo config -
static/admin/config.yaml
- describe structure of pages for CMS (mapping to content (Markdown pages)) -
config.toml
- configs the website -
layouts
- HTML templates using Hugo{{ }}
syntax (some directories and elements are hardcoded)- single (one page)
- list (several on page, like news) The content is viewable in diff ways, either as "preview" (in list) or "full" (single)
-
data/centres
- Centers of Excellence elements -
packages.json
(inherited from theme) -
static/_redirects
- supported by Netlify
Site generated with bootstrap (useful for many things, but mostly layouts).
(client) --request--> server: static files, code + DB --computation--serve--> (client)
-
code + DB: expensive, needs server. There are tricks to avoid this, like generating HTML pages using templates. But these still require computation
-
images, css, javascript: static - quick, efficient
Instead of the code + DB, one regenerates the site using only static files.
One uses:
- customizable templates
- separate part (content) that replaces DB
and from these generates HTML, which is paired with static files (javascript, css)
In Hugo, themes = templates.
The theme for sysbio.se is created from the "Universal" theme.
Normally, code has to be public, but with Netlify code can be kept private.
Hugo has various functions to assemble content in diff ways into a final rendered HTML.
Stuff under static
is shown as-is.
To start a local Hugo server to view the website:
hugo server -w
in the sysbio.se repo directory.
After any change, the website will refresh.
Hugo generates (builds) the site in /public
(not stored on Github)
Set up like CI: builds automatically and keeps history of builds. One could show diff version (branches) to different users.
Rich interface to Github to change + commit content. Although some elements like the top bar not accessible.
Available on online version since it works thru Github. Organizes content into collections (separate directories): content + config (e.g. what kind of fields, text)
- test form functionality, decide how deal with the email
- should menu buttons be active?
- upgrade to bootstrap4, bootstrapious theme universal has this but was not ported to hugo yet
- disable url for main dropdown menu
- use chalmers font
- bug on the 404 page - menu buttons don't work
- matomo analytics
- original menu bar buttons that are discarded: Organization, Centres of excellence, Teaching.
- update blue color
- remove about us from the footer and replace with chalmers logo
- center copyright
- use sysbio and chalmers logo
- no one line for labs, but all labs visible at once
- news page should list the news
- show all labs at once on two rows
- Footer logos becomes footer Labs
- News section on homepage: only body with date but no image, but no "read more" and no title with news from http://sysbio.se/news.html
- check if can use SSL with private key
- News page should have no search/categories/tags commented out but keep for future reference -> still kept b/c it looks bad without them
- the "whatever" dropdown becomes tools (contains software, databases and gems), and international projects has its own button, and contains past projects
- people page
- photos for contact page
- create organization section with picture from group photos in higher resolution
- Profile page should have collapsable buttons about publications and other things (software, videos, alumni). for the CV it can either be a dropdown or a pdf.
- see-more becomes a link to the "Projects" page
- logos of Centers: equally sized, centred, add WCPR wallenberg and CellNova KTH, and no carousel
- flags closer to images
- org graph as image below labs
- use guetzli to compress the big images
- scroll bug on short pages - disappeared
- pay copyright Mihai's card
- keep "Projects" without "international" but state on the page that these are only the international ones
- international Projects
- more news, date can be bogus, delegated to Martina
- there won't be a tools overview page, Mihai decided
- databases
- create a photos page with a button in the About dropdown
- GEMS
- make each lab card clickable
- each lab should have a profile that is like a blog pages
- software
- fewer requests, especially js or use cdn; potentially get rid of font awesome; get other/fewer fonts; in fact just use this https://github.com/netlify/victor-hugo => using asset optimization from Netlify
- remove all js