Skip to content

Commit

Permalink
added option para.meta_app_icon for customizing the site thumbnail ic…
Browse files Browse the repository at this point in the history
…on and og:image
  • Loading branch information
albogdano committed Jul 7, 2021
1 parent a177ac6 commit e230485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -225,7 +225,7 @@ public void postHandle(HttpServletRequest request, HttpServletResponse response,
modelAndView.addObject("description", Config.getConfigParam("meta_description", ""));
}
if (!modelAndView.getModel().containsKey("ogimage")) {
modelAndView.addObject("ogimage", IMAGESLINK + "/logowhite.png");
modelAndView.addObject("ogimage", Config.getConfigParam("meta_app_icon", IMAGESLINK + "/logowhite.png"));
}
}
}
4 changes: 2 additions & 2 deletions src/main/resources/templates/base.vm
Expand Up @@ -29,8 +29,8 @@
<meta name="twitter:image" content="$!ogimage">
<link href="$!request.contextPath/opensearch.xml" title="$!APPNAME" type="application/opensearchdescription+xml" rel="search">
<link href="$!request.contextPath/feed.xml" rel="alternate" type="application/atom+xml" title="New questions feed">
<link href="$!imageslink/logowhite.png" rel="image_src">
<link href="$!imageslink/logowhite.png" rel="apple-touch-icon">
<link href="$!ogimage" rel="image_src">
<link href="$!ogimage" rel="apple-touch-icon">
<link href="$!faviconUrl" rel="shortcut icon">
<link href="$!styleslink/materialize.min.css" rel="stylesheet">
<link href="$!styleslink/font-awesome.min.css" rel="stylesheet">
Expand Down

0 comments on commit e230485

Please sign in to comment.