initial commit, add Publish, add minimal theme, add content
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
---
|
||||
layout: page
|
||||
---
|
||||
|
||||
{% unless page.content == '' %}
|
||||
{{ content }}
|
||||
{% endunless %}
|
||||
|
||||
<ul class="posts-list">
|
||||
{% assign category = page.category | default: page.title %}
|
||||
{% for post in site.categories[category] %}
|
||||
<li>
|
||||
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
|
||||
{% include date-badges.html %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
<body class="{{ page.layout }}{% if page.url == '/' %} home{% endif %}">
|
||||
|
||||
{% include nav/navigation.html %}
|
||||
|
||||
<main class="container py-3">
|
||||
{% include header.html %}
|
||||
{{ content }}
|
||||
</main>
|
||||
|
||||
<footer class="container-fluid py-3">
|
||||
{% include pagination.html %}
|
||||
{% include scripts.html %}
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,53 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
|
||||
{% for post in paginator.posts %}
|
||||
<div class="pb-5">
|
||||
|
||||
<div class="card bg-dark p-2">
|
||||
<div class="card-body">
|
||||
|
||||
<h2 class="card-title">
|
||||
<a href="{{ post.url | relative_url }}">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</h2>
|
||||
|
||||
<div class="card-text">
|
||||
{% include post-meta.html post=post %}
|
||||
|
||||
{% if post.excerpt %}
|
||||
{{ post.excerpt }}
|
||||
{% else %}
|
||||
{{ post.content }}
|
||||
{% endif %}
|
||||
|
||||
{% if post.excerpt %}
|
||||
{% comment %}Excerpt may be equal to content. Check.{% endcomment %}
|
||||
{% capture content_words %}
|
||||
{{ post.content | number_of_words }}
|
||||
{% endcapture %}
|
||||
{% capture excerpt_words %}
|
||||
{{ post.excerpt | number_of_words }}
|
||||
{% endcapture %}
|
||||
</div>
|
||||
|
||||
{% if content_words != excerpt_words %}
|
||||
<a href="{{ post.url | relative_url }}" class="btn btn-sm btn-secondary">
|
||||
Read more {% octicon chevron-right height:12 %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<!-- end of paginator -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{% include post-meta.html post=page %}
|
||||
|
||||
<div>
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
{% include post-tags.html post=page %}
|
||||
{% include related_posts.html %}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{{ content }}
|
||||
<div>
|
||||
{% for repository in site.github.public_repositories limit: 100 %}
|
||||
{% if repository.stargazers_count > 0 %}
|
||||
<div>
|
||||
{% include repo-card.html %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,37 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<!-- See https://blog.lanyonm.org/articles/2013/11/21/alphabetize-jekyll-page-tags-pure-liquid.html -->
|
||||
<!-- With added pipe to handle lack of sort_natural -->
|
||||
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first | downcase }}|{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
||||
<!-- site_tags: {{ site_tags }} -->
|
||||
{% assign tag_words = site_tags | split:',' | sort %}
|
||||
<!-- tag_words: {{ tag_words }} -->
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="btn-group-vertical">
|
||||
{% for tag_pair in tag_words %}
|
||||
{% assign tag = tag_pair | split:'|' | last %}
|
||||
<a href="#{{ tag | slugify }}" class="btn btn-sm btn-secondary">{% octicon tag height:12 class:"" %} {{ tag }}: {{ site.tags[tag] | size }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
{% for tag_pair in tag_words %}
|
||||
{% assign tag = tag_pair | split:'|' | last %}
|
||||
<div id="{{ tag | slugify }}" class="posts-for-tag">
|
||||
<h2>{{ tag }}</h2>
|
||||
<ul>
|
||||
{% for post in site.tags[tag] %}
|
||||
<li>
|
||||
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
{% include date-badges.html %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user