init
This commit is contained in:
commit
c021228161
24 changed files with 1509 additions and 0 deletions
27
sites/jekyll-source/_layouts/default.html
Normal file
27
sites/jekyll-source/_layouts/default.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ site.lang | default: "en-US" }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% if page.title %}{{ page.title | escape }} - {{ site.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
|
||||
<meta name="description" content="{{ page.description | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
|
||||
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
||||
{% feed_meta %}
|
||||
{% seo %}
|
||||
{% include analytics/umami.html %}
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1><a href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></h1>
|
||||
<p>{{ site.tagline | escape }}</p>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
{{ content }}
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<p>© {{ site.time | date: '%Y' }} {{ site.author.name | default: site.title }}</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
24
sites/jekyll-source/_layouts/home.html
Normal file
24
sites/jekyll-source/_layouts/home.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
<div class="home">
|
||||
{{ content }}
|
||||
|
||||
<h2>Recent Posts</h2>
|
||||
|
||||
<ul class="post-list">
|
||||
{% for post in site.posts limit:10 %}
|
||||
<li>
|
||||
<h3>
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
||||
</h3>
|
||||
<p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p>
|
||||
{% if post.description %}
|
||||
<p>{{ post.description }}</p>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<p><a href="{{ "/archive" | relative_url }}">View all posts</a></p>
|
||||
</div>
|
46
sites/jekyll-source/_layouts/post.html
Normal file
46
sites/jekyll-source/_layouts/post.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
<article class="post">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title | escape }}</h1>
|
||||
<p class="post-meta">
|
||||
<time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%b %-d, %Y" }}</time>
|
||||
{% if page.author %}
|
||||
• <span>{{ page.author }}</span>
|
||||
{% endif %}
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<div class="post-content">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
{% if page.tags.size > 0 %}
|
||||
<div class="post-tags">
|
||||
<p>Tags:
|
||||
{% for tag in page.tags %}
|
||||
<a href="{{ site.baseurl }}/tags/#{{ tag | slugify }}">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
</article>
|
||||
<br>
|
||||
<h2>Recent Posts</h2>
|
||||
|
||||
<ul class="post-list">
|
||||
{% for post in site.posts limit:10 %}
|
||||
<li>
|
||||
<h3>
|
||||
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
||||
</h3>
|
||||
<p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p>
|
||||
{% if post.description %}
|
||||
<p>{{ post.description }}</p>
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
<p><a href="{{ "/archive" | relative_url }}">View all posts</a></p>
|
Loading…
Add table
Add a link
Reference in a new issue