diff --git a/static/images/ogp/cosin_icon_2018.png b/assets/images/ogp/cosin_icon_2018.png similarity index 100% rename from static/images/ogp/cosin_icon_2018.png rename to assets/images/ogp/cosin_icon_2018.png diff --git a/static/images/ogp/cosin_icon_2019.png b/assets/images/ogp/cosin_icon_2019.png similarity index 100% rename from static/images/ogp/cosin_icon_2019.png rename to assets/images/ogp/cosin_icon_2019.png diff --git a/static/images/ogp/cosin_icon_2020.png b/assets/images/ogp/cosin_icon_2020.png similarity index 100% rename from static/images/ogp/cosin_icon_2020.png rename to assets/images/ogp/cosin_icon_2020.png diff --git a/static/images/ogp/cosin_icon_2021.png b/assets/images/ogp/cosin_icon_2021.png similarity index 100% rename from static/images/ogp/cosin_icon_2021.png rename to assets/images/ogp/cosin_icon_2021.png diff --git a/assets/images/ogp/cosin_icon_2024.png b/assets/images/ogp/cosin_icon_2024.png new file mode 100644 index 0000000..5675a52 Binary files /dev/null and b/assets/images/ogp/cosin_icon_2024.png differ diff --git a/assets/images/ogp/cosin_icon_generic.png b/assets/images/ogp/cosin_icon_generic.png new file mode 100644 index 0000000..acf6ed2 Binary files /dev/null and b/assets/images/ogp/cosin_icon_generic.png differ diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 19378d0..9021e29 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -13,10 +13,17 @@ - - - - + {{ $logoFile := printf "images/ogp/cosin_icon_%s.png" (string .Site.Data.cosin.date_year) }} + {{ $logo := "" }} + {{ with resources.Get $logoFile }} + {{ $logo = . }} + {{ else }} + {{ $logo = resources.Get "images/ogp/cosin_icon_generic.png" }} + {{ end }} + + + +