mirror of
https://github.com/itme-brain/itme-brain.github.io.git
synced 2026-03-23 12:09:44 -04:00
overhaul
This commit is contained in:
parent
8c6b8d5d9b
commit
9576fe3e3f
21 changed files with 980 additions and 138 deletions
11
_layouts/base.html
Normal file
11
_layouts/base.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{% include head.html %}
|
||||
<title>{% if page.title %}{{ page.title }} | {% endif %}Bryan Ramos</title>
|
||||
</head>
|
||||
<body>
|
||||
{% include header.html %}
|
||||
{{ content }}
|
||||
</body>
|
||||
</html>
|
||||
18
_layouts/blog.html
Normal file
18
_layouts/blog.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
layout: base
|
||||
---
|
||||
<div class="blog-list">
|
||||
{% if site.posts.size == 0 %}
|
||||
<p style="color: var(--color-text-secondary);">No posts yet.</p>
|
||||
{% else %}
|
||||
{% for post in site.posts %}
|
||||
<div class="post-preview">
|
||||
<span class="post-date">{{ post.date | date: "%B %-d, %Y" }}</span>
|
||||
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
|
||||
{% if post.description %}
|
||||
<p class="post-description">{{ post.description }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
4
_layouts/page.html
Normal file
4
_layouts/page.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
layout: base
|
||||
---
|
||||
{{ content }}
|
||||
15
_layouts/post.html
Normal file
15
_layouts/post.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
layout: base
|
||||
---
|
||||
<article class="post">
|
||||
<header class="post-header">
|
||||
<h1>{{ page.title }}</h1>
|
||||
<time class="post-date" datetime="{{ page.date | date: '%Y-%m-%d' }}">{{ page.date | date: "%B %-d, %Y" }}</time>
|
||||
</header>
|
||||
<div class="post-content">
|
||||
{{ content }}
|
||||
</div>
|
||||
<footer class="post-nav">
|
||||
<a href="{{ '/blog' | relative_url }}">← Back to Blog</a>
|
||||
</footer>
|
||||
</article>
|
||||
Loading…
Add table
Add a link
Reference in a new issue