Skip to content

Commit

Permalink
Merge branch 'pr/5'
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaillat committed Jun 14, 2024
2 parents dc59e3f + 6abbff5 commit c3f57cd
Show file tree
Hide file tree
Showing 215 changed files with 2,805 additions and 4,485 deletions.
2 changes: 0 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
MIT License

Copyright (c) 2023–2024 Pascal Michaillat
Copyright (c) 2020-2022 adityatelange
Copyright (c) 2018 nanxiaobei

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 3 additions & 6 deletions assets/css/common/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@
margin-inline-start: auto;
}

.social-icons {
padding: 12px 0;
}

.social-icons a:not(:last-of-type) {
margin-inline-end: 12px;
.social-icons a {
display: inline-flex;
padding: 10px;
}

.social-icons a svg {
Expand Down
10 changes: 7 additions & 3 deletions assets/css/common/post-entry.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,17 @@
bottom: 0;
}

.entry-cover,
.entry-isdraft {
font-size: var(--entrysize);
.entry-hint {
color: var(--secondary);
}

.entry-hint-parent {
display: flex;
justify-content: space-between;
}

.entry-cover {
font-size: var(--entrysize);
margin-bottom: var(--gap);
text-align: center;
}
Expand Down
40 changes: 23 additions & 17 deletions assets/css/common/post-single.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
box-shadow: 0 2px 0 var(--darkpurple);
color: currentColor;
}
}

.post-content a code {
margin: auto 0;
Expand All @@ -91,8 +90,7 @@
}

.post-content del {
text-decoration: none;
background: linear-gradient(to right, var(--primary) 100%, transparent 0) 0 50%/1px 1px repeat-x;
text-decoration: line-through;
}

.post-content dl,
Expand Down Expand Up @@ -144,19 +142,18 @@
}

.post-content table {
margin-bottom: 32px;
margin-bottom: var(--content-gap);
}

.post-content table th,
.post-content table:not(.highlighttable, .highlight table, .gist .highlight) td {
min-width: 80px;
padding: 12px 8px;
padding: 8px 5px;
line-height: var(--lineheight);
border-bottom: 1px solid var(--border);
}

.post-content table th {
font-size: 14px;
text-align: start;
}

Expand All @@ -170,7 +167,7 @@

.post-content .highlight:not(table) {
margin: 10px auto;
background: var(--hljs-bg) !important;
background: var(--code-block-bg) !important;
border-radius: var(--radius);
direction: ltr;
}
Expand Down Expand Up @@ -215,7 +212,7 @@
}

.post-content pre code {
display: block;
display: grid;
margin: auto 0;
padding: 10px;
color: var(--secondary);
Expand Down Expand Up @@ -317,10 +314,19 @@
margin-top: 60px;
}

.post-footer>* {
margin-bottom: 10px;
}

.post-tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
}


.post-tags li {
display: inline-block;
margin-inline-end: 5px;
margin-bottom: 10px;
}

.post-tags a,
Expand All @@ -333,8 +339,7 @@

.post-tags a {
display: block;
padding-inline-start: 10px;
padding-inline-end: 10px;
padding: 0 10px;
color: var(--secondary);
font-size: 16px;
line-height: 32px;
Expand All @@ -350,17 +355,19 @@
}

.share-buttons {
margin: 13px 0;
padding-inline-start: var(--radius);
padding: 10px;
display: flex;
justify-content: center;
overflow-x: auto;
gap: 10px;
}

.share-buttons li,
.share-buttons a {
margin-top: 10px;
display: inline-flex;
}


.share-buttons a:not(:last-of-type) {
margin-inline-end: 12px;
}
Expand All @@ -380,11 +387,10 @@ h6:hover .anchor {
}

.paginav {
margin: 10px 0;
/* margin: 10px 0;*/
display: flex;
line-height: var(--lineheight);
font-size: var(--footersize);
border-radius: var(--radius);
}

.paginav a {
Expand Down
12 changes: 7 additions & 5 deletions assets/css/common/profile-mode.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,29 @@
}
.main .profile {
align-items: center;
/* min-height: calc(100vh - (var(--gap) * 2));*/
/* min-height: calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2));*/
min-height: calc(100vh - var(--footer-height) - (var(--gap) * 2));
font-size: var(--homesize);
line-height: var(--lineheight);
}

