diff options
Diffstat (limited to '_includes')
| -rw-r--r-- | _includes/goat_counter.html | 6 | ||||
| -rw-r--r-- | _includes/head.html | 15 | ||||
| -rw-r--r-- | _includes/menu_item.html | 19 | ||||
| -rw-r--r-- | _includes/post_list.html | 9 |
4 files changed, 49 insertions, 0 deletions
diff --git a/_includes/goat_counter.html b/_includes/goat_counter.html new file mode 100644 index 0000000..8c22587 --- /dev/null +++ b/_includes/goat_counter.html @@ -0,0 +1,6 @@ +<script data-goatcounter="https://{{ site.goat_counter }}.goatcounter.com/count" + async src="//gc.zgo.at/count.js"></script> + +<noscript> + <img src="https://{{ site.goat_counter }}.goatcounter.com/count?p=/test-img"> +</noscript>
\ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..9a85610 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,15 @@ +<head> + <meta charset="utf-8" /> + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> + + {% feed_meta %} + {% seo %} + + {% if site.goat_counter and jekyll.environment == "production" %} + {% include goat_counter.html %} + {% endif %} + + <link rel="shortcut icon" type="image/x-icon" href="/{{ site.favicon }}" /> + <link rel="stylesheet" href="{{ site.url }}/assets/css/main.css" /> +</head>
\ No newline at end of file diff --git a/_includes/menu_item.html b/_includes/menu_item.html new file mode 100644 index 0000000..fc14e4b --- /dev/null +++ b/_includes/menu_item.html @@ -0,0 +1,19 @@ +<ul> + {% for item in include.collection %} + <li> + {% if item.url != false %} + <a href="{{ item.url }}">{{ item.title }}</a> + {% else %} + {{ item.title }} + {% endif %} + </li> + + {% if item.post_list == true %} + {% include post_list.html %} + {% endif %} + + {% if item.entries != blank %} + {% include menu_item.html collection=item.entries %} + {% endif %} + {% endfor %} +</ul>
\ No newline at end of file diff --git a/_includes/post_list.html b/_includes/post_list.html new file mode 100644 index 0000000..f516e33 --- /dev/null +++ b/_includes/post_list.html @@ -0,0 +1,9 @@ +{% if site.posts.size > 0 %} + <ul> + {% for post in site.posts %} + <li> + {{ post.date | date: site.theme_config.date_format }} <a href="{{ post.url }}">{{ post.title | downcase }}</a> + </li> + {% endfor %} + </ul> +{% endif %}
\ No newline at end of file |