Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
MortenHofft committed Sep 8, 2022
1 parent d0316a1 commit 7375f50
Show file tree
Hide file tree
Showing 37 changed files with 274 additions and 390 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ gem "jekyll-remote-theme"

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
gem "jekyll-liquify"
gem "jekyll-thumbor", git: "https://github.com/gbif/jekyll-thumbor"
end

Expand All @@ -28,3 +30,5 @@ end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]


gem "webrick", "~> 1.7"
16 changes: 12 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ GEM
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.13.1)
ffi (1.15.5)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (1.8.5)
Expand All @@ -40,6 +40,9 @@ GEM
terminal-table (~> 1.8)
jekyll-feed (0.15.0)
jekyll (>= 3.7, < 5.0)
jekyll-liquify (0.0.2)
liquid (>= 2.5, < 5.0)
redcarpet (~> 3.1)
jekyll-remote-theme (0.4.2)
addressable (~> 2.0)
jekyll (>= 3.5, < 5.0)
Expand All @@ -56,7 +59,7 @@ GEM
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.2.1)
listen (3.7.1)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
Expand All @@ -67,9 +70,10 @@ GEM
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
rb-fsevent (0.10.4)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
redcarpet (3.5.1)
rexml (3.2.4)
rouge (3.23.0)
ruby-thumbor (3.0.0)
Expand All @@ -80,19 +84,23 @@ GEM
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.7.0)
webrick (1.7.0)
yaml (0.1.1)

PLATFORMS
ruby

DEPENDENCIES
jekyll (~> 4.1.1)
jekyll-feed (~> 0.12)
jekyll-liquify
jekyll-remote-theme
jekyll-thumbor!
minima (~> 2.5)
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.1)
webrick (~> 1.7)

