Skip to content
Snippets Groups Projects
Commit 8bca5547 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Merge branch 'develop' into 'master'

Develop

See merge request !18
parents f8167f7f f3a093cb
2 merge requests!82Master,!18Develop
Pipeline #5586 passed with stages
in 14 seconds
...@@ -5,21 +5,36 @@ before_script: ...@@ -5,21 +5,36 @@ before_script:
- module load singularity/3.0.2 - module load singularity/3.0.2
- module load awscli - module load awscli
stages:
- build_stage
- deploy_stage
build: build:
stage: build_stage
script: script:
- singularity run 'docker://monachus/hugo' hugo - singularity run 'docker://monachus/hugo' hugo
artifacts: artifacts:
paths: paths:
- public - public/
expire_in: 1 week
cache:
paths:
- public/
deploy.dev:
stage: deploy_stage
script:
- singularity run 'docker://monachus/hugo' hugo deploy aws-dev --maxDeletes -1
dependencies:
- build
only: only:
- develop - develop
deploy:
deploy.live:
stage: deploy_stage
script: script:
- singularity run 'docker://monachus/hugo' hugo - singularity run 'docker://monachus/hugo' hugo deploy aws --maxDeletes -1
## - singularity run 'docker://monachus/hugo' hugo deploy aws --maxDeletes -1 dependencies:
## - aws s3 ls s3://www.strandlab.net/ --recursive | awk '{cmd="aws s3api put-object-acl --acl bucket-owner-full-control --bucket www.strandlab.net --key "$4; system(cmd)}' - build
artifacts:
paths:
- public
only: only:
- master - master
\ No newline at end of file
...@@ -7,6 +7,7 @@ draft: true ...@@ -7,6 +7,7 @@ draft: true
weight: "" weight: ""
type: "custom" type: "custom"
layout: "" layout: ""
current: true
--- ---
**PENDING** **PENDING**
\ No newline at end of file
baseurl = "https://strandlab.net/" baseurl = "http://strandlab.dev.s3-website.us-east-2.amazonaws.com/"
title = "Strand Lab" title = "Strand Lab"
author = "Gervaise H. Henry" author = "Gervaise H. Henry"
theme = "blackburn" theme = "blackburn"
...@@ -19,7 +19,7 @@ paginate = 10 ...@@ -19,7 +19,7 @@ paginate = 10
department = "Department of Urology" department = "Department of Urology"
dsite = "https://www.utsouthwestern.edu/education/medical-school/departments/urology/" dsite = "https://www.utsouthwestern.edu/education/medical-school/departments/urology/"
description = "Investigating lower urinary tract biology" description = "Investigating lower urinary tract biology"
googleAnalytics = "UA-120971283-2" # googleAnalytics = "UA-120971283-2"
# CSS name for highlight.js # CSS name for highlight.js
highlightjs = "androidstudio" highlightjs = "androidstudio"
highlightjs_extra_languages = ["yaml"] highlightjs_extra_languages = ["yaml"]
...@@ -80,6 +80,10 @@ paginate = 10 ...@@ -80,6 +80,10 @@ paginate = 10
[deployment] [deployment]
order = [".jpg$", ".gif$"] order = [".jpg$", ".gif$"]
[[deployment.targets]]
name = "aws-dev"
URL = "s3://strandlab.dev?region=us-east-2"
[[deployment.targets]] [[deployment.targets]]
name = "aws" name = "aws"
URL = "s3://strandlab?region=us-east-2" URL = "s3://strandlab?region=us-east-2"
\ No newline at end of file
content/people/images/henry_g_hat.jpg

1.4 MiB

content/people/images/strand_d_scowl.jpg

2.2 MiB

