블로그!
Jekyll 을 이용해서 블로그를 시도해보려고한다.
기존에 github 위키를 이용해서 정리 하던걸 이걸로 해볼예정이다..
노력해보자..
코드도 이런식으로 하면되니 정리를 좀 잘 할 수 있으려나?
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
작업일지
2017.07.04 Tag 추가 : https://hyesun03.github.io/2016/12/05/jekyllTag/
2017.07.20 Recents 추가 : http://demun.github.io/jekyll/newpost/
2018.02.05 목차 추가 : http://dveamer.github.io/homepage/JekyllOnGithubPages.html
기존에 잘되던건데 안돼서 다른것으로 변경함귀찬아..
</div>
<!-- 추가 코드 -->
</div>
</div>
<!-- 추가 코드 -->
<script type="text/javascript">
$(document).ready(function(){
var tag = null;
$("h1,h2,h3,h4,h5,h6").not(".subtitle").not(".post-title").not(".index").each(function(i,item){
tag = $(item).get(0).localName;
$(item).attr("id","content_"+i);
$("#toc").append('<a class="new'+tag+'" href="#content_'+i+'">'+$(this).text()+'</a></br>');
});
if(tag !=null ){
$(".newh1").css("margin-left",0);
$(".newh2").css("margin-left",20);
$(".newh3").css("margin-left",40);
$(".newh4").css("margin-left",60);
$(".newh5").css("margin-left",80);
$(".newh6").css("margin-left",100);
$("#toc").attr('hidden', false);
}
});
</script>
<!-- 추가 코드 -->