.profile .profile_inner {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}

.profile .profile_inner h1 {
padding: 12px 0;
font-size: 40px;
}

.profile img {
display: inline-table;
border-radius: 50%;
border: 1px solid rgb(207, 207, 207);
}

.buttons {
flex-wrap: wrap;
margin: 0 auto;
}

.button {
Expand Down
4 changes: 2 additions & 2 deletions assets/css/core/theme-vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
--tertiary: rgb(214, 214, 214);
--gray: rgb(165, 165, 165);
--content: rgb(30, 30, 30);
--hljs-bg: rgb(28, 29, 33);
--code-block-bg: rgb(28, 29, 33);
--code-bg: rgb(245, 245, 245);
--border: rgb(238, 238, 238);
--darkpurple: #8e7bd0;
Expand All @@ -38,7 +38,7 @@
--secondary: rgb(155, 156, 157);
--tertiary: rgb(65, 66, 68);
--content: rgb(196, 196, 197);
--hljs-bg: rgb(46, 46, 51);
--code-block-bg: rgb(46, 46, 51);
--code-bg: rgb(55, 56, 62);
--border: rgb(51, 51, 51);
}
Expand Down
7 changes: 5 additions & 2 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ menu:
weight: 5

params:
description: "I am a Professor of Philology at the Institute of Romance Philology in Regensburg, Germany. My research focuses mostly on Portuguese irregular verbs.
consequat."
description: "I am a Professor of Philology at the Institute of Romance Philology in Regensburg, Germany. My research focuses mostly on Portuguese irregular verbs."
author: Moritz-Maria von Igelfeld
# googleAnalyticsID: "G-XXXXX"
DateFormat: "January 2006"
Expand All @@ -43,6 +42,8 @@ consequat."
ShowPostNavLinks: false
ShowBreadCrumbs: false
ShowCodeCopyButtons: true
ShowAllPagesInArchive: false
MainSections: ["books","courses","papers","data"]
ShowRssButtonInSectionTermList: false
ShowToc: false
disableScrollToTop: true
Expand Down Expand Up @@ -88,6 +89,8 @@ consequat."
url: officehours/
- name: GitHub
url: https://github.com/pmichaillat
- name: Substack
url: https://pmichaillat.substack.com
- name: YouTube
url: https://www.youtube.com/@alexandermccallsmithoffici9000
- name: Twitter
Expand Down
2 changes: 1 addition & 1 deletion content/location.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Location"
lastmod: 2024-05-08
date: 2024-05-08
hidemeta: true
description: "Professor Dr von Igelfeld's mailing and office addresses at the Institute of Romance Philology."

Expand Down
2 changes: 1 addition & 1 deletion content/officehours.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Office Hours"
lastmod: 2024-05-08
date: 2024-05-08
hidemeta: true
description: "Schedule and location for Professor Dr von Igelfeld's office hours."
---
Expand Down
20 changes: 12 additions & 8 deletions layouts/_default/archives.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,32 @@
<header class="page-header">
</header>

{{- $pages := site.RegularPages}}
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- if site.Params.ShowAllPagesInArchive }}
{{- $pages = site.RegularPages }}
{{- end }}

