Initial template work

This commit is contained in:
Atlas Cove 2021-02-15 17:26:06 +00:00
parent 9b3ea461b8
commit cb8a8d7374
9 changed files with 111 additions and 6 deletions

12
.gitignore vendored
View File

@ -1,6 +1,6 @@
# ---> Jekyll
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
*.gem
.bundle
.jekyll-cache
.sass-cache
_site
Gemfile.lock

4
Gemfile Normal file
View File

@ -0,0 +1,4 @@
# frozen_string_literal: true
source "https://rubygems.org"
gemspec

25
_includes/links.lqd.html Normal file
View File

@ -0,0 +1,25 @@
{% if top %}
<hr />
{% endif %}
<p>
{% if top %}
{% for i in basic_theme.header_links %}
<a href="{{ i.href | relative_url }}">{{ i.name }}</a>
{% endfor %}
{% endif %}
</p>
<p>
[<a href="{{ "/" | relative_url }}">Root</a>]
{% if page.previous %}
[<a href="{{ page.previous }}">Previous</a>]
{% endif %}
{% unless page.catagories %}
[<a href="{{ page.catagories | pop | join "/" }}">Up</a>]
{% endunless %}
{% if page.next %}
p<a href="{{ page.next }}">Next</a>]
{% endif %}
</p>
{% if top %}
<hr />
{% endif %}

24
_layouts/default.lqd.html Normal file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
{% if page.title %}
<title>{{ page.title }} | {{ site.title }}</title>
{% else %}
<title>{{ site.title }}</title>
{% endif %}
<link rel="stylesheet" type="text/css" href="{{ "main.css" | relative_url }}" />
</head>
<body>
{% if basic_theme.display_title and site.title %}
<h1>{{ site.title }}</h1>
{% endif %}
{% include links.lqd top: true %}
{{ content }}
<hr />
{% if basic.display_info %}
This is {{ site.url | get_domain }} running Jekyll.
{% endif %}
{% include links.lqd.html top: false %}
<hr />
</body>
</html>

19
_layouts/page.lqd.html Normal file
View File

@ -0,0 +1,19 @@
---
layout: default
---
<h2>{{ page.title }}</h2>
<div id="metadata">
<span id="url>{{ page.url }}
{% if page.date %}
<span id="date">{{ page.date }}</span> by <span id="author">{{ page.author }}</span>
{% else %}
By <span id="author">{{ page.author }}</span>
{% endif %}
{% if page.tags %}
Tags: <span id="taglist">{{ page.tags | array_to_sentence_string: "" }}</span>
{% endif %}
</div>
<div id="content">
{{ content }}
</div>

18
_layouts/post.lqd.html Normal file
View File

@ -0,0 +1,18 @@
---
layout: default
---
<h2>{{ page.title }}</h2>
<div id="metadata">
{% if page.date %}
<span id="date">{{ page.date }}</span> by <span id="author">{{ page.author }}</span>
{% else %}
By <span id="author">{{ page.author }}</span>
{% endif %}
{% if page.tags %}
Tags: <span id="taglist">{{ page.tags | array_to_sentence_string: "" }}</span>
{% endif %}
</div>
<div id="content">
{{ content }}
</div>

View File

@ -0,0 +1,15 @@
# frozen_string_literal: true
Gem::Specification.new do |spec|
spec.name = "jekyll-theme-basic"
spec.version = "0.1.0"
spec.authors = ["Atlas48"]
spec.email = ["Atlas48@gmx.com"]
spec.summary = "An incredibly rudimentary jekyll theme. Paper-thin, nothing but what's needed."
spec.homepage = "https://git.sdf.org/Atlas48/jekyll-theme-basic"
spec.license = "LGPL-3.0-or-later"
spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_layouts|_includes|_sass|LICENSE|README|_config\.yml)!i) }
spec.add_runtime_dependency "jekyll", "~> 4.2"
end