diff --git a/src/scripts/riotblog.js b/src/scripts/riotblog.js index 18ddf5b..94f6d7e 100644 --- a/src/scripts/riotblog.js +++ b/src/scripts/riotblog.js @@ -14,6 +14,8 @@ import 'whatwg-fetch'; window.converter = new showdown.Converter(); window.cache = {}; +window.riot = riot; +window.RiotControl = RiotControl; window.cached = fetchCached({ fetch: fetch, @@ -28,12 +30,7 @@ window.cached = fetchCached({ }); window.addEventListener("load", () => { - promise.Promise.polyfill(); smooth.polyfill(); - - window.RiotControl = RiotControl; - - RiotControl.addStore(new riot.observable()); - riot.mount("app"); + window.RiotControl.addStore(new riot.observable()); }); diff --git a/src/scripts/social.tag b/src/scripts/social.tag index 1fbb2f6..6206cf9 100644 --- a/src/scripts/social.tag +++ b/src/scripts/social.tag @@ -16,8 +16,6 @@ var self = this; self.tweetHtml = ""; self.fbHtml = ""; -self.preview = "https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Flocalhost%2Fblog%2F&ref_src=twsrc%5Etfw&text=My%20first%20Elixir%20program&tw_p=tweetbutton&url=https%3A%2F%2Fprimop.me%2Fblog%2F%23!posts%2F19045cf7&via=weskerfoot"; - self._id = self.opts.postid; self.title = self.opts.title; self.old_id = false; diff --git a/src/styles/riotblog.scss b/src/styles/riotblog.scss index c6288b2..62f0fb6 100644 --- a/src/styles/riotblog.scss +++ b/src/styles/riotblog.scss @@ -52,6 +52,10 @@ $navbarHeight: 100px; height: 25px; } +.fb-share-button > span { + vertical-align: top !important; +} + .social { margin-top: 25%; } diff --git a/src/templates/index.html b/src/templates/index.html index 7cf1d85..fcf0903 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -1,24 +1,36 @@ - - - - - {{ postcontent["title"] }} - + + + + {{ postcontent["title"] }} + -
- - +