Commit fa57b3f5 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Massive refactoring for simplification

parent 4cdd1fac
image: ruby:2.5
variables:
JEKYLL_ENV: production
image: ruby:2.6
stages:
- test
- deploy
- release
before_script:
- bundle install
# This will test whether the webpage builds
# This will try to build the web site, and store the result in "build" directory
test:
stage: test
script:
- bundle exec jekyll build -d test
variables:
JEKYLL_ENV: production
artifacts:
expire_in: 3 days
paths:
- test
except:
- master
- build
before_script:
- bundle install
script:
- 'echo "baseurl: /$CI_PROJECT_NAME" >> _config_ci.yml'
- 'echo "url: https://$CI_PROJECT_NAMESPACE.$CI_PAGES_DOMAIN" >> _config_ci.yml'
- bundle exec jekyll build -d build --config "_config.yml,_config_ci.yml"
# This will actually deploy the webpage when pushing to master
# This will actually deploy the web site when pushing to master
pages:
stage: deploy
only:
- master
script:
- bundle exec jekyll build -d public
- mv build public
- echo "Your website is available at $CI_PAGES_URL"
artifacts:
expire_in: 3 days
paths:
- public
only:
- master
# This will push the gem to ruby-gems when tagged
release:
......
......@@ -22,7 +22,7 @@ new_menu: false
description: >- # this means to ignore newlines until "baseurl:"
This is a default LCSB Jekyll template.
baseurl: "/jekyll-theme-lcsb-default" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
url: "http://localhost" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: uni_lu
facebook_username: uni.lu
linkedin_schoolname: university-of-luxembourg
......
---
# You don't need to edit this file, it's empty on purpose.
# Edit theme's home layout instead if you wanna make some changes
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: default
title: about
order: 3
---
# LCSB jekyll about page.
# LCSB jekyll about page
This is another page.
\ No newline at end of file
# jekyll-theme-lcsb-default
Welcome to our LCSB Jekyll theme!
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
> This theme is based upon https://github.com/jekyll/minima.
# Note
This notes are intended for developers of the theme, and **not the developers of the website that use the theme**!
## Installation
Add this line to your Jekyll site's `Gemfile`:
```ruby
......@@ -113,9 +107,6 @@ To enable Google Anaytics, add the following lines to your Jekyll site:
google_analytics: UA-NNNNNNNN-N
```
## Contributing
Bug reports and pull requests are welcome on Gitlab at https://git-r3lab.uni.lu/core-services/jekyll-theme-lcsb-default/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## Development
......@@ -140,9 +131,4 @@ Added `alert` and `alert_header` blocks.
To use: `{% alert info %}{% alert_header %}Header{% endalert_header %}Content{% endalert %}` or `{% alert warning %}{% alert_header %}Header{% endalert_header %}Content{% endalert %}`
### 0.2.18
* Corrected placement of R3 logo in the footer on mobile
## License
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
* Corrected placement of R3 logo in the footer on mobile
\ No newline at end of file
---
# You don't need to edit this file, it's empty on purpose.
# Edit theme's home layout instead if you wanna make some changes
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: frozen
title: frozen
order: 4
---
# This is an example of a Frozen Page layout
{% rtitle Modeling Parkinson's disease in midbrain-like organoids %}
Please cite the article on [NPJ Parkinson's disease](https://doi.org/10.1038/s41531-019-0078-4).
......
---
# You don't need to edit this file, it's empty on purpose.
# Edit theme's home layout instead if you wanna make some changes
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
layout: default
title: index
order: 1
---
# LCSB jekyll theme.
# LCSB Jekyll Theme
The theme is displayed via Gitlab [pages](https://core-services.pages.uni.lu/jekyll-theme-lcsb-default/).
Welcome to our LCSB Jekyll theme! Jekyll is a static webpages generator, which turns markdown files into a website. This repository contains a template, that you should use when creating any webpage for your LCSB-related projects. The layout has been already approved by our Communications Department, so that putting the website live will be fast and easy!
Read the [README](https://git-r3lab.uni.lu/core-services/jekyll-theme-lcsb-default/blob/master/README.md) file to know how to use in your project.
> Note, that you should not clone this repository, unless you want to work on the theme.
# How to use?
To start a new page for your repository, you should fork [this project](https://git-r3lab.uni.lu/core-services/pages-jekyll-lcsb-template) and modify its contents directly.
The webpage will be published automatically under uni.lu network.
To start a new page for your repository, you can fork [this project](https://git-r3lab.uni.lu/core-services/pages-jekyll-lcsb-template) and start to modify it directly.
For more information, refer to [https://git-r3lab.uni.lu/core-services/pages-jekyll-lcsb-template/blob/master/index.md](https://git-r3lab.uni.lu/core-services/pages-jekyll-lcsb-template/blob/master/index.md).
## Contributing
Bug reports and pull requests are welcome on Gitlab at (https://git-r3lab.uni.lu/core-services/jekyll-theme-lcsb-default/issues). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
# Development
Please see (https://git-r3lab.uni.lu/core-services/jekyll-theme-lcsb-default/blob/master/development.md).
# Contact
In case you need any information, please contact [LCSB Sysadmins Team](mailto:lcsb-sysadmins@uni.lu).
# License
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
\ No newline at end of file
......@@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "jekyll-theme-lcsb-default"
spec.version = "0.2.23"
spec.version = "0.2.24"
spec.authors = ["Trefex", "jaceklebioda_lux"]
spec.email = ["lcsb-sysadmins@uni.lu"]
......
---
# You don't need to edit this file, it's empty on purpose.
# Edit theme's home layout instead if you wanna make some changes
# See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults
title: index
layout: paginated_index
published: false
pagination:
enabled: false
---
\ No newline at end of file
---
# This is an example of *paginated* layout.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment