-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fccf525
commit ad8a5a2
Showing
25 changed files
with
482 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
vite: bin/vite dev | ||
jekyll: bin/jekyll-vite wait && bundle exec jekyll serve --livereload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
require 'jekyll/vite' | ||
ViteRuby.install_tasks | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import "@fortawesome/fontawesome-free/js/all.js"; | ||
import '~/_sass/app.scss' | ||
|
||
// To see this message, follow the instructions for your Ruby framework. | ||
// | ||
// When using a plain API, perhaps it's better to generate an HTML entrypoint | ||
// and link to the scripts and stylesheets, and let Vite transform it. | ||
console.log('Vite ⚡️ Ruby') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
{% vite_client_tag %} | ||
{% vite_typescript_tag application %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ page.lang | default: site.lang | default: "en" }}"> | ||
|
||
{%- include head.html -%} | ||
|
||
<body> | ||
|
||
{%- include header.html -%} | ||
|
||
<main class="page-content" aria-label="Content"> | ||
<div class="wrapper"> | ||
{{ content }} | ||
</div> | ||
</main> | ||
|
||
{%- include footer.html -%} | ||
|
||
</body> | ||
|
||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,61 @@ | ||
--- | ||
layout: default | ||
layout: base | ||
--- | ||
<div id="home"> | ||
<!-- Responsive Header --> | ||
<section id="header-nav"> | ||
{% include header.html %} | ||
</section> | ||
<section id="header-content"> | ||
<h1>{{ site.theme_settings.title }}</h1> | ||
</section> | ||
<section class="bg"></section> | ||
<div class="row"> | ||
<!-- Aside Navigation --> | ||
<aside id="aside" class="col-md-4"> | ||
{% include aside.html %} | ||
</aside> | ||
<!-- Post List --> | ||
<main id="posts" class="col-md-8"> | ||
{% for post in paginator.posts %} | ||
<div class="post"> | ||
<div class="post-wrap"> | ||
<div class="text-warp"> | ||
<h3 class="title"><a href="{{ post.url }}">{{ post.title }}</a></h3> | ||
<p class="excerpt"> | ||
{% if post.excerpt.size > 50 %} | ||
{{ post.excerpt | strip_html | strip_newlines | truncatewords: 25, '...' }} | ||
{% else %} | ||
{{ post.subtitle }} | ||
{% endif %} | ||
</p> | ||
<div> | ||
<span class="meta"> | ||
{{ post.date | date: "%B %-d, %Y" }} | ||
</span> | ||
<ul class="tag-wrap"> | ||
{% for tag in post.tags %} | ||
<li class="tag-sm"><a href="{{site.baseurl}}/tags#{{ tag | cgi_escape }}">{{ tag }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
{% if post.image %} | ||
<div class="img-wrap"> | ||
<img src="{{ post.image }}" alt=""> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
<!-- Pagination --> | ||
{% if paginator.total_pages > 1 %} | ||
<div id="pagination"> | ||
<ul> | ||
{% assign q = paginator.page | divided_by: 5 %} | ||
{% assign min = q | times: 5 %} | ||
{% assign max = q | plus: 1 | times: 5 | minus: 1 %} | ||
{% if min == 0 %} | ||
{% assign min = 1 %} | ||
{% endif %} | ||
{% if max > paginator.total_pages %} | ||
{% assign max = paginator.total_pages %} | ||
{% endif %} | ||
{% if min != 1 %} | ||
<a href="/blog/page{{ min | minus: 1 }}"> | ||
<li class="btn-rounded prev"> | ||
<i class="fas fa-angle-double-left"></i> | ||
</li> | ||
</a> | ||
{% endif %} | ||
{% for page in (min..max) %} | ||
<a href="{% if page == 1 %}/{% else %}/blog/page{{ page }}{% endif %}" | ||
class="{% if page == paginator.page %}selected{% endif %}"> | ||
<li class="btn-rounded">{{ page }}</li> | ||
</a> | ||
{% endfor %} | ||
{% if max != paginator.total_pages %} | ||
<a href="/blog/page{{ max | plus: 1 }}"> | ||
<li class="btn-rounded next"> | ||
<i class="fas fa-angle-double-right"></i> | ||
</li> | ||
|
||
<div class="home"> | ||
{%- if page.title -%} | ||
<h1 class="page-heading">{{ page.title }}</h1> | ||
{%- endif -%} | ||
|
||
{{ content }} | ||
|
||
|
||
{% if site.paginate %} | ||
{% assign posts = paginator.posts %} | ||
{% else %} | ||
{% assign posts = site.posts %} | ||
{% endif %} | ||
|
||
|
||
{%- if posts.size > 0 -%} | ||
{%- if page.list_title -%} | ||
<h2 class="post-list-heading">{{ page.list_title }}</h2> | ||
{%- endif -%} | ||
<ul class="post-list"> | ||
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%} | ||
{%- for post in posts -%} | ||
<li> | ||
<span class="post-meta">{{ post.date | date: date_format }}</span> | ||
<h3> | ||
<a class="post-link" href="{{ post.url | relative_url }}"> | ||
{{ post.title | escape }} | ||
</a> | ||
{% endif %} | ||
</h3> | ||
{%- if site.show_excerpts -%} | ||
{{ post.excerpt }} | ||
{%- endif -%} | ||
</li> | ||
{%- endfor -%} | ||
</ul> | ||
|
||
{% if site.paginate %} | ||
<div class="pager"> | ||
<ul class="pagination"> | ||
{%- if paginator.previous_page %} | ||
<li><a href="{{ paginator.previous_page_path | relative_url }}" class="previous-page">{{ paginator.previous_page }}</a></li> | ||
{%- else %} | ||
<li><div class="pager-edge">•</div></li> | ||
{%- endif %} | ||
<li><div class="current-page">{{ paginator.page }}</div></li> | ||
{%- if paginator.next_page %} | ||
<li><a href="{{ paginator.next_page_path | relative_url }}" class="next-page">{{ paginator.next_page }}</a></li> | ||
{%- else %} | ||
<li><div class="pager-edge">•</div></li> | ||
{%- endif %} | ||
</ul> | ||
</div> | ||
{% endif %} | ||
</main> | ||
</div> | ||
{%- endif %} | ||
|
||
{%- endif -%} | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
--- | ||
layout: default | ||
layout: base | ||
--- | ||
{% include header.html %} | ||
{{ content }} | ||
<article class="post"> | ||
|
||
<header class="post-header"> | ||
<h1 class="post-title">{{ page.title | escape }}</h1> | ||
</header> | ||
|
||
<div class="post-content"> | ||
{{ content }} | ||
</div> | ||
|
||
</article> |
Oops, something went wrong.