mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-10 12:37:06 +08:00
Include meta description if available
This commit is contained in:
@@ -4,6 +4,7 @@ html(ng-app="sideBySide" ng-controller="AppController")
|
||||
base(href="#{base}")
|
||||
title(ng-bind="title()") Side By Side viewer
|
||||
meta(charset="utf-8")
|
||||
meta(name="description", content="{{ description() }}")
|
||||
link(rel="stylesheet", type="text/css", href="//fonts.googleapis.com/css?family=PT+Serif:400,700,400italic,700italic&subset=latin,latin-ext")
|
||||
if html5Mode == true
|
||||
script.
|
||||
|
||||
@@ -4,6 +4,9 @@ angular.module("sideBySide").controller "AppController",
|
||||
$scope.title = =>
|
||||
poems.config.title || 'Side By Side viewer'
|
||||
|
||||
$scope.description = =>
|
||||
poems.config.description || ''
|
||||
|
||||
$scope.$watchCollection ->
|
||||
poems.config
|
||||
, ->
|
||||
|
||||
Reference in New Issue
Block a user