(Feature) Build System: Use npm scripts for the build process (#16)

* (Chore) Editorconfig: Add an editorconfig file so those spaces and tabs dont keep mixing

* (Refactor) Build: use npm scripts to build assets

* (Chore) Build: remove dist files from repo / fix ESLint errors

* (Update) Build: Remove unused tasks / add autoprefixer

* (Chore) Gemfile: remove old dependencies

* (Chore) Package.json: Shrinkwrap & postinstalll

* (Doc) Build: Update instructions for new build system

* (Fix) Build: Wach html files in all folders

* (Fix) Build: exclude _site/ from watch

* (Chore) Build/CI: Update buildscript for node/ruby combined

* (Chore) Travis: Add g++ compiler to environment

* (Chore) Build: fix watched directory

* (Fix) travis: set version to 4.5.0 LTS

* (Fix) travis: remove shrinkwrap

* (Fix) Travis: rvm

* (Fix) Travis: before_install

* (Fix) Travis: ignore dist for html proofer
This commit is contained in:
0xfff 2016-09-17 02:14:13 +02:00 committed by GitHub
parent 0cd655f34b
commit 2b0331ad48
145 changed files with 408 additions and 416 deletions

View file

@ -12,7 +12,7 @@
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" type="text/css" href="/assets/css/style.css">
<link rel="stylesheet" type="text/css" href="/dist/css/main.min.css">
</head>
<body>
@ -34,9 +34,7 @@
<script src="//cdn.jsdelivr.net/lodash/4.12.0/lodash.min.js"></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/jquery.matchHeight/0.7.0/jquery.matchHeight-min.js'></script>
<script src="/assets/js/moment.min.js"></script>
<script src="/assets/js/full-menu.js"></script>
<script src="/dist/js/main.min.js"></script>
<script>
function formatNumber (num) {
return num.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")

View file

@ -21,14 +21,14 @@ layout: default
</div>
<div class="sidebar">
{% for post in site.related_posts limit:5 %}
<!-- limit:4 -->
{% for post in site.related_posts limit:5 %}
<!-- limit:4 -->
<div class="feature">
<h3><a href="{{ basenav }}{{ post.url }}">{{ post.title }}</a></h3>
<p><em>{{ post.date | date: "%b %d, %Y" }}</em><br />{{ post.excerpt | strip_html | truncatewords: 10 }}</p>
</div>
{% endfor %}