Skip to content

Commit

Permalink
Add lastmod to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaillat committed Mar 24, 2024
1 parent 6391145 commit a5251a6
Show file tree
Hide file tree
Showing 67 changed files with 301 additions and 149 deletions.
2 changes: 1 addition & 1 deletion content/archive.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Archive"
date: 2024-03-22
lastmod: 2024-02-27
author: "Pascal Michaillat"
description: "Pascal Michaillat's research papers, course material, and design projects listed in reverse chronological order."
layout: "archives"
Expand Down
1 change: 1 addition & 0 deletions content/courses/c3.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Mathematics for Macroeconomics"
date: 2013-10-01
lastmod: 2023-10-01
url: /c3/
aliases:
- /t3.html
Expand Down
1 change: 1 addition & 0 deletions content/courses/c4.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Intermediate Macroeconomics"
date: 2018-12-15
lastmod: 2024-01-22
url: /c4/
aliases:
- /t2.html
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"
date: 2024-03-22
lastmod: 2024-03-22
url: /location/
author: "Pascal Michaillat"
description: "Pascal Michaillat's mailing addresses and office address at the University of California, Santa Cruz."
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"
date: 2024-03-22
lastmod: 2024-03-22
url: /officehours/
author: "Pascal Michaillat"
description: "Schedule and location of Prof. Michaillat's office hours at the University of California, Santa Cruz."
Expand Down
1 change: 1 addition & 0 deletions content/papers/1.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Do Matching Frictions Explain Unemployment? Not in Bad Times"
date: 2012-06-01
lastmod: 2024-01-19
url: /1/
aliases:
- /1.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/10.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Persistence of False Paradigms in Low-Power Sciences"
date: 2018-12-26
lastmod: 2024-01-25
url: /10/
aliases:
- /10.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/11.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Resolving New Keynesian Anomalies with Wealth in the Utility Function"
date: 2021-05-10
lastmod: 2024-01-19
url: /11/
aliases:
- /11.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/13.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "u* = √uv"
date: 2023-01-23
lastmod: 2023-12-15
url: /13/
aliases:
- /13.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/14.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Modeling the Displacement of Native Workers by Immigrants"
date: 2023-11-05
lastmod: 2024-03-14
url: /14/
tags: ["business cycles","efficiency","job rationing","matching function","state dependence","unemployment","wage rigidity"]
author: ["Pascal Michaillat"]
Expand Down
1 change: 1 addition & 0 deletions content/papers/15.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Moen Meets Rotemberg: An Earthly Model of the Divine Coincidence"
date: 2024-01-20
lastmod: 2024-03-20
url: /15/
tags: ["business cycles","economic slack","efficiency","matching function","monetary policy","optimal control","price rigidity","social psychology","stabilization policy","sufficient statistics","unemployment gap","wealth in the utility","Phillips curve"]
author: ["Pascal Michaillat","Emmanuel Saez"]
Expand Down
1 change: 1 addition & 0 deletions content/papers/2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "A Theory of Countercyclical Government Multiplier"
date: 2014-01-01
lastmod: 2024-01-19
url: /2/
aliases:
- /2.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/3.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Aggregate Demand, Idle Time, and Unemployment"
date: 2015-05-01
lastmod: 2024-01-19
url: /3/
aliases:
- /3.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/4.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "A Macroeconomic Approach to Optimal Unemployment Insurance: Theory"
date: 2018-05-01
lastmod: 2024-01-19
url: /4/
aliases:
- /4.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/5.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "A Macroeconomic Approach to Optimal Unemployment Insurance: Applications"
date: 2018-05-02
lastmod: 2024-01-19
url: /5/
aliases:
- /5.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/6.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Optimal Public Expenditure with Inefficient Unemployment"
date: 2019-05-01
lastmod: 2024-01-19
url: /6/
aliases:
- /6.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/7.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "An Economical Business-Cycle Model"
date: 2022-04-01
lastmod: 2024-01-25
url: /7/
aliases:
- /7.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/8.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Pricing under Fairness Concerns"
date: 2021-06-01
lastmod: 2024-01-25
url: /8/
aliases:
- /8.html
Expand Down
1 change: 1 addition & 0 deletions content/papers/9.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: "Beveridgean Unemployment Gap"
date: 2021-12-01
lastmod: 2024-01-19
url: /9/
aliases:
- /9.html
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/templates/opengraph.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<meta property="og:title" content="{{ .Title }}" />
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{if (eq .Kind `term`) }} Pascal Michaillat's research papers and course material related to: {{ .Title }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}{{ end }}" />
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
<meta property="og:url" content="{{ .Permalink }}" />
{{- if .Params.cover.image -}}
Expand Down
118 changes: 118 additions & 0 deletions layouts/partials/templates/schema_json.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{{ if .IsHome }}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "{{- ( site.Params.schema.publisherType | default "Organization") | title -}}",
"name": {{ site.Title }},
"url": {{ site.BaseURL }},
"description": {{ site.Params.description | plainify | truncate 180 | safeHTML }},
"thumbnailUrl": {{ site.Params.assets.favicon | default "favicon.ico" | absURL }},
"sameAs": [
{{- if site.Params.schema.sameAs }}
{{ range $i, $e := site.Params.schema.sameAs }}{{ if $i }}, {{ end }}{{ trim $e " " }}{{ end }}
{{- else}}
{{ range $i, $e := site.Params.SocialIcons }}{{ if $i }}, {{ end }}{{ trim $e.url " " }}{{ end }}
{{- end}}
]
}
</script>
{{- else if (or .IsPage .IsSection) }}
{{/* BreadcrumbList */}}
{{- $url := replace .Parent.Permalink ( printf "%s" site.BaseURL) "" }}
{{- $lang_url := strings.TrimPrefix ( printf "%s/" .Lang) $url }}
{{- $bc_list := (split $lang_url "/")}}