...@@ -7,6 +7,7 @@ draft: false ...@@ -7,6 +7,7 @@ draft: false
weight: "4" weight: "4"
type: "custom" type: "custom"
layout: "" layout: ""
current: false
--- ---
**PENDING** **PENDING**
\ No newline at end of file
...@@ -7,6 +7,7 @@ draft: false ...@@ -7,6 +7,7 @@ draft: false
weight: "5" weight: "5"
type: "custom" type: "custom"
layout: "" layout: ""
current: false
--- ---
**PENDING** **PENDING**
\ No newline at end of file
...@@ -7,6 +7,7 @@ draft: false ...@@ -7,6 +7,7 @@ draft: false
weight: "3" weight: "3"
type: "custom" type: "custom"
layout: "" layout: ""
current: false
--- ---
**PENDING** **PENDING**
\ No newline at end of file
...@@ -7,5 +7,7 @@ draft: false ...@@ -7,5 +7,7 @@ draft: false
weight: "1" weight: "1"
type: "custom" type: "custom"
layout: "hu.donor.deep" layout: "hu.donor.deep"
current: true
current: true
--- ---
...@@ -7,5 +7,6 @@ draft: true ...@@ -7,5 +7,6 @@ draft: true
weight: "2" weight: "2"
type: "custom" type: "custom"
layout: "hu.donor.shallow" layout: "hu.donor.shallow"
current: false
--- ---
...@@ -7,6 +7,7 @@ draft: false ...@@ -7,6 +7,7 @@ draft: false
weight: "7" weight: "7"
type: "custom" type: "custom"
layout: "" layout: ""
current: false
--- ---
**PENDING** **PENDING**
\ No newline at end of file
...@@ -7,6 +7,7 @@ draft: false ...@@ -7,6 +7,7 @@ draft: false
weight: "6" weight: "6"
type: "custom" type: "custom"
layout: "" layout: ""
current: false
--- ---
**PENDING** **PENDING**
\ No newline at end of file
{{ partial "header.html" . }} {{ partial "header.html" . }}
<div class="header"> <div class="header">
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<h2>{{ .Description }}</h2> <h2>{{ .Description }}</h2>
</div> </div>
<style> <style>
@media (min-width: 1000px) { @media (min-width: 1000px) {
.column { .column {
float: left; float: left;
} }
.left { .left {
width: 25%; width: 25%;
} }
.right { .right {
width: 75%; width: 75%;
} }
.row:after { .row:after {
content: ""; content: "";
display: table; display: table;
clear: both; clear: both;
} }
} }
img.pic { img.pic {
width: 175px; width: 175px;
padding: 7px; padding: 7px;
border: 1px solid #ddd; border: 1px solid #ddd;
box-shadow: 4px 4px 5px #888; box-shadow: 4px 4px 5px #888;
} }
</style> </style>
<div class="content"> <div class="content">
<div class="current"> <div class="current">
{{ range where .Pages.ByWeight "Params.current" true }} {{ range where .Pages.ByWeight "Params.current" true }}
<div class="row"> <div class="row">
<h3><strong>{{.Params.name}} {{.Params.degree}}</strong></h3> <h3><strong>{{.Params.name}} {{.Params.degree}}</strong></h3>
<h4>{{.Params.tit}}</h4> <h4>{{.Params.tit}}</h4>
{{ if not (eq .Params.orcid "") }} {{ if not (eq .Params.orcid "") }}
<p> <p>
<a href="https://orcid.org/{{.Params.orcid}}" target="_blank"><img <a href="https://orcid.org/{{.Params.orcid}}" target="_blank"><img
src="https://orcid.org/sites/default/files/images/orcid_16x16.png">orcid.org/{{.Params.orcid}}</a> src="https://orcid.org/sites/default/files/images/orcid_16x16.png">orcid.org/{{.Params.orcid}}</a>
</p> </p>
{{ end }} {{ end }}
<div class="column left"> <div class="column left">
{{ if not (eq .Params.pic "") }} {{ if not (eq .Params.pic "") }}
<img src="images/{{.Params.pic}}" alt="" class="pic"> {{ if (ne .Params.title "Henry_g") }}
{{ end }} <img src="images/{{.Params.pic}}" id={{.Params.title}} alt="" class="pic">
</div> {{ end }}
<div class="column right" style="text-align: justify"> {{ if (eq .Params.title "Henry_g") }}
<p>{{.Content}}</p> <img src="images/{{.Params.pic}}" id={{.Params.title}} alt="" class="pic" onmouseover="changeImage({{.Params.title}}, 'images/henry_g_hat.jpg')" onmouseleave="changeImage({{.Params.title}}, 'images/{{.Params.pic}}')">
</div> {{ end }}
</div> {{ end }}
<hr><br> </div>
{{end}} <div class="column right" style="text-align: justify">
</div> <p>{{.Content}}</p>
<hr> </div>
<h1>Former Members</h1> </div>
<div class="former"> <hr><br>
{{ range where .Pages.ByWeight "Params.current" false }} {{end}}
<div class="row"> </div>
<h3><strong>{{.Params.name}} {{.Params.degree}}</strong></h3> <hr>
<h4>{{.Params.tit}}</h4> <h1>Former Members</h1>
{{ if not (eq .Params.orcid "") }} <div class="former">
<p> {{ range where .Pages.ByWeight "Params.current" false }}
<a href="https://orcid.org/{{.Params.orcid}}"><img <div class="row">
src="https://orcid.org/sites/default/files/images/orcid_16x16.png">orcid.org/{{.Params.orcid}}</a> <h3><strong>{{.Params.name}} {{.Params.degree}}</strong></h3>
</p> <h4>{{.Params.tit}}</h4>
{{ end }} {{ if not (eq .Params.orcid "") }}
<div class="column left"> <p>
{{ if not (eq .Params.pic "") }} <a href="https://orcid.org/{{.Params.orcid}}"><img
<img src="images/{{.Params.pic}}" alt="" class="pic"> src="https://orcid.org/sites/default/files/images/orcid_16x16.png">orcid.org/{{.Params.orcid}}</a>
{{ end }} </p>
</div> {{ end }}
<div class="column right" style="text-align: justify"> <div class="column left">
<p>{{.Content}}</p> {{ if not (eq .Params.pic "") }}
</div> <img src="images/{{.Params.pic}}" alt="" class="pic">
</div> {{ end }}
<hr><br> </div>
{{end}} <div class="column right" style="text-align: justify">
</div> <p>{{.Content}}</p>
</div> </div>
</div>
<hr><br>
{{end}}
</div>
</div>
<script>
function changeImage(id,img){
setTimeout(function() {document.getElementById(id).src=img;},0);
}
</script>
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
\ No newline at end of file
...@@ -6,8 +6,15 @@ ...@@ -6,8 +6,15 @@
</div> </div>
<div class="content"> <div class="content">
{{ range .Pages.ByWeight }} <br>
<li><a href="{{.Permalink}}">{{.Params.name}}</a></li> {{ range where .Pages.ByWeight "Params.current" true }}
<li><b><a href="{{.Permalink}}">{{.Params.name}}</a></b></li>
{{ end }}
<br>
<hr>
<br>
{{ range where .Pages.ByWeight "Params.current" false }}
<li><i><a href="{{.Permalink}}">{{.Params.name}}</a></i></li>
{{ end }} {{ end }}
</div> </div>
......
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