diff --git a/layouts/404.html b/layouts/404.html index c79659f1..3cf31f7b 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -5,15 +5,15 @@

Page not found

Maybe you were looking for one of these?

-

Recent News

- {{ range last 20 (where .Data.Pages "Section" "=" "blog") }} +

Recent Posts

+ {{ range last 20 (where .Data.Pages "Section" "=" "post") }} {{ end }}

Recent Publications

- {{ range last 20 (where .Data.Pages "Section" "=" "publications") }} + {{ range last 20 (where .Data.Pages "Section" "=" "publication") }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index aa68f602..02e8557f 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -4,12 +4,15 @@

{{ .Title }}

{{ partial "article_metadata" . }} +
{{ .Content }}
{{ partial "section_item_pager.html" . }} + {{ partial "comments.html" . }} + {{ partial "footer_container.html" . }} diff --git a/layouts/_default/teaching.html b/layouts/_default/teaching.html deleted file mode 100644 index fb3ffc23..00000000 --- a/layouts/_default/teaching.html +++ /dev/null @@ -1 +0,0 @@ -{{ .Content }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index bc70889c..0d0e1258 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,84 +2,121 @@ {{ partial "navbar.html" . }}
+ {{ range $index, $page := where .Site.Pages "Section" "=" "home" }} {{ if eq .Title "about" }} -
- {{ .Render "bio" }} +
+ {{ partial "home_biography" . }}
{{ end }} {{ end }} -
-

Recent Publications

-
    - {{ range first 5 (where .Data.Pages.ByDate "Section" "publications").Reverse }} -
  • - - {{ .Title | markdownify }} - Details - {{ with .Params.url_pdf }}PDF{{ end }} - {{ with .Params.url_code }}Code{{ end }} - {{ with .Params.url_dataset }}Dataset{{ end }} - {{ with .Params.url_project }}Project{{ end }} - {{ range .Params.url_custom }}{{ .name }}{{ end }} -
  • - {{ end }} -
-

More Publications

-
- - -
-

News

- {{ range last 5 (where .Data.Pages "Section" "=" "blog") }} -
-

{{ .Title }}

- {{ partial "article_metadata" . }} -

- {{ if .Truncated }} - {{ .Summary }} - Read More - {{ else }} - {{ .Content }} - {{ end }} -

+ +
+
+
+

Recent Publications

+

More Publications

+
+
+
    + {{ range first 5 (where .Data.Pages.ByDate "Section" "publication").Reverse }} +
  • + + {{ .Title | markdownify }} +

    {{ partial "publication_list_buttons" . }}

    +
  • + {{ end }} +
+
- {{ end }} -

More Posts

-
-

Projects

- + +
+
+
+

Posts

+

More Posts

+
+
+ {{ range last 5 (where .Data.Pages "Section" "=" "post") }} +
+

{{ .Title }}

+ {{ partial "article_metadata_compact" . }} +

+ {{ if .Truncated }} + {{ .Summary }} + {{ else }} + {{ .Content | markdownify }} + {{ end }} +

+

+ Read more +

+
+ {{ end }} +
+
+ +
+
+
+

Projects

+
+
+ +
+
+
+ + + {{ range $index, $page := where .Site.Pages "Section" "=" "home" }} - {{ if eq .Title "teaching" }} -
- {{ .Render "teaching" }} + {{ if and (isset .Params "section_id") (not (eq .Params.section_id 0)) }} + {{ $title_words := split $page.Title " " }} +
+
+
+

{{ title $page.Title }}

+
+
+ {{ $page.Content }} +
+
{{ end }} {{ end }} -
-

Contact

- {{ partial "contact.html" . }} + +
+
+
+

Contact

+
+
+ {{ partial "home_contact.html" . }} +
+
+ + {{ partial "footer_container.html" . }}
diff --git a/layouts/partials/article_metadata.html b/layouts/partials/article_metadata.html index 89173a1e..0015429a 100644 --- a/layouts/partials/article_metadata.html +++ b/layouts/partials/article_metadata.html @@ -1,7 +1,6 @@ diff --git a/layouts/partials/article_metadata_compact.html b/layouts/partials/article_metadata_compact.html new file mode 100644 index 00000000..f9093bfd --- /dev/null +++ b/layouts/partials/article_metadata_compact.html @@ -0,0 +1,19 @@ + diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html new file mode 100644 index 00000000..dbed6421 --- /dev/null +++ b/layouts/partials/comments.html @@ -0,0 +1,7 @@ +{{ if not (isset .Site.Params "disable_comments") }} +
+
+ {{ template "_internal/disqus.html" . }} +
+
+{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a66789bd..5bdb568f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,6 @@ + + @@ -31,10 +33,12 @@ + {{ if and (isset .Params "math") (eq .Params.math true) }} + {{ end }} diff --git a/layouts/partials/footer_container.html b/layouts/partials/footer_container.html index 35a016f4..a10ffd1b 100644 --- a/layouts/partials/footer_container.html +++ b/layouts/partials/footer_container.html @@ -1,11 +1,12 @@