Răsfoiți Sursa

minor adjustments

George S. Baugh 5 ani în urmă
părinte
comite
0b8ac3c6a3
2 a modificat fișierele cu 6 adăugiri și 1 ștergeri
  1. 4 1
      lib/Trog/Routes/HTML.pm
  2. 2 0
      www/templates/header.tx

+ 4 - 1
lib/Trog/Routes/HTML.pm

@@ -255,6 +255,8 @@ sub index ($query,$render_cb, $content = '', $i_styles = []) {
     #TODO truncate this and filter out to innerHTML
     my $meta_desc  = $query->{primary_post}->{data} // $Theme::description // "tCMS Site";
 
+    my $fb_app_id = $conf->param('general.fb_app_id');
+
     my $tmpl = $query->{embed} ? 'embed.tx' : 'index.tx';
     return $render_cb->( $tmpl, {
         code           => $query->{code},
@@ -262,6 +264,7 @@ sub index ($query,$render_cb, $content = '', $i_styles = []) {
         search_lang    => $search_info->lang(),
         search_help    => $search_info->help(),
         route          => $query->{route},
+        domain         => $query->{domain},
         theme_dir      => $td,
         content        => $content,
         title          => $query->{title} // $Theme::default_title // 'tCMS',
@@ -279,7 +282,7 @@ sub index ($query,$render_cb, $content = '', $i_styles = []) {
         primary_post   => $query->{primary_post},
         default_tags   => $default_tags,
         meta_desc      => $meta_desc,
-        fb_app_id      => $conf->param('general.fb_app_id'),
+        fb_app_id      => $fb_app_id,
     });
 }
 

+ 2 - 0
www/templates/header.tx

@@ -5,7 +5,9 @@
         <meta charset="utf-8" />
         <link rel="icon" type="image/vnd.microsoft.icon" href="<: $theme_dir :>/img/icon/favicon.ico" />
         <meta name="description" content="<: $meta_desc :>"/>
+        : if ($default_tags) {
         <meta name="tags" content="<: $default_tags :>" />
+        : }
 
         <!-- Open Graph / Facebook -->
         <meta property="og:type" content="<: $og_type :>" />