Initial template work

master v0.1.0
Atlas Cove 2 years ago
parent 9b3ea461b8
commit cb8a8d7374
  1. 12
      .gitignore
  2. 4
      Gemfile
  3. 25
      _includes/links.lqd.html
  4. 24
      _layouts/default.lqd.html
  5. 19
      _layouts/page.lqd.html
  6. 18
      _layouts/post.lqd.html
  7. 15
      jekyll-theme-basic.gemspec
  8. 0
      license.txt
  9. 0
      readme.md

12
.gitignore vendored

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

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

@ -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 %}

@ -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>

@ -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>

@ -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>

@ -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
Loading…
Cancel
Save