From a5251a682eedb61f5b4c605d0b1891168b10100c Mon Sep 17 00:00:00 2001 From: Pascal Michaillat <85443660+pmichaillat@users.noreply.github.com> Date: Mon, 25 Mar 2024 07:40:02 +0900 Subject: [PATCH] Add lastmod to metadata --- content/archive.md | 2 +- content/courses/c3.md | 1 + content/courses/c4.md | 1 + content/location.md | 2 +- content/officehours.md | 2 +- content/papers/1.md | 1 + content/papers/10.md | 1 + content/papers/11.md | 1 + content/papers/13.md | 1 + content/papers/14.md | 1 + content/papers/15.md | 1 + content/papers/2.md | 1 + content/papers/3.md | 1 + content/papers/4.md | 1 + content/papers/5.md | 1 + content/papers/6.md | 1 + content/papers/7.md | 1 + content/papers/8.md | 1 + content/papers/9.md | 1 + layouts/partials/templates/opengraph.html | 2 +- layouts/partials/templates/schema_json.html | 118 ++++++++++++++++++ layouts/partials/templates/twitter_cards.html | 33 +++++ public/1/index.html | 4 +- public/10/index.html | 4 +- public/11/index.html | 4 +- public/13/index.html | 4 +- public/14/index.html | 4 +- public/15/index.html | 4 +- public/2/index.html | 4 +- public/3/index.html | 4 +- public/4/index.html | 4 +- public/5/index.html | 4 +- public/6/index.html | 4 +- public/7/index.html | 4 +- public/8/index.html | 4 +- public/9/index.html | 4 +- public/archive/index.html | 23 +--- public/c3/index.html | 4 +- public/c4/index.html | 4 +- public/index.xml | 2 +- public/location/index.html | 4 +- public/officehours/index.html | 4 +- public/sitemap.xml | 82 ++++++------ public/tags/beveridge-curve/index.html | 4 +- public/tags/business-cycles/index.html | 4 +- public/tags/differential-equations/index.html | 4 +- public/tags/economic-slack/index.html | 4 +- public/tags/efficiency/index.html | 4 +- public/tags/government-spending/index.html | 4 +- public/tags/job-rationing/index.html | 4 +- public/tags/matching-function/index.html | 4 +- public/tags/metascience/index.html | 4 +- public/tags/monetary-policy/index.html | 4 +- public/tags/multiplier/index.html | 4 +- public/tags/new-keynesian-model/index.html | 4 +- public/tags/optimal-control/index.html | 4 +- public/tags/phillips-curve/index.html | 4 +- public/tags/price-rigidity/index.html | 4 +- public/tags/social-psychology/index.html | 4 +- public/tags/stabilization-policy/index.html | 4 +- public/tags/state-dependence/index.html | 4 +- public/tags/sufficient-statistics/index.html | 4 +- public/tags/unemployment-gap/index.html | 4 +- public/tags/unemployment-insurance/index.html | 4 +- public/tags/unemployment/index.html | 4 +- public/tags/wage-rigidity/index.html | 4 +- public/tags/wealth-in-the-utility/index.html | 4 +- 67 files changed, 301 insertions(+), 149 deletions(-) create mode 100644 layouts/partials/templates/schema_json.html create mode 100644 layouts/partials/templates/twitter_cards.html diff --git a/content/archive.md b/content/archive.md index da3fbb714..be2f4a209 100644 --- a/content/archive.md +++ b/content/archive.md @@ -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" diff --git a/content/courses/c3.md b/content/courses/c3.md index 1f87bbfcd..e8fb4dce8 100644 --- a/content/courses/c3.md +++ b/content/courses/c3.md @@ -1,6 +1,7 @@ --- title: "Mathematics for Macroeconomics" date: 2013-10-01 +lastmod: 2023-10-01 url: /c3/ aliases: - /t3.html diff --git a/content/courses/c4.md b/content/courses/c4.md index 55500b185..db361d9c0 100644 --- a/content/courses/c4.md +++ b/content/courses/c4.md @@ -1,6 +1,7 @@ --- title: "Intermediate Macroeconomics" date: 2018-12-15 +lastmod: 2024-01-22 url: /c4/ aliases: - /t2.html diff --git a/content/location.md b/content/location.md index 8487564f7..e572062ae 100644 --- a/content/location.md +++ b/content/location.md @@ -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." diff --git a/content/officehours.md b/content/officehours.md index f4182bcc7..839960bd0 100644 --- a/content/officehours.md +++ b/content/officehours.md @@ -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." diff --git a/content/papers/1.md b/content/papers/1.md index 3229a317a..188a4a525 100644 --- a/content/papers/1.md +++ b/content/papers/1.md @@ -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 diff --git a/content/papers/10.md b/content/papers/10.md index a8ecb3c45..13bbc7bbf 100644 --- a/content/papers/10.md +++ b/content/papers/10.md @@ -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 diff --git a/content/papers/11.md b/content/papers/11.md index d81d0874a..13ed9326f 100644 --- a/content/papers/11.md +++ b/content/papers/11.md @@ -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 diff --git a/content/papers/13.md b/content/papers/13.md index 7e35db094..b91f37626 100644 --- a/content/papers/13.md +++ b/content/papers/13.md @@ -1,6 +1,7 @@ --- title: "u* = √uv" date: 2023-01-23 +lastmod: 2023-12-15 url: /13/ aliases: - /13.html diff --git a/content/papers/14.md b/content/papers/14.md index 255b21fea..ff80e739d 100644 --- a/content/papers/14.md +++ b/content/papers/14.md @@ -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"] diff --git a/content/papers/15.md b/content/papers/15.md index 3c8a2a9ed..fec1fd37f 100644 --- a/content/papers/15.md +++ b/content/papers/15.md @@ -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"] diff --git a/content/papers/2.md b/content/papers/2.md index 63f9a6f6a..2fe2069ea 100644 --- a/content/papers/2.md +++ b/content/papers/2.md @@ -1,6 +1,7 @@ --- title: "A Theory of Countercyclical Government Multiplier" date: 2014-01-01 +lastmod: 2024-01-19 url: /2/ aliases: - /2.html diff --git a/content/papers/3.md b/content/papers/3.md index 5fce15763..6b5ddd055 100644 --- a/content/papers/3.md +++ b/content/papers/3.md @@ -1,6 +1,7 @@ --- title: "Aggregate Demand, Idle Time, and Unemployment" date: 2015-05-01 +lastmod: 2024-01-19 url: /3/ aliases: - /3.html diff --git a/content/papers/4.md b/content/papers/4.md index 96d323944..a0d8dc541 100644 --- a/content/papers/4.md +++ b/content/papers/4.md @@ -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 diff --git a/content/papers/5.md b/content/papers/5.md index 6e69df307..910929b95 100644 --- a/content/papers/5.md +++ b/content/papers/5.md @@ -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 diff --git a/content/papers/6.md b/content/papers/6.md index 27e59bdad..06f59556c 100644 --- a/content/papers/6.md +++ b/content/papers/6.md @@ -1,6 +1,7 @@ --- title: "Optimal Public Expenditure with Inefficient Unemployment" date: 2019-05-01 +lastmod: 2024-01-19 url: /6/ aliases: - /6.html diff --git a/content/papers/7.md b/content/papers/7.md index 13382f5f9..7d6116a43 100644 --- a/content/papers/7.md +++ b/content/papers/7.md @@ -1,6 +1,7 @@ --- title: "An Economical Business-Cycle Model" date: 2022-04-01 +lastmod: 2024-01-25 url: /7/ aliases: - /7.html diff --git a/content/papers/8.md b/content/papers/8.md index b97c301ed..536f12358 100644 --- a/content/papers/8.md +++ b/content/papers/8.md @@ -1,6 +1,7 @@ --- title: "Pricing under Fairness Concerns" date: 2021-06-01 +lastmod: 2024-01-25 url: /8/ aliases: - /8.html diff --git a/content/papers/9.md b/content/papers/9.md index 4ec2c78f1..cfd6664cd 100644 --- a/content/papers/9.md +++ b/content/papers/9.md @@ -1,6 +1,7 @@ --- title: "Beveridgean Unemployment Gap" date: 2021-12-01 +lastmod: 2024-01-19 url: /9/ aliases: - /9.html diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html index 87182a26f..707327295 100644 --- a/layouts/partials/templates/opengraph.html +++ b/layouts/partials/templates/opengraph.html @@ -1,5 +1,5 @@ - + {{- if .Params.cover.image -}} diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html new file mode 100644 index 000000000..53c923a08 --- /dev/null +++ b/layouts/partials/templates/schema_json.html @@ -0,0 +1,118 @@ +{{ if .IsHome }} + +{{- 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 }} + +{{- if .IsPage }} + +{{- end }} +{{- end -}} diff --git a/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html new file mode 100644 index 000000000..3001c12de --- /dev/null +++ b/layouts/partials/templates/twitter_cards.html @@ -0,0 +1,33 @@ +{{- if .Params.cover.image -}} + +{{- if (ne $.Params.cover.relative true) }} + +{{- else }} + +{{- end}} +{{- else }} +{{- with $.Params.images -}} + + +{{ else -}} +{{- $images := $.Resources.ByType "image" -}} +{{- $featured := $images.GetMatch "*feature*" -}} +{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} +{{- with $featured -}} + + +{{- else -}} +{{- with site.Params.images -}} + + +{{ else -}} + +{{- end -}} +{{- end -}} +{{- end }} +{{- end }} + + +{{ with site.Social.twitter -}} + +{{ end -}} diff --git a/public/1/index.html b/public/1/index.html index 7d1839519..98302b882 100644 --- a/public/1/index.html +++ b/public/1/index.html @@ -32,7 +32,7 @@ - + @@ -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" diff --git a/public/10/index.html b/public/10/index.html index 99b1fcd59..252291d1e 100644 --- a/public/10/index.html +++ b/public/10/index.html @@ -32,7 +32,7 @@ - + @@ -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" diff --git a/public/11/index.html b/public/11/index.html index 12fd20fb4..2f4923bc2 100644 --- a/public/11/index.html +++ b/public/11/index.html @@ -32,7 +32,7 @@ - + @@ -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" diff --git a/public/13/index.html b/public/13/index.html index c06cd77d2..0926d5ed6 100644 --- a/public/13/index.html +++ b/public/13/index.html @@ -32,7 +32,7 @@ - + @@ -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" diff --git a/public/14/index.html b/public/14/index.html index 02926d616..cdb3a4080 100644 --- a/public/14/index.html +++ b/public/14/index.html @@ -32,7 +32,7 @@ - + @@ -74,7 +74,7 @@ "wordCount" : "237", "inLanguage": "en", "image":"https://pascalmichaillat.org/14.png","datePublished": "2023-11-05T00:00:00Z", - "dateModified": "2023-11-05T00:00:00Z", + "dateModified": "2024-03-14T00:00:00Z", "author":[{ "@type": "Person", "name": "Pascal Michaillat" diff --git a/public/15/index.html b/public/15/index.html index 52e96324e..ba1debba6 100644 --- a/public/15/index.html +++ b/public/15/index.html @@ -32,7 +32,7 @@ - + @@ -74,7 +74,7 @@ "wordCount" : "189", "inLanguage": "en", "image":"https://pascalmichaillat.org/15.png","datePublished": "2024-01-20T00:00:00Z", - "dateModified": "2024-01-20T00:00:00Z", + "dateModified": "2024-03-20T00:00:00Z", "author":[{ "@type": "Person", "name": "Pascal Michaillat" diff --git a/public/2/index.html b/public/2/index.html index 538df0b7c..9152dee3d 100644 --- a/public/2/index.html +++ b/public/2/index.html @@ -32,7 +32,7 @@ - + @@ -74,7 +74,7 @@ "wordCount" : "176", "inLanguage": "en", "image":"https://pascalmichaillat.org/2.png","datePublished": "2014-01-01T00:00:00Z", - "dateModified": "2014-01-01T00:00:00Z", + "dateModified": "2024-01-19T00:00:00Z", "author":{ "@type": "Person", "name": "Pascal Michaillat" diff --git a/public/3/index.html b/public/3/index.html index 847b033c6..45e82a4c0 100644 --- a/public/3/index.html +++ b/public/3/index.html @@ -32,7 +32,7 @@ - + @@ -74,7 +74,7 @@ "wordCount" : "334", "inLanguage": "en", "image":"https://pascalmichaillat.org/3.png","datePublished": "2015-05-01T00:00:00Z", - "dateModified": "2015-05-01T00:00:00Z", + "dateModified": "2024-01-19T00:00:00Z", "author":[{ "@type": "Person", "name": "Pascal Michaillat" diff --git a/public/4/index.html b/public/4/index.html index 881a9c5e3..61bcd7082 100644 --- a/public/4/index.html +++ b/public/4/index.html @@ -32,7 +32,7 @@ - + @@ -74,7 +74,7 @@ "wordCount" : "240", "inLanguage": "en", "image":"https://pascalmichaillat.org/4.png","datePublished": "2018-05-01T00:00:00Z", - "dateModified": "2018-05-01T00:00:00Z", + "dateModified": "2024-01-19T00:00:00Z", "author":[{ "@type": "Person", "name": "Camille Landais" diff --git a/public/5/index.html b/public/5/index.html index 20fbce397..7e96e27b7 100644 --- a/public/5/index.html +++ b/public/5/index.html @@ -32,7 +32,7 @@ - + @@ -74,7 +74,7 @@ "wordCount" : "216", "inLanguage": "en", "image":"https://pascalmichaillat.org/5.png","datePublished": "2018-05-02T00:00:00Z", - "dateModified": "2018-05-02T00:00:00Z", + "dateModified": "2024-01-19T00:00:00Z", "author":[{ "@type": "Person", "name": "Camille Landais" diff --git a/public/6/index.html b/public/6/index.html index b198ecef8..349b09f90 100644 --- a/public/6/index.html +++ b/public/6/index.html @@ -32,7 +32,7 @@ - + @@ -74,7 +74,7 @@ "wordCount" : "261", "inLanguage": "en", "image":"https://pascalmichaillat.org/6.png","datePublished": "2019-05-01T00:00:00Z", - "dateModified": "2019-05-01T00:00:00Z", + "dateModified": "2024-01-19T00:00:00Z", "author":[{ "@type": "Person", "name": "Pascal Michaillat" diff --git a/public/7/index.html b/public/7/index.html index 043dc001f..90d663f06 100644 --- a/public/7/index.html +++ b/public/7/index.html @@ -32,7 +32,7 @@ - + @@ -74,7 +74,7 @@ "wordCount" : "268", "inLanguage": "en", "image":"https://pascalmichaillat.org/7.png","datePublished": "2022-04-01T00:00:00Z", - "dateModified": "2022-04-01T00:00:00Z", + "dateModified": "2024-01-25T00:00:00Z", "author":[{ "@type": "Person", "name": "Pascal Michaillat" diff --git a/public/8/index.html b/public/8/index.html index 969a5ff1b..c8b448901 100644 --- a/public/8/index.html +++ b/public/8/index.html @@ -32,7 +32,7 @@ - + @@ -74,7 +74,7 @@ "wordCount" : "351", "inLanguage": "en", "image":"https://pascalmichaillat.org/8.png","datePublished": "2021-06-01T00:00:00Z", - "dateModified": "2021-06-01T00:00:00Z", + "dateModified": "2024-01-25T00:00:00Z", "author":[{ "@type": "Person", "name": "Erik Eyster" diff --git a/public/9/index.html b/public/9/index.html index 0bd9b6dd5..39476f3fc 100644 --- a/public/9/index.html +++ b/public/9/index.html @@ -32,7 +32,7 @@ - + @@ -74,7 +74,7 @@ "wordCount" : "230", "inLanguage": "en", "image":"https://pascalmichaillat.org/9.png","datePublished": "2021-12-01T00:00:00Z", - "dateModified": "2021-12-01T00:00:00Z", + "dateModified": "2024-01-19T00:00:00Z", "author":[{ "@type": "Person", "name": "Pascal Michaillat" diff --git a/public/archive/index.html b/public/archive/index.html index d31058517..608d2f46e 100644 --- a/public/archive/index.html +++ b/public/archive/index.html @@ -30,8 +30,8 @@ - - + + @@ -65,8 +65,8 @@ "articleBody": "", "wordCount" : "0", "inLanguage": "en", - "datePublished": "2024-03-22T00:00:00Z", - "dateModified": "2024-03-22T00:00:00Z", + "datePublished": "0001-01-01T00:00:00Z", + "dateModified": "2024-02-27T00:00:00Z", "author":{ "@type": "Person", "name": "Pascal Michaillat" @@ -186,21 +186,6 @@