Compare commits

...
12 Commits
Author SHA1 Message Date
Michael Rose d5a0a2e585 Fix typo in menu button class
- .navtoogle should be .navtoggle
- Fixes #175
2015-08-19 12:50:58 -04:00
Michael Rose e7489a139d Merge pull request #166 from andreykurenkov/improve_year_output
Simplify year output logic in post_index
2015-08-07 11:47:53 -04:00
andreykurenkov 985a6fd47d Merged improvement to post-index.html 2015-08-05 19:24:19 -07:00
andreykurenkov 0498eb167c Revised year listing that is more robust to changes- 2015-08-05 19:23:00 -07:00
Michael Rose eddc18ccc0 Merge pull request #141 from cdodd/remove-whitespace
Remove trailing whitespace
2015-07-20 12:58:24 -04:00
Michael Rose d80b49f524 Merge pull request #157 from vlajos/patch-1
Stackoverflow username explanation
2015-07-20 12:52:40 -04:00
Michael Rose 215308a831 Merge pull request #158 from vlajos/patch-2
fix typo
2015-07-20 12:51:31 -04:00
Veres Lajos 8e55544e3e fix typo 2015-07-19 19:09:33 +01:00
Veres Lajos e33b45a7ad Stackoverflow username explanation 2015-07-19 15:12:20 +01:00
Michael Rose 8dafa9a753 Merge pull request #156 from hbarudin/add-codepen-social-option
Add CodePen to owner social options
2015-07-12 12:20:32 -04:00
Hannah Barudin d43aeab685 Add CodePen to owner social options 2015-07-11 22:08:55 -04:00
Craig Dodd f06b4c163d Remove trailing whitespace 2015-04-17 11:43:36 +01:00
34 changed files with 359 additions and 360 deletions
+2 -1
View File
@@ -41,7 +41,7 @@ owner:
ad-slot: ad-slot:
bing-verify: bing-verify:
github: #username github: #username
stackoverflow: #http://stackoverflow.com/users/123456/username stackoverflow: #123456/username from a "http://stackoverflow.com/users/123456/username" link
linkedin: #username linkedin: #username
xing: #username xing: #username
instagram: #username instagram: #username
@@ -55,6 +55,7 @@ owner:
soundcloud: #username soundcloud: #username
weibo: #username weibo: #username
flickr: #username flickr: #username
codepen: #username
include: [".htaccess"] include: [".htaccess"]
exclude: ["lib", "config.rb", "Capfile", "config", "log", "Rakefile", "Rakefile.rb", "tmp", "less", "*.sublime-project", "*.sublime-workspace", "test", "spec", "Gruntfile.js", "package.json", "node_modules", "Gemfile", "Gemfile.lock", "LICENSE", "README.md"] exclude: ["lib", "config.rb", "Capfile", "config", "log", "Rakefile", "Rakefile.rb", "tmp", "less", "*.sublime-project", "*.sublime-workspace", "test", "spec", "Gruntfile.js", "package.json", "node_modules", "Gemfile", "Gemfile.lock", "LICENSE", "README.md"]
+1
View File
@@ -31,4 +31,5 @@
{% if author.soundcloud %}<a href="http://soundcloud.com/{{ author.soundcloud }}" class="author-social" target="_blank"><i class="fa fa-fw fa-soundcloud"></i> Soundcloud</a>{% endif %} {% if author.soundcloud %}<a href="http://soundcloud.com/{{ author.soundcloud }}" class="author-social" target="_blank"><i class="fa fa-fw fa-soundcloud"></i> Soundcloud</a>{% endif %}
{% if author.weibo %}<a href="http://www.weibo.com/{{ author.weibo }}" class="author-social" target="_blank"><i class="fa fa-fw fa-weibo"></i> Weibo</a>{% endif %} {% if author.weibo %}<a href="http://www.weibo.com/{{ author.weibo }}" class="author-social" target="_blank"><i class="fa fa-fw fa-weibo"></i> Weibo</a>{% endif %}
{% if author.flickr %}<a href="http://www.flickr.com/{{ author.flickr }}" class="author-social" target="_blank"><i class="fa fa-fw fa-flickr"></i> Flickr</a>{% endif %} {% if author.flickr %}<a href="http://www.flickr.com/{{ author.flickr }}" class="author-social" target="_blank"><i class="fa fa-fw fa-flickr"></i> Flickr</a>{% endif %}
{% if author.codepen %}<a href="http://codepen.io/{{ author.codepen }}" class="author-social" target="_blank"><i class="fa fa-fw fa-codepen"></i> CodePen</a>{% endif %}
</div> </div>
+4 -7
View File
@@ -34,16 +34,13 @@
</div> </div>
<div id="index"> <div id="index">
<h1>{{ page.title }}</h1> <h1>{{ page.title }}</h1>
{% capture written_year %}'None'{% endcapture %}
{% for post in site.posts %} {% for post in site.posts %}
{% unless post.next %}
<h3>{{ post.date | date: '%Y' }}</h3>
{% else %}
{% capture year %}{{ post.date | date: '%Y' }}{% endcapture %} {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
{% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %} {% if year != written_year %}
{% if year != nyear %} <h3>{{ year }}</h3>
<h3>{{ post.date | date: '%Y' }}</h3> {% capture written_year %}{{ year }}{% endcapture %}
{% endif %} {% endif %}
{% endunless %}
<article> <article>
{% if post.link %} {% if post.link %}
<h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></a></h2> <h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></a></h2>
+2 -2
View File
@@ -165,7 +165,7 @@ $button-size: 1.5rem;
} }
} }
// Style the toggle menu link and hide it // Style the toggle menu link and hide it
.nav .navtoogle { .nav .navtoggle {
@include font-rem(18); @include font-rem(18);
font-weight: normal; font-weight: normal;
background-color: $black; background-color: $black;
@@ -180,7 +180,7 @@ $button-size: 1.5rem;
border: none; border: none;
background: none; background: none;
} }
.navtoogle i { .navtoggle i {
z-index:-1; z-index:-1;
} }
.icon-menu { .icon-menu {
+3 -3
View File
@@ -13,11 +13,11 @@ var changeClass = function (r,className1,className2) {
}; };
// Creating our button in JS for smaller screens // Creating our button in JS for smaller screens
var menuElements = document.getElementById('site-nav'); var menuElements = document.getElementById('site-nav');
menuElements.insertAdjacentHTML('afterBegin','<button type="button" role="button" id="menutoggle" class="navtoogle navicon-lines-button x" aria-hidden="true"><span class="navicon-lines"></span>menu</button>'); menuElements.insertAdjacentHTML('afterBegin','<button type="button" role="button" id="menutoggle" class="navtoggle navicon-lines-button x" aria-hidden="true"><span class="navicon-lines"></span>menu</button>');
// Toggle the class on click to show / hide the menu // Toggle the class on click to show / hide the menu
document.getElementById('menutoggle').onclick = function() { document.getElementById('menutoggle').onclick = function() {
changeClass(this, 'navtoogle active', 'navtoogle'); changeClass(this, 'navtoggle active', 'navtoggle');
}; };
// http://tympanus.net/codrops/2013/05/08/responsive-retina-ready-menu/comment-page-2/#comment-438918 // http://tympanus.net/codrops/2013/05/08/responsive-retina-ready-menu/comment-page-2/#comment-438918
document.onclick = function(e) { document.onclick = function(e) {
@@ -25,7 +25,7 @@ document.onclick = function(e) {
buttonStyle = mobileButton.currentStyle ? mobileButton.currentStyle.display : getComputedStyle(mobileButton, null).display; buttonStyle = mobileButton.currentStyle ? mobileButton.currentStyle.display : getComputedStyle(mobileButton, null).display;
if(buttonStyle === 'block' && e.target !== mobileButton && new RegExp(' ' + 'active' + ' ').test(' ' + mobileButton.className + ' ')) { if(buttonStyle === 'block' && e.target !== mobileButton && new RegExp(' ' + 'active' + ' ').test(' ' + mobileButton.className + ' ')) {
changeClass(mobileButton, 'navtoogle active', 'navtoogle'); changeClass(mobileButton, 'navtoggle active', 'navtoggle');
} }
}; };
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "minimal-mistakes-theme", "name": "minimal-mistakes-theme",
"author": "Michael Rose <michael@mademistakes.com>", "author": "Michael Rose <michael@mademistakes.com>",
"homepage": "http://mmistakes.github.io/minima-mistakes/", "homepage": "http://mmistakes.github.io/minimal-mistakes/",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/mmistakes/minimal-mistakes.git" "url": "git://github.com/mmistakes/minimal-mistakes.git"