From c8110451dec17b376ce0de529db7dcb0455ccb79 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Thu, 5 May 2016 18:29:21 -0400 Subject: [PATCH 01/10] :heavy_plus_sign: Blog section plus comments, Resources section, Authors --- .gitignore | 1 + 404.html | 2 + README.md | 25 ++ _config.yml | 1 + _data/authors.yml | 8 + _includes/banner.html | 4 + _includes/disqus_comments.html | 22 ++ _includes/footer.html | 4 + _includes/head.html | 2 +- _includes/header.html | 14 +- _includes/social-share.html | 9 + _layouts/post.html | 81 +++++- _posts/2015-08-20-welcome-to-jekyll.markdown | 26 -- _posts/blog/2016-05-04-new-website.adoc | 22 ++ _posts/blog/2016-05-05-second-post.adoc | 20 ++ .../2015-10-19-javax-cache-to-your-app.adoc | 9 + .../2015-11-13-terracotta-offHeap.adoc | 9 + .../resources/2015-11-18-ehcache3-jsr107.adoc | 8 + _sass/_base.scss | 76 +++++- _sass/_mixins.scss | 234 ++++++++++++++++++ blog/index.html | 50 ++++ css/main.scss | 3 +- resources/index.html | 40 +++ tags/index.md | 25 ++ 24 files changed, 652 insertions(+), 43 deletions(-) create mode 100755 _data/authors.yml create mode 100644 _includes/disqus_comments.html create mode 100644 _includes/social-share.html delete mode 100644 _posts/2015-08-20-welcome-to-jekyll.markdown create mode 100755 _posts/blog/2016-05-04-new-website.adoc create mode 100755 _posts/blog/2016-05-05-second-post.adoc create mode 100755 _posts/resources/2015-10-19-javax-cache-to-your-app.adoc create mode 100755 _posts/resources/2015-11-13-terracotta-offHeap.adoc create mode 100755 _posts/resources/2015-11-18-ehcache3-jsr107.adoc create mode 100644 _sass/_mixins.scss create mode 100755 blog/index.html create mode 100755 resources/index.html create mode 100644 tags/index.md diff --git a/.gitignore b/.gitignore index 201c2719d..f01322ad9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ _site .DS_Store _eh3 documentation/3.0 +.idea diff --git a/404.html b/404.html index f722a420b..3a40cecf8 100644 --- a/404.html +++ b/404.html @@ -13,6 +13,8 @@