{{- range $pages.GroupByPublishDate "2006" }}
{{- if ne .Key "0001" }}
<div class="archive-year">
<h2 class="archive-year-header">
{{- replace .Key "0001" "" }}
</h2>
{{- $year := replace .Key "0001" "" }}
<h2 class="archive-year-header" id="{{ $year }}">
<a class="archive-header-link" href="#{{ $year }}">
{{- $year -}}
</a>
{{- range .Pages.GroupByDate "January" }}
<div class="archive-month">
<h3 class="archive-month-header">{{- .Key }}
<h3 class="archive-month-header" id="{{ $year }}-{{ .Key }}">
<a class="archive-header-link" href="#{{ $year }}-{{ .Key }}">
{{- .Key -}}
</a>
</h3>
<div class="archive-posts">
{{- range .Pages }}
{{- if eq .Kind "page" }}
<div class="archive-entry">
<h3 class="archive-entry-title">
<h3 class="archive-entry-title entry-hint-parent">
{{- .Title | markdownify }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
</h3>
<a class="entry-link" aria-label="post link to {{ .Title | plainify }}" href="{{ .Permalink }}"></a>
</div>
Expand All @@ -37,4 +41,4 @@ <h3 class="archive-entry-title">
{{- end }}
{{- end }}

{{- end }}{{/* end main */}}
{{- end }}
4 changes: 4 additions & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{{- if lt hugo.Version "0.112.4" }}
{{- errorf "=> hugo v0.112.4 or greater is required for hugo-PaperMod to build " }}
{{- end -}}

<!DOCTYPE html>
<html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">

Expand Down
17 changes: 3 additions & 14 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ <h1>
{{- if (eq .Kind `term`) }}
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" stroke-width="2" fill="currentColor" class="bi bi-tag" viewBox="0 0 16 14"> <path d="M6 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm-1 0a.5.5 0 1 0-1 0 .5.5 0 0 0 1 0z"/> <path d="M2 1h4.586a1 1 0 0 1 .707.293l7 7a1 1 0 0 1 0 1.414l-4.586 4.586a1 1 0 0 1-1.414 0l-7-7A1 1 0 0 1 1 6.586V2a1 1 0 0 1 1-1zm0 5.586 7 7L13.586 9l-7-7H2v4.586z"/> </svg>&nbsp; {{ .Title }}
{{- end}}
{{- if and (or (eq .Kind `term`) (eq .Kind `section`)) (.Param "ShowRssButtonInSectionTermList") }}
<a href="index.xml" title="RSS" aria-label="RSS">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round" height="23">
<path d="M4 11a9 9 0 0 1 9 9" />
<path d="M4 4a16 16 0 0 1 16 16" />
<circle cx="5" cy="19" r="1" />
</svg>
</a>
{{- end }}
</h1>
</header>
{{- end }}
Expand Down Expand Up @@ -59,12 +49,11 @@ <h1>
{{- end }}

<article class="{{ $class }}">
{{- $isHidden := (site.Params.cover.hidden | default site.Params.cover.hiddenInList) }}
{{- partial "cover.html" (dict "cxt" . "IsHome" true "isHidden" $isHidden) }}
{{- $isHidden := (.Param "cover.hiddenInList") | default (.Param "cover.hidden") | default false }}
{{- partial "cover.html" (dict "cxt" . "IsSingle" false "isHidden" $isHidden) }}
<header class="entry-header">
<h2>
<h2 class="entry-hint-parent">
{{- .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
</h2>
</header>
{{- if (ne (.Param "hideSummary") true) }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1>{{ .Title }} &nbsp;</h1>

<div id="searchbox">
<input id="searchInput" autofocus placeholder="{{ .Params.placeholder | default (printf "%s↵" .Title) }}"
aria-label="search" type="search" autocomplete="off">
aria-label="search" type="search" autocomplete="off" maxlength="64">
<ul id="searchResults" aria-label="search results"></ul>
</div>

Expand Down
7 changes: 3 additions & 4 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
<article class="post-single">
<header class="post-header">
{{ partial "breadcrumbs.html" . }}
<h1 class="post-title">
<h1 class="post-title entry-hint-parent">
{{ .Title }}
{{- if .Draft }}<sup><span class="entry-isdraft">&nbsp;&nbsp;[draft]</span></sup>{{- end }}
</h1>
{{- if not (.Param "hideMeta") }}
<div class="post-meta">
Expand All @@ -16,8 +15,8 @@ <h1 class="post-title">
</div>
{{- end }}
</header>
{{- $isHidden := .Params.cover.hidden | default site.Params.cover.hiddenInSingle | default site.Params.cover.hidden }}
{{- partial "cover.html" (dict "cxt" . "IsHome" false "isHidden" $isHidden) }}
{{- $isHidden := (.Param "cover.hiddenInSingle") | default (.Param "cover.hidden") | default false }}
{{- partial "cover.html" (dict "cxt" . "IsSingle" true "isHidden" $isHidden) }}
{{- if (.Param "ShowToc") }}
{{- partial "toc.html" . }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/edit_post.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if or .Params.editPost.URL site.Params.editPost.URL -}}
{{- if and (or .Params.editPost.URL site.Params.editPost.URL) (not (.Param "editPost.disabled")) -}}
{{- $fileUrlPath := path.Join .File.Path }}

{{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }}&nbsp;&middot;&nbsp;{{- end -}}
Expand Down
Loading

0 comments on commit c3f57cd

Please sign in to comment.