From e3176ba62e90dbead8763a48ae37ef4626d4ef28 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Sat, 28 Dec 2013 00:55:16 -0800 Subject: [PATCH] New styles to support posts. --- _assets/stylesheets/_style.sass | 23 ++++++++++++++++++++++ _assets/stylesheets/_variables.sass | 2 +- _config.yml | 30 ++++++++++++++--------------- _includes/personal_links.html | 11 +++++++++++ _layouts/default.html | 17 ++++------------ _layouts/post.html | 24 +++++++++++++++++++++++ cv/index.html | 1 + index.html | 18 +++++++++++++++++ 8 files changed, 97 insertions(+), 29 deletions(-) create mode 100644 _includes/personal_links.html create mode 100644 _layouts/post.html diff --git a/_assets/stylesheets/_style.sass b/_assets/stylesheets/_style.sass index 23836c3..aedcf25 100644 --- a/_assets/stylesheets/_style.sass +++ b/_assets/stylesheets/_style.sass @@ -7,6 +7,9 @@ a &:visited, &:hover color: inherit +div.highlight + +panel + #top text-align: center margin-bottom: $top_margin-bottom @@ -47,6 +50,26 @@ a #email_modal text-align: center +section.posts + +grid-row + text-align: center + h2 + font-size: 1.3em + +grid-column($columns: 8, $center: true) + ul.posts + +grid-column($columns: 8, $center: true) + li + list-style-type: none + +article.post.single + margin-left: rem-calc(30) + margin-right: rem-calc(30) + section.content + +grid-row + aside.social-buttons + margin-bottom: rem-calc(20) + margin-top: rem-calc(20) + #cv h1 text-align: center diff --git a/_assets/stylesheets/_variables.sass b/_assets/stylesheets/_variables.sass index 331c5da..a81fe35 100644 --- a/_assets/stylesheets/_variables.sass +++ b/_assets/stylesheets/_variables.sass @@ -20,7 +20,7 @@ $clr_blue_green: #467d91 // Style and layout variables // Top -$top_margin-bottom: rem-calc(50) +$top_margin-bottom: rem-calc(10) // Banner $banner_height: rem-calc(100) diff --git a/_config.yml b/_config.yml index e1f0f16..994d512 100644 --- a/_config.yml +++ b/_config.yml @@ -56,13 +56,13 @@ meta: title: prefix: "" suffix: " - Evan Sosenko" -# twitter: -# default_card: summary -# site: "@example.com" -# creator: "@username" + twitter: + default_card: summary + site: "@ThatsMr_n00b_2u" + creator: "@ThatsMr_n00b_2u" # Uncomment below and add your Disqus Shortname to enable Disqus. -# disqus: shortname +disqus: evansosenko # Uncomment below and add your Tracking ID and URL to enable Google Analytics. google_analytics: @@ -113,16 +113,16 @@ piwik: evansosenko.com/piwik/ # width: '500' # Uncomment below to configure social media. -# social: -# facebook: -# enabled: true -# google: -# enabled: true -# gcfg: -# lang: en-US -# parsetags: onload -# twitter: -# enabled: true +social: + facebook: + enabled: false + google: + enabled: true + gcfg: + lang: en-US + parsetags: onload + twitter: + enabled: true # Include code from other repos in the final build. # Each array has the format diff --git a/_includes/personal_links.html b/_includes/personal_links.html new file mode 100644 index 0000000..f4a71a8 --- /dev/null +++ b/_includes/personal_links.html @@ -0,0 +1,11 @@ +

Ph.D. physics student and online business owner.

+ + diff --git a/_layouts/default.html b/_layouts/default.html index 2a1b923..edfe760 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -16,18 +16,10 @@

Evan Sosenko

-

Ph.D. physics student and online business owner.

- - -
+ {% if page.personal_links %} + {% include personal_links.html %} + {% endif %} + {{ content }} @@ -36,7 +28,6 @@

Evan Sos × - {% if site.social.facebook.enabled %}
{% endif %} diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..9124f69 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,24 @@ +--- +layout: default +--- + +
+
+

{{ page.title }}

+

{{ page.date | date_to_string }}

+
+ +
+ {{ content }} +
+ + {% include social_buttons.html %} + + {% if page.comments and site.disqus %} + + {% endif %} +
diff --git a/cv/index.html b/cv/index.html index a89b170..9054611 100644 --- a/cv/index.html +++ b/cv/index.html @@ -1,6 +1,7 @@ --- layout: default title: Curriculum Vitae +personal_links: true ---
diff --git a/index.html b/index.html index 51cf2da..fde5b54 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,22 @@ --- layout: default title: "{evan|sosenko}" +personal_links: true --- + +{% if site.paginate %} + {% assign posts = paginator.posts %} +{% else %} + {% assign posts = site.posts %} +{% endif %} + +
+

posts and such

+ +
+ +{% include pagination.html %}