Sorry!
  • Downloads
  • Documentation
  • +
  • Resources
  • +
  • Ehcache Blog
  • About
  • News and Events
  • diff --git a/README.md b/README.md index bd96e1842..8361bd83b 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,28 @@ ehcache.org is served/hosted by github. The webserver does NOT serve the conte * Commit your changes and make a pull request to get the content of that branch into the master branch of the ehcache.github.io repository (which will then make it "live"). +### Contributing a blog post + +1. Ensure you first edit `_data/authors.yml` to add you information + +2. Create a new ASCII Doc file under `_posts/blog`. The file should be named with the following format: `yyyy-MM-DD-title-in-lowercase.adoc` + +3. Add a header in your file. Modify the fields according to your post, especially for the title, headline, tags, authors and date + +``` +layout: post +title: "Your blog post title" +headline: "Your blo post headline" +categories: blog +hidden: false +author: your_author_key +tags: [ehcache, website] +date: 2016-05-04T18:00:00-05:00 +modified: +``` + +4. Send your pull request :+1: + +### Contributing an external resource + +TODO: MATHIEU diff --git a/_config.yml b/_config.yml index 6a37ea1d8..9414604a5 100644 --- a/_config.yml +++ b/_config.yml @@ -8,6 +8,7 @@ twitter_username: ehcache github_username: ehcache linkedin_username: terracotta facebook_username: Terracotta +disqus_shortname: ehcache eh3_source_dir: /_eh3 diff --git a/_data/authors.yml b/_data/authors.yml new file mode 100755 index 000000000..1d7508460 --- /dev/null +++ b/_data/authors.yml @@ -0,0 +1,8 @@ +# Authors + +mathieu_carbou: + name: Mathieu Carbou + web: https://www.linkedin.com/in/mathieucarbou + avatar: https://www.gravatar.com/avatar/9db6fc82f800e193111dd725dd3a7b52 + twitter: mathieucarbou + position: Software Engineer at Terracotta diff --git a/_includes/banner.html b/_includes/banner.html index 8d3aa989d..d3eb9278e 100644 --- a/_includes/banner.html +++ b/_includes/banner.html @@ -10,6 +10,10 @@

    JAVA’S MOST WIDELY-USED CACHE

          + +    + +    diff --git a/_includes/disqus_comments.html b/_includes/disqus_comments.html new file mode 100644 index 000000000..37ebe8ce0 --- /dev/null +++ b/_includes/disqus_comments.html @@ -0,0 +1,22 @@ +{% if site.disqus_shortname %} + + +{% endif %} \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index 8b9735287..714cbbcd7 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -58,6 +58,10 @@
    Documentation
    + Resources +
    + Ehcache Blog +
    Join the Community diff --git a/_includes/head.html b/_includes/head.html index bb23482fc..38e759352 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -9,7 +9,7 @@ {% if page.title %}{{ page.title | replace: '!DOC_VERSION!', page.ehc_version }}{% else %}{{ site.title }}{% endif %} - + diff --git a/_includes/header.html b/_includes/header.html index 7e8f34299..2bd284c2a 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -16,30 +16,32 @@ diff --git a/_includes/social-share.html b/_includes/social-share.html new file mode 100644 index 000000000..f4b67553a --- /dev/null +++ b/_includes/social-share.html @@ -0,0 +1,9 @@ +
    + Tweet +
    +
    + Like +
    +
    + +1 +
    diff --git a/_layouts/post.html b/_layouts/post.html index a2b4e52fe..98119081a 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,15 +1,80 @@ --- layout: default --- -
    -
    -

    {{ page.title }}

    - -
    +
    -
    - {{ content }} -
    +{% if page.author %} + {% assign author = site.data.authors[page.author] %} +{% endif %} + +
    + +
    + + + + + +
    + +
    +

    {{ page.title }}

    +
    + +
    + +
    +
    +

    {% if page.headline %}{{ page.headline }}{% else %}{{ page.title }}{% endif %}

    +
    + +
    + {{ content }} + + {% if site.disqus_shortname %} +
    + {% endif %} +
    +
    + +
    + +
    + +
    + +{% include disqus_comments.html %} diff --git a/_posts/2015-08-20-welcome-to-jekyll.markdown b/_posts/2015-08-20-welcome-to-jekyll.markdown deleted file mode 100644 index e4a20e747..000000000 --- a/_posts/2015-08-20-welcome-to-jekyll.markdown +++ /dev/null @@ -1,26 +0,0 @@ ---- -layout: post -title: "Welcome to Jekyll!" -date: 2015-08-20 14:36:42 -categories: jekyll update ---- -You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. - -To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. - -Jekyll also offers powerful support for code snippets: - - -{% highlight ruby %} -def print_hi(name) - puts "Hi, #{name}" -end -print_hi('Tom') -#=> prints 'Hi, Tom' to STDOUT. -{% endhighlight %} - -Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll’s dedicated Help repository][jekyll-help]. - -[jekyll]: http://jekyllrb.com -[jekyll-gh]: https://github.com/jekyll/jekyll -[jekyll-help]: https://github.com/jekyll/jekyll-help diff --git a/_posts/blog/2016-05-04-new-website.adoc b/_posts/blog/2016-05-04-new-website.adoc new file mode 100755 index 000000000..9cf9357af --- /dev/null +++ b/_posts/blog/2016-05-04-new-website.adoc @@ -0,0 +1,22 @@ +--- +layout: post +title: "New Website" +headline: "The new Ehcache website is LIVE! Checkout its first post..." +categories: blog +hidden: false +author: mathieu_carbou +tags: [ehcache, website] +comments: true +date: 2016-05-04T18:00:00-05:00 +modified: 2016-05-05T18:00:00-05:00 +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et purus at quam ullamcorper volutpat. Nullam ut nunc at sem tincidunt elementum vel et sem. Nam a nisl nec nisi tincidunt interdum in vel nulla. Maecenas ac elit vel felis pellentesque feugiat ut in quam. Quisque in dapibus enim, dapibus ultricies erat. Vivamus tristique varius magna at tincidunt. Ut venenatis dolor neque. Morbi pretium diam sed nulla consectetur maximus. Etiam sem turpis, ullamcorper sed arcu et, consectetur euismod est. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Mauris pharetra lorem ante, at suscipit urna bibendum ut. In a condimentum turpis. Pellentesque fermentum ex eget venenatis imperdiet. Donec vehicula vel purus et malesuada. Proin nunc quam, dictum ut elit ac, porttitor pretium elit. + +Donec sit amet ultricies risus, eget molestie enim. Sed sodales purus at enim imperdiet porta. Aliquam efficitur nunc ut elit auctor tincidunt in quis urna. Nullam pretium eget quam et mollis. Integer posuere est non nulla tempor, in tristique nisi tempus. Duis sagittis metus quis nibh posuere convallis. Nunc eu dolor quis tortor pulvinar volutpat ac in felis. Nulla interdum est dolor, et imperdiet massa viverra ac. Nam eu luctus augue. Proin facilisis ornare mi vitae pulvinar. Ut rhoncus vitae sapien sed consectetur. + +Curabitur eget purus molestie est fringilla imperdiet. Etiam id velit vel leo porttitor rhoncus. Nullam tempus placerat metus quis rutrum. Mauris efficitur nisi eleifend elit mollis tristique. Curabitur condimentum turpis id fermentum semper. Mauris vitae neque at erat dictum ultricies. Nam posuere ante sed nisi suscipit, vel euismod est dictum. Nullam ornare felis vitae arcu porta, ut egestas ipsum suscipit. Donec maximus urna auctor, vehicula lacus id, faucibus neque. Proin rhoncus vel mauris eget commodo. Mauris suscipit, magna at porttitor efficitur, leo justo porttitor neque, sed venenatis lacus urna sed felis. + +Cras feugiat odio elit, et mollis lorem dignissim at. Nulla pretium sollicitudin blandit. Nullam ut dolor id tellus aliquet tincidunt a ac ante. Praesent ornare consectetur ipsum, quis imperdiet nisl fringilla facilisis. Nullam vel laoreet urna. Maecenas laoreet interdum leo, sed placerat nisl ornare id. Morbi pharetra urna pretium, dapibus metus at, auctor felis. Phasellus quis lacinia tortor. + +Cras feugiat magna urna, nec tempor magna luctus vel. Suspendisse quis rutrum diam. Phasellus lacinia quam ut gravida volutpat. Aliquam erat volutpat. Interdum et malesuada fames ac ante ipsum primis in faucibus. Nullam id sem ac metus sagittis vulputate non at quam. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut lobortis nibh vel eros bibendum tristique interdum nec nulla. diff --git a/_posts/blog/2016-05-05-second-post.adoc b/_posts/blog/2016-05-05-second-post.adoc new file mode 100755 index 000000000..12ec043be --- /dev/null +++ b/_posts/blog/2016-05-05-second-post.adoc @@ -0,0 +1,20 @@ +--- +layout: post +title: "Second blog post" +headline: "Checkout this super blog post also..." +categories: blog +hidden: false +author: mathieu_carbou +tags: [ehcache, website] +comments: true +date: 2016-05-05T00:00:00-`05:00 +modified: +--- + +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et purus at quam ullamcorper volutpat. Nullam ut nunc at sem tincidunt elementum vel et sem. Nam a nisl nec nisi tincidunt interdum in vel nulla. Maecenas ac elit vel felis pellentesque feugiat ut in quam. Quisque in dapibus enim, dapibus ultricies erat. Vivamus tristique varius magna at tincidunt. Ut venenatis dolor neque. Morbi pretium diam sed nulla consectetur maximus. Etiam sem turpis, ullamcorper sed arcu et, consectetur euismod est. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Mauris pharetra lorem ante, at suscipit urna bibendum ut. In a condimentum turpis. Pellentesque fermentum ex eget venenatis imperdiet. Donec vehicula vel purus et malesuada. Proin nunc quam, dictum ut elit ac, porttitor pretium elit. + +Donec sit amet ultricies risus, eget molestie enim. Sed sodales purus at enim imperdiet porta. Aliquam efficitur nunc ut elit auctor tincidunt in quis urna. Nullam pretium eget quam et mollis. Integer posuere est non nulla tempor, in tristique nisi tempus. Duis sagittis metus quis nibh posuere convallis. Nunc eu dolor quis tortor pulvinar volutpat ac in felis. Nulla interdum est dolor, et imperdiet massa viverra ac. Nam eu luctus augue. Proin facilisis ornare mi vitae pulvinar. Ut rhoncus vitae sapien sed consectetur. + +Curabitur eget purus molestie est fringilla imperdiet. Etiam id velit vel leo porttitor rhoncus. Nullam tempus placerat metus quis rutrum. Mauris efficitur nisi eleifend elit mollis tristique. Curabitur condimentum turpis id fermentum semper. Mauris vitae neque at erat dictum ultricies. Nam posuere ante sed nisi suscipit, vel euismod est dictum. Nullam ornare felis vitae arcu porta, ut egestas ipsum suscipit. Donec maximus urna auctor, vehicula lacus id, faucibus neque. Proin rhoncus vel mauris eget commodo. Mauris suscipit, magna at porttitor efficitur, leo justo porttitor neque, sed venenatis lacus urna sed felis. + +Cras feugiat odio elit, et mollis lorem dignissim at. Nulla pretium sollicitudin blandit. Nullam ut dolor id tellus aliquet tincidunt a ac ante. Praesent ornare consectetur ipsum, quis imperdiet nisl fringilla facilisis. Nullam vel laoreet urna. Maecenas laoreet interdum leo, sed placerat nisl ornare id. Morbi pharetra urna pretium, dapibus metus at, auctor felis. Phasellus quis lacinia tortor. diff --git a/_posts/resources/2015-10-19-javax-cache-to-your-app.adoc b/_posts/resources/2015-10-19-javax-cache-to-your-app.adoc new file mode 100755 index 000000000..e9e81c909 --- /dev/null +++ b/_posts/resources/2015-10-19-javax-cache-to-your-app.adoc @@ -0,0 +1,9 @@ +--- +title: "Bringing javax.cache'ing to your application" +headline: "SpringOne2GX 2015 replay: Bringing javax.cache'ing to your application by Alex Snaps and Chris Dennis" +categories: resources +date: 2015-10-19T00:00:00-00:00 +--- + +* Video: https://spring.io/blog/2015/10/19/springone2gx-2015-replay-bringing-javax-cache-ing-to-your-application +* Slides: http://www.slideshare.net/SpringCentral/bringing-javaxcacheing-to-your-app diff --git a/_posts/resources/2015-11-13-terracotta-offHeap.adoc b/_posts/resources/2015-11-13-terracotta-offHeap.adoc new file mode 100755 index 000000000..bc66c2991 --- /dev/null +++ b/_posts/resources/2015-11-13-terracotta-offHeap.adoc @@ -0,0 +1,9 @@ +--- +title: "Terracotta’s OffHeap Explained" +headline: "Terracotta’s OffHeap Explained, by Chris Dennis" +categories: resources +date: 2015-11-13T00:00:00-00:00 +--- + +* Video: https://www.youtube.com/watch?v=xCojSZMp_Zw +* Slides: http://www.slideshare.net/ChrisDennis7/terracottas-offheap-explained-55214150 diff --git a/_posts/resources/2015-11-18-ehcache3-jsr107.adoc b/_posts/resources/2015-11-18-ehcache3-jsr107.adoc new file mode 100755 index 000000000..b4e41bf0c --- /dev/null +++ b/_posts/resources/2015-11-18-ehcache3-jsr107.adoc @@ -0,0 +1,8 @@ +--- +title: "Ehcache 3: JSR-107 on steroids" +headline: "Ehcache 3: JSR-107 on steroids at Devoxx Morocco by Louis Jacomet" +categories: resources +date: 2015-11-18T00:00:00-00:00 +--- + +* Slides: http://www.slideshare.net/LouisJacomet/ehcache-3-jsr107-on-steroids-at-devoxx-morocco diff --git a/_sass/_base.scss b/_sass/_base.scss index d7bf113ca..89c33fb72 100644 --- a/_sass/_base.scss +++ b/_sass/_base.scss @@ -593,4 +593,78 @@ pre { #content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400} #content h1>a.anchor:before,h2>a.anchor:before,h3>a.anchor:before,#toctitle>a.anchor:before,.sidebarblock>.content>.title>a.anchor:before,h4>a.anchor:before,h5>a.anchor:before,h6>a.anchor:before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em} #content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible} - + +#sidebar { + + .section { + margin-left: auto; + margin-right: auto; + text-align: center; + margin-top: 0px; + margin-bottom: 0px; + padding-top: 10px; + padding-bottom: 10px; + border-bottom: 1px solid rgba(247, 139, 14, 0.3); + width: 50%; + } + + .section:last-child { + border-bottom: none; + margin-bottom: 10px; + } + + .bio-photo { + display: block; + width: 150px; + height: 150px; + margin-bottom: 10px; + margin-left: auto; + margin-right: auto; + @include rounded(150px); + @include clearfix; + } + + .social-share { + display: inline-block; + margin-left: 5px; + margin-right: 5px; + } +} + +.entry-tags { + display: block; + margin-top: 2em; + text-transform: uppercase; + @include font-size(16); + font-weight: 600; + a { + color: $text-color; + } +} + +.post-list { + + .bio-photo { + display: inline-block; + width: 80px; + height: 80px; + margin-right: 20px; + @include rounded(80px); + @include clearfix; + } + + .entry-date { + float: right; + } + + .entry { + clear: both; + margin-top: 0px; + margin-bottom: 0px; + padding-top: 10px; + padding-bottom: 10px; + border-bottom: 1px solid rgba(247, 139, 14, 0.3); + min-height: 100px; + } + +} \ No newline at end of file diff --git a/_sass/_mixins.scss b/_sass/_mixins.scss new file mode 100644 index 000000000..35f5d1d54 --- /dev/null +++ b/_sass/_mixins.scss @@ -0,0 +1,234 @@ +// UTILITY MIXINS +// -------------------------------------------------- + +// Webkit-style focus +// -------------------- +@mixin tab-focus() { + // Default + outline: thin dotted #333; + // Webkit + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} + +// Center-align a block level element +// ---------------------------------- +@mixin center-block() { + display: block; + margin-left: auto; + margin-right: auto; +} + +// TYPOGRAPHY +// -------------------------------------------------- + +// Full-fat vertical rhythm +// ------------------------ +@mixin font-size($size) { + font-size: 0px + $size; + font-size: 0rem + $size / $base-font-size; + line-height: 0 + round($base-line-height / $size*10000) / 10000; + margin-bottom: 0px + $base-line-height; + margin-bottom: 0rem + ($base-line-height / $base-font-size); +} + +// Just the REMs +// ------------- +@mixin font-rem($size) { + font-size: 0px + $size; + font-size: 0rem + $size / $base-font-size; +} + +// Just font-size and line-height +// ------------------------------ +@mixin font($size) { + font-size: 0px + $size; + font-size: 0rem + $size / $base-font-size; + line-height: 0 + round($base-line-height / $size*10000) / 10000; +} + +@mixin text-overflow() { +overflow: hidden; +text-overflow: ellipsis; +white-space: nowrap; } + +// MIXINS +// -------------------------------------------------- + +%tab-focus { + // Default + outline: thin dotted #333; + // Webkit + outline: 5px auto -webkit-focus-ring-color; + outline-offset: -2px; +} + + +// Typography +// -------------------------------------------------- + +/* Vertical Rhythm + https://github.com/sturobson/Sassifaction + + In this mixin you can specify the font size in PX and + it will calculate the REM based on your $base-font-size + & $base-line-height variables. + + @include font-size(24); + + It will also create a bottom margin based on the + $base-font-size & $base-line-height variables unless you + specify that it shouldn't have one. + + @include font-size(24, no); + + Or if you want to specify a different bottom margin to + be generated. + + @include font-size(24,32); + + This mixin also generates a pixel-less line height by + default unless you specify that you either don't want + one where I'd suggest declaring 1 within the mixin. + + @include font-size(24, yes, 1); + + There's also the option to specify a different line-height + for it to generate to, where you would specify the + line-height in (effectively) it's pixel value. + + @include font-size(24, yes, 40); +*/ + +@mixin font-size($size, $margin: yes, $line-height: $base-line-height) { + + // generates the font-size in REMs with a PX fallback + font-size: 0px + $size; + font-size: 0rem + $size / $base-font-size; + + // line-height functions + //////////////////////// + + // if you a line-height is specified in the mixin + @if $line-height != $base-line-height and $line-height != 1 { + line-height: ceil($size / $line-height) * ($line-height / $size); + } + + // if $line-height == 1 + // because, typing 1 is quicker than 16 + @else if $line-height == 1 { + line-height: 1; + } + + // normal $line-height + // if the line-height is left. + @else { + line-height: ceil($size / $base-line-height) * ($base-line-height / $size); + } + + // margin-bottom functions + ////////////////////////// + + // if no is bottom margin is required + @if $margin == no { + margin-bottom: 0; + } + + // if a specific bottom margin is required + @else if $margin != yes and $margin != no { + margin-bottom: 0px + $margin; + margin-bottom: 0rem + ($margin / $base-font-size); + } + + // if you're keeping the vertical rhythm with the margin + @else { + margin-bottom: 0px + $base-line-height; + margin-bottom: 0rem + ($base-line-height / $base-font-size); + } +} + +// ROUND CORNERS +// -------------------------------------------------- + +// @include rounded(VALUE); +@mixin rounded($radius:4px) { +border-radius : $radius; } + +// @include border-radius(VALUE,VALUE,VALUE,VALUE); +@mixin border-radius($topright: 0, $bottomright: 0, $bottomleft: 0, $topleft: 0) { +border-top-right-radius : $topright; +border-bottom-right-radius : $bottomright; +border-bottom-left-radius : $bottomleft; +border-top-left-radius : $topleft; +background-clip : padding-box; } + +// @include box-shadow(HORIZONTAL VERTICAL BLUR COLOR)) +@mixin box-shadow($shadow: 0 1px 3px rgba(0,0,0,.25)) { +-webkit-box-shadow : $shadow; +-moz-box-shadow : $shadow; +box-shadow : $shadow; } + +// @include drop-shadow(HORIZONTAL, VERTICAL, BLUR, ALPHA); +@mixin drop-shadow($x-axis: 0, $y-axis: 1px, $blur: 2px, $alpha: 0.1) { +-webkit-box-shadow : $x-axis $y-axis $blur rgba(0, 0, 0, $alpha); +-moz-box-shadow : $x-axis $y-axis $blur rgba(0, 0, 0, $alpha); +box-shadow : $x-axis $y-axis $blur rgba(0, 0, 0, $alpha); } + +// @include text-shadow(); +@mixin text-shadow($shadow: 0 2px 3px rgba(0,0,0,.25)) { +text-shadow : $shadow; } + +// @include opacity(VALUE); +@mixin opacity($opacity : .5) { +opacity : $opacity; } + +// For image replacement +@mixin hide-text() { +text-indent : 100%; +white-space : nowrap; +overflow : hidden; } + +// Hide from visual and speaking browsers +@mixin hidden() { +display : none !important; +visibility : hidden; } +.hidden { + display: none; + visibility: hidden; +} + +// Hide but maintain layout +@mixin invisible() { +visibility : hidden; } + +// @include resize(VALUE) (none, both, horizontal, vertical, inherit) +@mixin resize($direction: both) { +resize : $direction; +overflow : auto; } + +// @include userselect(VALUE) (all, element, none, text) +@mixin user-select($select) { +-webkit-user-select : $select; +-moz-user-select : $select; +-o-user-select : $select; +user-select : $select; } + +// Hidden but available to speaking browsers +@mixin visuallyhidden() { +overflow : hidden; +position : absolute; +clip : rect(0 0 0 0); +height : 1px; +width : 1px; +margin : -1px; +padding : 0; +border : 0; } + + +@mixin clearfix { + &:after { + content:""; + display:table; + clear:both; + } +} diff --git a/blog/index.html b/blog/index.html new file mode 100755 index 000000000..0d3428742 --- /dev/null +++ b/blog/index.html @@ -0,0 +1,50 @@ +--- +layout: default +title: Ehcache Blog +headline: Read all blog posts about Ehcache, the most widely used Java caching library +--- + +
    + +
    + +
    + + + + + +
    +
    +
    +
    +
      + {% for post in site.categories.blog %} +
    • +
      +
      + {{ site.data.authors[post.author].name }} bio photo +
      +
      +
      + +
      + +
      +

      {{ post.headline }}

      +
      +
      +
      +
    • + {% endfor %} +
    +
    +
    + +
    + +
    diff --git a/css/main.scss b/css/main.scss index 5185a3db7..ff8e2f80e 100755 --- a/css/main.scss +++ b/css/main.scss @@ -7,7 +7,7 @@ // Our variables $base-font-family: Helvetica, Arial, sans-serif; -$base-font-size: 16px; +$base-font-size: 16; $small-font-size: $base-font-size * 0.875; $base-line-height: 1.5; @@ -46,6 +46,7 @@ $on-laptop: 800px; // Import partials from `sass_dir` (defaults to `_sass`) @import + "mixins", "base", "layout", "syntax-highlighting" diff --git a/resources/index.html b/resources/index.html new file mode 100755 index 000000000..db54efceb --- /dev/null +++ b/resources/index.html @@ -0,0 +1,40 @@ +--- +layout: default +title: Ehcache Resources +headline: Links to all external resources talking about Ehcache, the most widely used Java caching library +--- + +
    + +
    + +
    + + + + + +
    +
    +
    +
    +
      + {% for post in site.categories.resources %} +
    • +
      + +

      {{ post.title }}

      +

      {{ post.headline }}

      +

      {{ post.content }}

      +
      +
    • + {% endfor %} +
    +
    +
    + +
    + +
    diff --git a/tags/index.md b/tags/index.md new file mode 100644 index 000000000..9a3c93f8b --- /dev/null +++ b/tags/index.md @@ -0,0 +1,25 @@ +--- +layout: page +title: Tag Index +excerpt: "An archive of posts sorted by tag." +--- + +{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} +{% assign tags_list = site_tags | split:',' | sort %} + + + +{% for item in (0..site.tags.size) %}{% unless forloop.last %} + {% capture this_word %}{{ tags_list[item] | strip_newlines }}{% endcapture %} +

    {{ this_word }}

    + +{% endunless %}{% endfor %} \ No newline at end of file From 2cba20e0a2225c19d3e788e39b918dc8fcea1400 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Thu, 5 May 2016 18:32:16 -0400 Subject: [PATCH 02/10] :memo: Updated README --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8361bd83b..77c41190e 100644 --- a/README.md +++ b/README.md @@ -86,4 +86,13 @@ modified: ### Contributing an external resource -TODO: MATHIEU +Same rules apply as above, except that you have to put your file into `_posts/resources` and add a header like this one: + +``` +title: "Ehcache 3: JSR-107 on steroids" +headline: "Ehcache 3: JSR-107 on steroids at Devoxx Morocco by Louis Jacomet" +categories: resources +date: 2015-11-18T00:00:00-00:00 +`` + +__IMPORTANT:__ Yout content MUST be short! Links, headline, title, that's all. From 74b0ccdca528f06c60d02a1f4c982e3605201332 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Thu, 5 May 2016 18:54:21 -0400 Subject: [PATCH 03/10] :heavy_plus_sign: Atom/RSS Feed plus sitemap --- _config.yml | 3 +-- _includes/footer.html | 6 ++++++ _includes/head.html | 3 +-- blog/index.html | 2 ++ feed.xml | 38 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 48 insertions(+), 4 deletions(-) create mode 100755 feed.xml diff --git a/_config.yml b/_config.yml index 9414604a5..1bb877f9e 100644 --- a/_config.yml +++ b/_config.yml @@ -18,8 +18,7 @@ markdown: kramdown gems: - jekyll-asciidoc - - + - jekyll-sitemap asciidoctor: diff --git a/_includes/footer.html b/_includes/footer.html index 714cbbcd7..4cda09fcc 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -50,6 +50,12 @@ {% endif %} + +
  • + + Ehcache Blog Feed + +
  • diff --git a/_includes/head.html b/_includes/head.html index 38e759352..486b3f27c 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -12,8 +12,7 @@ - - + diff --git a/blog/index.html b/blog/index.html index 0d3428742..3fb2a654b 100755 --- a/blog/index.html +++ b/blog/index.html @@ -22,6 +22,7 @@
    diff --git a/feed.xml b/feed.xml new file mode 100755 index 000000000..02b7b43fc --- /dev/null +++ b/feed.xml @@ -0,0 +1,38 @@ +--- +layout: +sitemap: false +--- + + +{{ site.title }} +Jekyll + + +{{ site.time | date_to_xmlschema }} +{{ site.url }}/ + + {{ site.title }} + {{ site.url }}/ + {% if site.email %}{{ site.email }}{% endif %} + +{% for post in site.posts limit:20 %} + {% if post.hidden != true %} + {% assign author = site.data.authors[post.author] %} + + <![CDATA[{{ post.title | cdata_escape }}]]> + + {{ site.url }}{{ post.id }} + {% if post.modified %}{{ post.modified | to_xmlschema }}T00:00:00-00:00 + {{ post.date | date_to_xmlschema }} + {% else %}{{ post.date | date_to_xmlschema }} + {{ post.date | date_to_xmlschema }}{% endif %} + + {{ author.name }} + {{ site.url }} + + {{ post.content | xml_escape }} + <p><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a> was originally published by {{ author.name }} at <a href="{{ site.url }}">{{ site.title }}</a> on {{ post.date | date: "%B %d, %Y" }}.</p> + + {% endif %} +{% endfor %} + \ No newline at end of file From 7bffa295d3e0520e9fd3fc1548589322af4c6b41 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Fri, 6 May 2016 10:53:42 -0400 Subject: [PATCH 04/10] :art: Moved Resources under Community --- _includes/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/header.html b/_includes/header.html index 2bd284c2a..aae4d326a 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -16,13 +16,13 @@