BUNDLED WITH
2.1.4
2.3.18
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[![GBIF Hosted Portal](https://docs.gbif.org/style/gbif-hosted-portal.svg)](https://github.com/gbif/hosted-portals)
[![Build Status](https://builds.gbif.org/job/hp-template/badge/icon)](https://builds.gbif.org/job/hp-template/lastBuild/console)
[![Build Status](https://builds.gbif.org/job/hp-nhc/badge/icon)](https://builds.gbif.org/job/hp-nhc/lastBuild/console)
<!-- License badge example: [![CC BY-SA 4.0](https://img.shields.io/badge/License-CC%20BY%2D-SA%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-sa/4.0/) -->

# GBIF Hosted Portal: hp-template
# GBIF Hosted Portal: hp-nhc

This Jekyll website, **[hp-template](https://hp-template.gbif.org/)**, makes use of a theme and biodiversity widgets developed by the GBIF network.
This Jekyll website, **[hp-nhc](https://hp-nhc.gbif.org/)**, makes use of a theme and biodiversity widgets developed by the GBIF network.

You can find information on editing this site and more on [gbif/hosted-portals](https://github.com/gbif/hosted-portals)

Expand Down
33 changes: 14 additions & 19 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.

title: Template # the title of your site should go here
title: Natural History Collections # the title of your site should go here
email: [email protected]
description: >- # this means to ignore newlines (until baseurl:)
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://hp-template.gbif.org/" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: yourname # if you have an account you want to link to. Else comment this line out
github_username: yourname # if you have an account you want to link to. Else comment this line out
url: "https://hp-nhc.gbif.org/" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: gbif # if you have an account you want to link to. Else comment this line out
github_username: gbif # if you have an account you want to link to. Else comment this line out

# Build settings
theme: minima
Expand All @@ -54,21 +54,20 @@ siteMeasurements:

algae:
rootLang: en
# latestPostLimit: 2
# logo: /assets/images/fungi.svg # Logo in navbar, will be displayed with 28px height
# logoAndTitle: false # include the title next to the logo
latestPostLimit: 3
logo: /assets/images/logo.svg # Logo in navbar, will be displayed with 28px height
logoAndTitle: true # include the title next to the logo
archive_permalink: /news/ # Permalink of page using archive.html layout, required when using post categories
style:
# square: false # Should corners be square or rounded
square: true # Should corners be square or rounded
colors:
primary: "#fa5e97" # Primary color of your brand. Use HEX code. Used for buttons and links
# links: "#fa5e97" # What color should links have. Use a HEX code. DEfault is primary color.
primary: "#4D39E9" # Primary color of your brand. Use HEX code. Used for buttons and links
links: "#4D39E9" # What color should links have. Use a HEX code. DEfault is primary color.
coloredHeadlineLinks: false # If a headline is a link, then use the link color. Default is true.
navbar: # RELATED TO NAVIGATION BAR
# brandBackground: yellow # Define a custom background for the logo/title in the top navigation bar
# color: "tomato" # What color should the navbar be?
# hasWhiteText: true # Should the text color be white?
# floating: true
brandBackground: "#4D39E9" # Define a custom background for the logo/title in the top navigation bar
color: "#1B2032" # What color should the navbar be?
hasWhiteText: true # Should the text color be white?

# Exclude from processing.
# The following items will not be processed, by default.
Expand Down Expand Up @@ -105,8 +104,4 @@ defaults:
path: "_posts" # an empty string here means all files in the project
values:
layout: "post"
permalink: "/post/:year/:slug/" # Use /post/yyyy/{filename}/ as permalink for all posts
- scope:
path: "da/" # For anything in the "da" folder the default is to set the lang frontMatter property to "da" . this should be deleted or adapted to your site if you support other languages
values:
lang: da
permalink: "/post/:year/:slug/" # Use /post/yyyy/{filename}/ as permalink for all posts
2 changes: 1 addition & 1 deletion _config_staging.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
url: "https://hp-template.gbif-staging.org/" # the base hostname & protocol for your staging site, e.g. https://hp-example.gbif-staging.org
url: "https://hp-nhc.gbif-staging.org/" # the base hostname & protocol for your staging site, e.g. https://hp-example.gbif-staging.org
2 changes: 1 addition & 1 deletion _config_uat.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
url: "https://hp-template.gbif-uat.org/" # the base hostname & protocol for your staging site, e.g. https://hp-example.gbif-uat.org
url: "https://hp-nhc.gbif-uat.org/" # the base hostname & protocol for your staging site, e.g. https://hp-example.gbif-uat.org
8 changes: 8 additions & 0 deletions _data/about.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
about:
- content:
- title: Intro
path: /introduction
- title: How to edit
path: /access
- title: Frequently asked questions
path: /faq
41 changes: 0 additions & 41 deletions _data/da/footer.yml

This file was deleted.

20 changes: 0 additions & 20 deletions _data/da/navigation.yml

This file was deleted.

32 changes: 0 additions & 32 deletions _data/examples.yml

This file was deleted.

1 change: 0 additions & 1 deletion _data/footer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ columns:
- name: Code
description: | # Can be Markdown
This project is open source. See `_data/footer.yml` to customize the footer.
- name: Contact
description: | # Can be Markdown
Social icons links defined in `_config.yml`
Expand Down
21 changes: 21 additions & 0 deletions _data/images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
irpex:
src: /assets/images/irpex_spiculifer_1135723338.jpg
caption: |
[Isotype of _Irpex spiculifer_ G.Cunn.](https://www.gbif.org/occurrence/1135723338) from [Manaaki Whenua - Landcare Research](/collection/034e128e-ee23-42d4-989d-cbe406c04fdb)
puccinia:
src: /assets/images/puccinia-grahamii-1135811910.jpg
caption: |
[Holotype of _Puccinia grahamii_ G.Cunn.](https://www.gbif.org/occurrence/1135811910) from [Manaaki Whenua - Landcare Research](/collection/034e128e-ee23-42d4-989d-cbe406c04fdb)
garcinia:
src: /assets/images/garcinia_2563424903.jpg
caption: |
[Isotype of _Garcinia urceolata_ Munzinger, Bruy & M. Pignal](https://www.gbif.org/occurrence/2563424903)
acalypha_gillespieae:
src: /assets/images/acalypha_gillespieae_1258001892.jpg
caption: |
[Holotype of _Acalypha gillespieae_ G.A.Levin & I.Montero, 2020](https://www.gbif.org/occurrence/1258001892) from [Missouri Botanical Garden](/institution/1be3aa67-8f90-4309-92f4-bd55426a8c09)
catocala_ilia_cramer:
src: /assets/images/catocala_ilia_cramer_2365571744.jpg
caption: |
[_Catocala ilia_ Cramer, 1779](https://www.gbif.org/occurrence/2365571744) from [Peabody Museum of Natural History](institution/75f50140-830d-4630-a290-3d6e951a7c29)
30 changes: 6 additions & 24 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
# Links listed below will be included in your site's navbar (navigation at the top)

- text: Institutions
href: /institution/search
- text: Collections
href: /collection/search
- text: Specimens
href: /specimen/search
- text: About
href: /about
- text: Occurrences
href: /occurrence/search
- text: Example pages
menu: # Dropdown menu (one level deep only)
- text: Simple
href: /example-pages/simple
- text: Complex
href: /example-pages/complex
- text: Links
menu: # Dropdown menu (one level deep only)
- text: Base theme demo
href: https://hp-base-theme.gbif-staging.org/
- text: Other sites using the theme
href: https://github.com/gbif/?q=hp-&type=all&language=&sort=
- text: "---" # Divider to separate blocks of menu items (at least 3 "-")
- text: "Docs" # Title for block of menu items
- text: Jekyll documentation
href: https://jekyllrb.com/docs/pages/
- text: Markdown tutorial
href: https://guides.github.com/features/mastering-markdown/
- text: YAML tutorial
href: https://dev.to/paulasantamaria/introduction-to-yaml-125f
- text: News
href: /news/
Loading

0 comments on commit 7375f50

Please sign in to comment.