From 5956a60c06d99c8695f084c2ad80fbde39a3895a Mon Sep 17 00:00:00 2001 From: Oliver Kinch Date: Thu, 18 Jul 2024 11:25:43 +0200 Subject: [PATCH] Undo --- _pages/blog.md | 196 +++++++++++++++++++++++++++++++++++++++++ _pages/cv.md | 2 +- _pages/news.md | 7 ++ _pages/projects.md | 65 ++++++++++++++ _pages/repositories.md | 47 ++++++++++ _pages/teaching.md | 12 +++ 6 files changed, 328 insertions(+), 1 deletion(-) create mode 100644 _pages/blog.md create mode 100644 _pages/news.md create mode 100644 _pages/projects.md create mode 100644 _pages/repositories.md create mode 100644 _pages/teaching.md diff --git a/_pages/blog.md b/_pages/blog.md new file mode 100644 index 0000000..d11387f --- /dev/null +++ b/_pages/blog.md @@ -0,0 +1,196 @@ +--- +layout: default +permalink: /blog/ +title: blog +nav: true +nav_order: 1 +pagination: + enabled: true + collection: posts + permalink: /page/:num/ + per_page: 5 + sort_field: date + sort_reverse: true + trail: + before: 1 # The number of links before the current page + after: 3 # The number of links after the current page +--- + +
+ +{% assign blog_name_size = site.blog_name | size %} +{% assign blog_description_size = site.blog_description | size %} + +{% if blog_name_size > 0 or blog_description_size > 0 %} + +
+

{{ site.blog_name }}

+

{{ site.blog_description }}

+
+ {% endif %} + +{% if site.display_tags or site.display_categories %} + +
+
    + {% for tag in site.display_tags %} +
  • + {{ tag }} +
  • + {% unless forloop.last %} +

    + {% endunless %} + {% endfor %} + {% if site.display_categories.size > 0 and site.display_tags.size > 0 %} +

    + {% endif %} + {% for category in site.display_categories %} +
  • + {{ category }} +
  • + {% unless forloop.last %} +

    + {% endunless %} + {% endfor %} +
+
+ {% endif %} + +{% assign featured_posts = site.posts | where: "featured", "true" %} +{% if featured_posts.size > 0 %} +
+ + +
+ +{% endif %} + + + +{% if page.pagination.enabled %} +{% include pagination.liquid %} +{% endif %} + +
diff --git a/_pages/cv.md b/_pages/cv.md index 1b84b75..d752956 100644 --- a/_pages/cv.md +++ b/_pages/cv.md @@ -5,7 +5,7 @@ title: cv nav: true nav_order: 5 cv_pdf: example_pdf.pdf -description: "" +description: toc: sidebar: left --- diff --git a/_pages/news.md b/_pages/news.md new file mode 100644 index 0000000..6223439 --- /dev/null +++ b/_pages/news.md @@ -0,0 +1,7 @@ +--- +layout: page +title: news +permalink: /news/ +--- + +{% include news.liquid %} diff --git a/_pages/projects.md b/_pages/projects.md new file mode 100644 index 0000000..e19d655 --- /dev/null +++ b/_pages/projects.md @@ -0,0 +1,65 @@ +--- +layout: page +title: projects +permalink: /projects/ +description: A growing collection of your cool projects. +nav: true +nav_order: 3 +display_categories: [work, fun] +horizontal: false +--- + + +
+{% if site.enable_project_categories and page.display_categories %} + + {% for category in page.display_categories %} + +

{{ category }}

+
+ {% assign categorized_projects = site.projects | where: "category", category %} + {% assign sorted_projects = categorized_projects | sort: "importance" %} + + {% if page.horizontal %} +
+
+ {% for project in sorted_projects %} + {% include projects_horizontal.liquid %} + {% endfor %} +
+
+ {% else %} +
+ {% for project in sorted_projects %} + {% include projects.liquid %} + {% endfor %} +
+ {% endif %} + {% endfor %} + +{% else %} + + + +{% assign sorted_projects = site.projects | sort: "importance" %} + + + +{% if page.horizontal %} + +
+
+ {% for project in sorted_projects %} + {% include projects_horizontal.liquid %} + {% endfor %} +
+
+ {% else %} +
+ {% for project in sorted_projects %} + {% include projects.liquid %} + {% endfor %} +
+ {% endif %} +{% endif %} +
diff --git a/_pages/repositories.md b/_pages/repositories.md new file mode 100644 index 0000000..676137d --- /dev/null +++ b/_pages/repositories.md @@ -0,0 +1,47 @@ +--- +layout: page +permalink: /repositories/ +title: repositories +description: Edit the `_data/repositories.yml` and change the `github_users` and `github_repos` lists to include your own GitHub profile and repositories. +nav: true +nav_order: 4 +--- + +## GitHub users + +{% if site.data.repositories.github_users %} + +
+ {% for user in site.data.repositories.github_users %} + {% include repository/repo_user.liquid username=user %} + {% endfor %} +
+ +--- + +{% if site.repo_trophies.enabled %} +{% for user in site.data.repositories.github_users %} +{% if site.data.repositories.github_users.size > 1 %} + +

{{ user }}

+ {% endif %} +
+ {% include repository/repo_trophies.liquid username=user %} +
+ +--- + +{% endfor %} +{% endif %} +{% endif %} + +## GitHub Repositories + +{% if site.data.repositories.github_repos %} + +
+ {% for repo in site.data.repositories.github_repos %} + {% include repository/repo.liquid repository=repo %} + {% endfor %} +
+{% endif %} diff --git a/_pages/teaching.md b/_pages/teaching.md new file mode 100644 index 0000000..87bb1a5 --- /dev/null +++ b/_pages/teaching.md @@ -0,0 +1,12 @@ +--- +layout: page +permalink: /teaching/ +title: teaching +description: Materials for courses you taught. Replace this text with your description. +nav: true +nav_order: 6 +--- + +For now, this page is assumed to be a static description of your courses. You can convert it to a collection similar to `_projects/` so that you can have a dedicated page for each course. + +Organize your courses by years, topics, or universities, however you like!