diff options
-rw-r--r-- | layouts/partials/footer.html | 2 | ||||
-rw-r--r-- | layouts/section/about.html | 43 | ||||
-rw-r--r-- | layouts/section/archive.html | 3 | ||||
-rw-r--r-- | static/css/main.css | 6 |
4 files changed, 33 insertions, 21 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index ad30004..44bd518 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -100,7 +100,7 @@ "
>
<h3>Recent</h3>
- <ol style="padding-left: 0.75em;">
+ <ol style="padding-left: 1em;">
{{ range ((where .Site.Pages "Kind" "page").ByDate.Reverse) | first 5 }}
<li>
<a href="{{ .Permalink }}">{{ .Title | truncate 25 }}</a>
diff --git a/layouts/section/about.html b/layouts/section/about.html index 1b0c414..8c60c1e 100644 --- a/layouts/section/about.html +++ b/layouts/section/about.html @@ -1,5 +1,4 @@ -{{ define "main" }} -{{ partial "social" . }} +{{ define "main" }} {{ partial "social" . }} <img src="{{ .Params.profileImage }}" alt="profile image of {{ .Site.Params.author }}" @@ -11,21 +10,29 @@ " /> -<div - style=" - display: flex; - justify-content: center; - flex-direction: column; - border-bottom: solid 3px; - " -> - <h1 style="margin: 1em 0 0.15em 0;"> - {{ .Params.prefix }} {{ .Params.name }}, {{ .Params.suffix }} - </h1> - <h2 style="margin: 0.15em 0;">{{ .Params.jobTitle }}</h2> - <h3 style="margin: 0.15em 0;">{{ .Params.office }}, {{ .Params.location }}</h3> +<div style="margin-bottom: 3em;"> + <div + style=" + display: flex; + justify-content: center; + flex-direction: column; + border-bottom: solid 3px; + " + > + <h1 style="margin: 1em 0 0.15em 0;"> + {{ .Params.prefix }} {{ .Params.name }}, {{ .Params.suffix }} + </h1> + <h2 style="margin: 0.15em 0;">{{ .Params.jobTitle }}</h2> + <h3 style="margin: 0.15em 0;"> + {{ .Params.office }}, {{ .Params.location }} + </h3> + </div> + {{ .Content }} +</div> +<div style="margin-bottom: 3em;"> + {{ partial "about/education" . }} +</div> +<div> + {{ partial "about/publications" . }} </div> -{{ .Content }} -{{ partial "about/education" . }} -{{ partial "about/publications" . }} {{ end }} diff --git a/layouts/section/archive.html b/layouts/section/archive.html index 9c64820..0c3976e 100644 --- a/layouts/section/archive.html +++ b/layouts/section/archive.html @@ -1,7 +1,7 @@ {{ define "main" }} <h1 style="margin: 0 0 0.5em 0;">{{ .Title }}</h1> {{$paginator := .Paginate (where .Site.Pages "Kind" "page").ByDate.Reverse 50 }} -<table style="width: 100%;"> +<table> <thead> <tr> <th>Date</th> @@ -21,5 +21,4 @@ {{ end }} </tbody> </table> - {{ end }} diff --git a/static/css/main.css b/static/css/main.css index 793687d..98e3c5a 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -52,6 +52,7 @@ pre { border-radius: 5px;
background-color: var(--bgPre) !important;
overflow: auto;
+ border: solid 1px var(--textColor);
}
h1,
h2,
@@ -135,7 +136,11 @@ strong { text-decoration: none;
}
table {
+ text-align: center;
+ text-align: -moz-center;
border-collapse: collapse;
+ display: block;
+ overflow-x: auto;
}
thead {
border-top: solid 3px var(--textColor);
@@ -148,6 +153,7 @@ th, td {
border: solid 1px var(--textColor);
padding: 0.25em 0.5em;
+ text-align: left;
}
mark {
background-color: var(--highlight);
|