Initial commits and git hooks

This commit is contained in:
2018-06-18 19:01:03 -04:00
父節點 211490ae47
當前提交 d8107b271a
共有 219 個文件被更改,包括 7803 次插入8407 次删除

查看文件

@@ -0,0 +1,16 @@
{% capture before %}{{ include.link[1] | split: "://" | first }}{% endcapture %}
{% capture after %}{{ include.link[1] | split: "://" | last }}{% endcapture %}
{% assign internal = true %}
{% if before != after %}
{% if before == "http" or before == "https" %}
{% assign internal = false %}
{% endif %}
{% endif %}
{% if internal %}
{% capture linkurl %}{{ site.baseurl }}/{{ include.link[1] }}{% endcapture %}
{% else %}
{% capture linkurl %}{{ include.link[1] }}{% endcapture %}
{% endif %}
<a href="{{ linkurl }}">{{ include.link[0] }}</a>