Add 'teaching' section
This commit is contained in:
parent
3406de9fca
commit
e7a749623e
9 changed files with 151 additions and 16 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.hugo_build.lock
|
4
content/teaching/UGA/_index.md
Normal file
4
content/teaching/UGA/_index.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: "Université Grenoble-Alpes (UGA)"
|
||||
link: https://www.univ-grenoble-alpes.fr/
|
||||
---
|
15
content/teaching/UGA/inf301.md
Normal file
15
content/teaching/UGA/inf301.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
title: INF 301
|
||||
longtitle: Algorithmique et Programmation Impérative
|
||||
webpage: https://moodle.caseine.org/course/view.php?id=72
|
||||
date: 2021-11-22
|
||||
start_teaching: 2021
|
||||
draft: false
|
||||
|
||||
files:
|
||||
- title: Polycopiés
|
||||
docs:
|
||||
- title: Introduction au debug de segfaults
|
||||
pdf: bla
|
||||
source: https://git.tobast.fr/tobast/inf301-debug_segfaults
|
||||
---
|
14
content/teaching/_index.md
Normal file
14
content/teaching/_index.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
title: "Teaching"
|
||||
date: 2021-11-22
|
||||
draft: false
|
||||
|
||||
menu:
|
||||
main:
|
||||
weight: 250
|
||||
---
|
||||
|
||||
This page is not an exhaustive list of courses in which I've taught -- whatever
|
||||
the exact role --, but more a link to the relevant, publicly-available
|
||||
resources I needed to share. Please contact me if you want to reuse this
|
||||
material -- if possible, I'm usually very keen on sharing such things :)
|
4
layouts/partials/teaching/coursename.html
Normal file
4
layouts/partials/teaching/coursename.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<span class="course-title">{{ .Title }}</span>
|
||||
{{- with .Params.longtitle -}}
|
||||
<span class="course-longtitle">{{ . }}</span>
|
||||
{{- end }}
|
25
layouts/teaching/list.html
Normal file
25
layouts/teaching/list.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
{{ define "pagename" }}
|
||||
<h2><i class="fa fa-graduation-cap" aria-hidden="true"></i>{{ .Title }}</h2>
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ range sort .Pages "Title" }}
|
||||
<h3 class="teaching-institute">
|
||||
{{- with .Params.link -}}<a href="{{ . }}">{{- end -}}
|
||||
{{ .Title }}
|
||||
{{- with .Params.link -}}</a>{{- end -}}
|
||||
</h3>
|
||||
|
||||
<ul class="teaching-courses">
|
||||
{{ range sort .Pages "Title" }}
|
||||
<li class="course-name">
|
||||
<a href="{{ .Permalink }}">
|
||||
{{- partial "teaching/coursename.html" . -}}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
29
layouts/teaching/single.html
Normal file
29
layouts/teaching/single.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
{{ define "profilepic" }}<div class="nopic"></div>{{ end }}
|
||||
|
||||
{{ define "pagename" }}
|
||||
<div class="course-titleblock">
|
||||
<h2 class="course-name">{{ partial "teaching/coursename.html" . }}</h2>
|
||||
<div class="course-institute">{{ .Parent.Title }}</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
|
||||
{{ range .Params.files }}
|
||||
<h3>{{ .title }}</h3>
|
||||
<ul class="teaching-doclist">
|
||||
{{ range .docs }}
|
||||
<li>
|
||||
{{ .title }}
|
||||
{{ with .pdf }}
|
||||
<span class="doclink"><a href="{{ . }}">[PDF]</a></span>
|
||||
{{ end }}
|
||||
{{ with .source }}
|
||||
<span class="doclink"><a href="{{ . }}">[SRC]</a></span>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
|
@ -90,14 +90,14 @@ body {
|
|||
.profilepic {
|
||||
flex: 0 0 auto;
|
||||
margin: 40px;
|
||||
max-width: $profile_pic_wid;
|
||||
width: $profile_pic_wid;
|
||||
height: auto;
|
||||
@media (max-width: $resp_small) {
|
||||
max-width: $profile_pic_wid_small;
|
||||
width: $profile_pic_wid_small;
|
||||
}
|
||||
@media (max-width: $resp_vsmall) {
|
||||
flex-shrink: 2;
|
||||
max-width: $profile_pic_wid_vsmall;
|
||||
width: $profile_pic_wid_vsmall;
|
||||
order: -1;
|
||||
}
|
||||
|
||||
|
@ -192,8 +192,6 @@ dl {
|
|||
|
||||
ul.publications, ul.talks, ul.unpublished {
|
||||
li {
|
||||
list-style: circle;
|
||||
|
||||
.authors {
|
||||
font-style: italic;
|
||||
|
||||
|
@ -216,3 +214,30 @@ ul.publications, ul.talks, ul.unpublished {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul.teaching-courses {
|
||||
li {
|
||||
list-style: circle;
|
||||
}
|
||||
}
|
||||
|
||||
.course-name {
|
||||
.course-title {
|
||||
font-weight: bold;
|
||||
}
|
||||
.course-longtitle:before {
|
||||
content: ' — '
|
||||
}
|
||||
}
|
||||
|
||||
.course-titleblock {
|
||||
h2 {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.course-institute {
|
||||
text-align: right;
|
||||
font-size: 1.1em;
|
||||
font-style: italic;
|
||||
}
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
@charset "UTF-8";
|
||||
@import url("fonts.css");
|
||||
html {
|
||||
background-color: white; }
|
||||
|
@ -61,15 +62,15 @@ body {
|
|||
#main-container .profilepic {
|
||||
flex: 0 0 auto;
|
||||
margin: 40px;
|
||||
max-width: 350px;
|
||||
width: 350px;
|
||||
height: auto; }
|
||||
@media (max-width: 1350px) {
|
||||
#main-container .profilepic {
|
||||
max-width: 180px; } }
|
||||
width: 180px; } }
|
||||
@media (max-width: 1000px) {
|
||||
#main-container .profilepic {
|
||||
flex-shrink: 2;
|
||||
max-width: 250px;
|
||||
width: 250px;
|
||||
order: -1; } }
|
||||
#main-container .profilepic img {
|
||||
margin: auto;
|
||||
|
@ -137,13 +138,30 @@ dl {
|
|||
unicode-bidi: bidi-override;
|
||||
direction: rtl; }
|
||||
|
||||
ul.publications li, ul.talks li, ul.unpublished li {
|
||||
ul.publications li .authors, ul.talks li .authors, ul.unpublished li .authors {
|
||||
font-style: italic; }
|
||||
ul.publications li .authors .author:after, ul.talks li .authors .author:after, ul.unpublished li .authors .author:after {
|
||||
content: ', '; }
|
||||
ul.publications li .authors .author:last-child:after, ul.talks li .authors .author:last-child:after, ul.unpublished li .authors .author:last-child:after {
|
||||
content: ''; }
|
||||
|
||||
ul.publications li .title, ul.talks li .title, ul.unpublished li .title {
|
||||
font-weight: bold; }
|
||||
|
||||
ul.teaching-courses li {
|
||||
list-style: circle; }
|
||||
ul.publications li .authors, ul.talks li .authors, ul.unpublished li .authors {
|
||||
|
||||
.course-name .course-title {
|
||||
font-weight: bold; }
|
||||
|
||||
.course-name .course-longtitle:before {
|
||||
content: ' — '; }
|
||||
|
||||
.course-titleblock {
|
||||
margin-bottom: 20px; }
|
||||
.course-titleblock h2 {
|
||||
margin-bottom: 10px; }
|
||||
.course-titleblock .course-institute {
|
||||
text-align: right;
|
||||
font-size: 1.1em;
|
||||
font-style: italic; }
|
||||
ul.publications li .authors .author:after, ul.talks li .authors .author:after, ul.unpublished li .authors .author:after {
|
||||
content: ', '; }
|
||||
ul.publications li .authors .author:last-child:after, ul.talks li .authors .author:last-child:after, ul.unpublished li .authors .author:last-child:after {
|
||||
content: ''; }
|
||||
ul.publications li .title, ul.talks li .title, ul.unpublished li .title {
|
||||
font-weight: bold; }
|
||||
|
|
Loading…
Reference in a new issue