{{- $scratch := newScratch }}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{{- range $index, $element := $bc_list }}

{{- $scratch.Add "path" (printf "%s/" $element ) | safeJS }}
{{- $bc_pg := site.GetPage ($scratch.Get "path") -}}
{{- if (and ($bc_pg) (gt (len . ) 0))}}
{{- if (and $index)}}, {{end }}
{
"@type": "ListItem",
"position": {{ add 1 $index }},
"name": {{ $bc_pg.Name }},
"item": {{ $bc_pg.Permalink | safeHTML }}
}
{{- end }}
{{- end }}
{{- /* self-page addition */ -}}
{{- if (ge (len $bc_list) 2) }}, {{end }}
{
"@type": "ListItem",
"position": {{len $bc_list}},
"name": {{ .Name }},
"item": {{ .Permalink | safeHTML }}
}
]
}
</script>
{{- if .IsPage }}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": {{ .Title | plainify}},
"name": "{{ .Title | plainify }}",
"description": {{ with .Description | plainify }}{{ . }}{{ else }}{{ .Summary | plainify }}{{ end -}},
"keywords": [
{{- if .Params.keywords }}
{{ range $i, $e := .Params.keywords }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
{{- else }}
{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
{{- end }}
],
"articleBody": {{ .Content | safeJS | htmlUnescape | plainify }},
"wordCount" : "{{ .WordCount }}",
"inLanguage": {{ .Language.Lang | default "en-us" }},
{{ if .Params.cover.image -}}
"image":
{{- if (ne .Params.cover.relative true) -}}
{{ .Params.cover.image | absURL }},
{{- else -}}
{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
{{- end}}
{{- end -}}
"datePublished": {{ .PublishDate }},
"dateModified": {{ .Lastmod }},
{{- with (.Params.author | default site.Params.author) }}
"author":
{{- if (or (eq (printf "%T" .) "[]string") (eq (printf "%T" .) "[]interface {}")) -}}
[{{- range $i, $v := . -}}
{{- if $i }}, {{end -}}
{
"@type": "Person",
"name": {{ $v }}
}
{{- end }}],
{{- else -}}
{
"@type": "Person",
"name": {{ . }}
},
{{- end -}}
{{- end }}
"mainEntityOfPage": {
"@type": "WebPage",
"@id": {{ .Permalink | safeHTML }}
},
"publisher": {
"@type": "{{- ( site.Params.schema.publisherType | default "Organization") | title -}}",
"name": {{ site.Title }},
"logo": {
"@type": "ImageObject",
"url": {{ site.Params.assets.favicon | default "favicon.ico" | absURL }}
}
}
}
</script>
{{- end }}
{{- end -}}
33 changes: 33 additions & 0 deletions layouts/partials/templates/twitter_cards.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{{- if .Params.cover.image -}}
<meta name="twitter:card" content="summary_large_image" />
{{- if (ne $.Params.cover.relative true) }}
<meta name="twitter:image" content="{{ .Params.cover.image | absURL }}" />
{{- else }}
<meta name="twitter:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}" />
{{- end}}
{{- else }}
{{- with $.Params.images -}}
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
{{ else -}}
{{- $images := $.Resources.ByType "image" -}}
{{- $featured := $images.GetMatch "*feature*" -}}
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
{{- with $featured -}}
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="{{ $featured.Permalink }}"/>
{{- else -}}
{{- with site.Params.images -}}
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="{{ index . 0 | absURL }}"/>
{{ else -}}
<meta name="twitter:card" content="summary"/>
{{- end -}}
{{- end -}}
{{- end }}
{{- end }}
<meta name="twitter:title" content="{{ .Title }}"/>
<meta name="twitter:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{if (eq .Kind `term`) }}Pascal Michaillat's research papers and course material related to: {{ .Title }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}{{ end }}"/>
{{ with site.Social.twitter -}}
<meta name="twitter:site" content="@{{ . }}"/>
{{ end -}}
4 changes: 2 additions & 2 deletions public/1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<meta property="og:url" content="https://pascalmichaillat.org/1/" />
<meta property="og:image" content="https://pascalmichaillat.org/1.png" /><meta property="article:section" content="papers" />
<meta property="article:published_time" content="2012-06-01T00:00:00+00:00" />
<meta property="article:modified_time" content="2012-06-01T00:00:00+00:00" />
<meta property="article:modified_time" content="2024-01-19T00:00:00+00:00" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://pascalmichaillat.org/1.png" />
Expand Down Expand Up @@ -74,7 +74,7 @@
"wordCount" : "180",
"inLanguage": "en",
"image":"https://pascalmichaillat.org/1.png","datePublished": "2012-06-01T00:00:00Z",
"dateModified": "2012-06-01T00:00:00Z",
"dateModified": "2024-01-19T00:00:00Z",
"author":{
"@type": "Person",
"name": "Pascal Michaillat"
Expand Down
4 changes: 2 additions & 2 deletions public/10/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<meta property="og:url" content="https://pascalmichaillat.org/10/" />
<meta property="og:image" content="https://pascalmichaillat.org/10.png" /><meta property="article:section" content="papers" />
<meta property="article:published_time" content="2018-12-26T00:00:00+00:00" />
<meta property="article:modified_time" content="2018-12-26T00:00:00+00:00" />
<meta property="article:modified_time" content="2024-01-25T00:00:00+00:00" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://pascalmichaillat.org/10.png" />
Expand Down Expand Up @@ -74,7 +74,7 @@
"wordCount" : "411",
"inLanguage": "en",
"image":"https://pascalmichaillat.org/10.png","datePublished": "2018-12-26T00:00:00Z",
"dateModified": "2018-12-26T00:00:00Z",
"dateModified": "2024-01-25T00:00:00Z",
"author":[{
"@type": "Person",
"name": "George Akerlof"
Expand Down
4 changes: 2 additions & 2 deletions public/11/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<meta property="og:url" content="https://pascalmichaillat.org/11/" />
<meta property="og:image" content="https://pascalmichaillat.org/11.png" /><meta property="article:section" content="papers" />
<meta property="article:published_time" content="2021-05-10T00:00:00+00:00" />
<meta property="article:modified_time" content="2021-05-10T00:00:00+00:00" />
<meta property="article:modified_time" content="2024-01-19T00:00:00+00:00" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://pascalmichaillat.org/11.png" />
Expand Down Expand Up @@ -74,7 +74,7 @@
"wordCount" : "193",
"inLanguage": "en",
"image":"https://pascalmichaillat.org/11.png","datePublished": "2021-05-10T00:00:00Z",
"dateModified": "2021-05-10T00:00:00Z",
"dateModified": "2024-01-19T00:00:00Z",
"author":[{
"@type": "Person",
"name": "Pascal Michaillat"
Expand Down
4 changes: 2 additions & 2 deletions public/13/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<meta property="og:url" content="https://pascalmichaillat.org/13/" />
<meta property="og:image" content="https://pascalmichaillat.org/13.png" /><meta property="article:section" content="papers" />
<meta property="article:published_time" content="2023-01-23T00:00:00+00:00" />
<meta property="article:modified_time" content="2023-01-23T00:00:00+00:00" />
<meta property="article:modified_time" content="2023-12-15T00:00:00+00:00" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://pascalmichaillat.org/13.png" />
Expand Down Expand Up @@ -74,7 +74,7 @@
"wordCount" : "250",
"inLanguage": "en",
"image":"https://pascalmichaillat.org/13.png","datePublished": "2023-01-23T00:00:00Z",
"dateModified": "2023-01-23T00:00:00Z",
"dateModified": "2023-12-15T00:00:00Z",
"author":[{
"@type": "Person",
"name": "Pascal Michaillat"
Expand Down
Loading

0 comments on commit a5251a6

Please sign in to comment.