diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a8645f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.hugo_build.lock diff --git a/content/teaching/UGA/_index.md b/content/teaching/UGA/_index.md new file mode 100644 index 0000000..69ed413 --- /dev/null +++ b/content/teaching/UGA/_index.md @@ -0,0 +1,4 @@ +--- +title: "Université Grenoble-Alpes (UGA)" +link: https://www.univ-grenoble-alpes.fr/ +--- diff --git a/content/teaching/UGA/inf301.md b/content/teaching/UGA/inf301.md new file mode 100644 index 0000000..c589bbc --- /dev/null +++ b/content/teaching/UGA/inf301.md @@ -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 +--- diff --git a/content/teaching/_index.md b/content/teaching/_index.md new file mode 100644 index 0000000..5d6bde9 --- /dev/null +++ b/content/teaching/_index.md @@ -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 :) diff --git a/layouts/partials/teaching/coursename.html b/layouts/partials/teaching/coursename.html new file mode 100644 index 0000000..896643f --- /dev/null +++ b/layouts/partials/teaching/coursename.html @@ -0,0 +1,4 @@ +{{ .Title }} +{{- with .Params.longtitle -}} + {{ . }} +{{- end }} diff --git a/layouts/teaching/list.html b/layouts/teaching/list.html new file mode 100644 index 0000000..f3206cc --- /dev/null +++ b/layouts/teaching/list.html @@ -0,0 +1,25 @@ +{{ define "pagename" }} +

{{ .Title }}

+{{ end }} + +{{ define "main" }} +{{ .Content }} +{{ range sort .Pages "Title" }} +

+ {{- with .Params.link -}}{{- end -}} + {{ .Title }} + {{- with .Params.link -}}{{- end -}} +

+ + + +{{ end }} +{{ end }} diff --git a/layouts/teaching/single.html b/layouts/teaching/single.html new file mode 100644 index 0000000..96cac4d --- /dev/null +++ b/layouts/teaching/single.html @@ -0,0 +1,29 @@ +{{ define "profilepic" }}
{{ end }} + +{{ define "pagename" }} +
+

{{ partial "teaching/coursename.html" . }}

+
{{ .Parent.Title }}
+
+{{ end }} + +{{ define "main" }} +{{ .Content }} + +{{ range .Params.files }} +

{{ .title }}

+ +{{ end }} +{{ end }} diff --git a/scss/style.scss b/scss/style.scss index 5c7b875..762c5de 100644 --- a/scss/style.scss +++ b/scss/style.scss @@ -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; +} diff --git a/static/css/style.css b/static/css/style.css index 2d78907..9b52fb2 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -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; }