Skip to content

Commit 06b39fe

Browse files
committed
updates to blog style, scripts etc
1 parent 43bcf5b commit 06b39fe

9 files changed

Lines changed: 63 additions & 6 deletions

File tree

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
permalink: /:year/:month/:title.html
1+
permalink: :title.html
22
lsi: false
33
highlighter: rouge
4+
markdown: kramdown

_includes/css/main-new.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_includes/css/main-new.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ blockquote
233233
position: absolute;
234234
top: 1.46em;
235235
}
236+
237+
p > img {
238+
width: 100%;
239+
}
236240
}
237241

238242
#comments { margin-top: 6.854em; }
@@ -266,12 +270,20 @@ blockquote
266270
right: 0;
267271
bottom: 1em;
268272
padding: 3px;
273+
font-size: 0.8rem;
274+
line-height: 1rem;
275+
width: 15%;
276+
font-family: Consolas, Monaco, 'Andale Mono', monospace;
277+
opacity: 0.5;
278+
269279
a {
270280
color: $heading-color;
271281
&:hover { border:none; color: $heading-color;}
272282
}
273283
}
274284

285+
.todos ul { padding-left: 0; list-style: none;}
286+
275287
/* ==========================================================================
276288
Media Queries
277289
========================================================================== */

_layouts/post.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
<div id="page-content" class="clearfix">
66
{% if page.forreview %}
77
<div id="review-tools">
8-
<a href="https://github.com/madaboutcode/madaboutcode.github.com/blob/master/_posts/{{page.filename}}" target="_blank">
8+
<div class="todos">
9+
<h4>TODO</h4>
10+
{{page.todo | markdownify}}
11+
</div>
12+
<a href="https://github.com/madaboutcode/madaboutcode.github.com/blob/master/{{page.path}}" target="_blank">
913
Open post in github
1014
</a>
1115
</div>

css/all.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: nil
2+
layout: null
33
---
44
{% include css/normalize.min.css %}
55
{% include css/icons.css %}

js/all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
layout: nil
2+
layout: null
33
---
44
{% include js/jquery-1.8.2.min.js %}
55
{% include js/site.js %}

scripts/newpost

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
if [ "$#" -ne 1 ] ; then
4+
echo "Usage: $0 <title>" >&2
5+
exit 1
6+
fi
7+
8+
9+
title=`echo "$1" |sed 's/ /-/g'`
10+
fileName=`date +%Y-%m-%d-$title.md`
11+
filePath="_posts/$fileName"
12+
13+
if [ -f $filePath ];
14+
then
15+
echo $filePath exists...
16+
else
17+
touch $filePath
18+
cat > $filePath <<DELIM
19+
---
20+
layout: post
21+
title: "$1"
22+
date: `date "+%Y-%m-%d %H:%M:%S"`
23+
category:
24+
filename: "$fileName"
25+
forreview: true
26+
banner:
27+
todo: |
28+
- [ ] review
29+
- [ ] add reference links
30+
- [ ] add banner
31+
---
32+
33+
DELIM
34+
35+
fi
36+
37+
open -a Byword "$filePath"
38+
open -a "Marked 2" "$filePath"

startsass.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cd _includes/css
2+
sassc main-new.scss main-new.css --style compressed

startserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
echo Visit http://localhost:4000 in your browser to see the blog
3-
jekyll serve --watch --incremental
3+
jekyll serve --watch --incremental --future $@

0 commit comments

Comments
 (0)