Add page/post templates for personal theme
- Add images from personal site
This commit is contained in:
59
src/MyWebLog/themes/daniel-j-summers/index.liquid
Normal file
59
src/MyWebLog/themes/daniel-j-summers/index.liquid
Normal file
@@ -0,0 +1,59 @@
|
||||
<div class="content">
|
||||
{% for post in model.posts %}
|
||||
<article class="item">
|
||||
<h1 class="item-heading">
|
||||
<a href="/{{ post.permalink }}" title="Permanent Link to "{{ post.title | escape }}"">
|
||||
{{ post.title }}
|
||||
</a>
|
||||
</h1>
|
||||
<h4 class="text-center">
|
||||
<i class="fa fa-calendar" title="Date"></i> {{ post.published_on | date: "MMMM d, yyyy" }}
|
||||
<i class="fa fa-clock-o" title="Time"></i> {{ post.published_on | date: "h:mmtt" | downcase }}
|
||||
</h4>
|
||||
{{ post.text }}
|
||||
</article>
|
||||
{% endfor %}
|
||||
<nav aria-label="pagination">
|
||||
<ul class="pager">
|
||||
{% if model.newer_link -%}
|
||||
<li class="previous item"><a href="/{{ model.newer_link }}">« Newer Posts</a></li>
|
||||
{%- else -%}
|
||||
<li></li>
|
||||
{% endif %}
|
||||
{% if model.older_link -%}
|
||||
<li class="next item"><a href="/{{ model.older_link }}">Older Posts »</a></li>
|
||||
{%- endif -%}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<div class="sidebar">
|
||||
<br>
|
||||
<div class="item votd-item">
|
||||
<h4 class="item-heading votd-heading">Verse of the Day</h4>
|
||||
<div>
|
||||
<span class="verse"> –</span>
|
||||
<a class="votd-reference" target="_blank" rel="noopener"></a>
|
||||
<small> <a class="version-link" target="'_blank" rel="noopener">(ESV)</a></small><br>
|
||||
<div class="votd-credits">
|
||||
<small>Powered by <a href="https://biblegateway.com" target="_blank" rel="noopener">Bible Gateway</a></small>
|
||||
</div>
|
||||
<script src="https://www.biblegateway.com/votd/get/?format=json&version=ESV&callback=djs.displayVotd">
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<h4 class="item-heading">#VoteGold</h4>
|
||||
<div class="text-center">
|
||||
<p><em>
|
||||
(Don't blame me;<br>
|
||||
I voted for <a href="https://jo20.com/" title="Jorgensen / Cohen 2020" target="_blank" rel="noopener">Jo</a>)
|
||||
</em></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<h4 class="item-heading">Categories</h4>
|
||||
<div>
|
||||
TODO: list_categories({ class: 'cat' })
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="generator" content="{{ generator }}">
|
||||
<title>{{ page_title }} » {{ web_log.name }}</title>
|
||||
<title>{{ page_title }}{% if page_title and page_title != "" %} » {% endif %}{{ web_log.name }}</title>
|
||||
<link rel="preload" href="https://fonts.googleapis.com/css?family=Quicksand|Oswald" as="style">
|
||||
<link rel="preload" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" as="style">
|
||||
<link rel="preload" href="/themes/{{ web_log.theme_path }}/style.css" as="style">
|
||||
@@ -22,7 +22,7 @@
|
||||
{%- if web_log.subtitle %}<p>{{ web_log.subtitle.value }}</p>{% endif -%}
|
||||
<p class="nav-spacer"></p>
|
||||
{% for page in page_list %}
|
||||
<p class="desktop"><a href="{{ page.permalink }}">{{ page.title }}</a></p>
|
||||
<p class="desktop"><a href="/{{ page.permalink }}">{{ page.title }}</a></p>
|
||||
{% endfor %}
|
||||
<p class="desktop">
|
||||
<a href="https://devotions.summershome.org" target="_blank" rel="noopener">A Word from the Word</a>
|
||||
@@ -72,7 +72,7 @@
|
||||
<table style="width:100%;"><tbody><tr>
|
||||
<td style="width:75px;">
|
||||
<a href="https://utsports.com" style="background:none;padding:0;" target="_blank" rel="noopener">
|
||||
<img src="/themes/{{ web_log.theme_path }}/img/tennessee.png" alt="T" title="Tennessee Sports"
|
||||
<img src="/themes/{{ web_log.theme_path }}/tennessee.png" alt="T" title="Tennessee Sports"
|
||||
style="border:0;" width="75px">
|
||||
</a>
|
||||
</td>
|
||||
@@ -93,7 +93,7 @@
|
||||
<table style="width:100%;"><tbody><tr>
|
||||
<td style="width:75px;">
|
||||
<a href="https://csurams.com" style="background:none;padding:0;" target="_blank" rel="noopener">
|
||||
<img src="/themes/{{ web_log.theme_path }}/img/csurams.png" alt="CSU Rams Logo"
|
||||
<img src="/themes/{{ web_log.theme_path }}/csurams.png" alt="CSU Rams Logo"
|
||||
title="Colorado State Sports" style="border:0;" height="75px" width="75px">
|
||||
</a>
|
||||
</td>
|
||||
|
||||
6
src/MyWebLog/themes/daniel-j-summers/single-page.liquid
Normal file
6
src/MyWebLog/themes/daniel-j-summers/single-page.liquid
Normal file
@@ -0,0 +1,6 @@
|
||||
<div class="content single">
|
||||
<article class="item">
|
||||
<h1 class="item-heading">{{ page.title }}</h1>
|
||||
{{ page.text }}
|
||||
</article>
|
||||
</div>
|
||||
63
src/MyWebLog/themes/daniel-j-summers/single-post.liquid
Normal file
63
src/MyWebLog/themes/daniel-j-summers/single-post.liquid
Normal file
@@ -0,0 +1,63 @@
|
||||
{%- assign post = model.posts | first -%}
|
||||
<div class="content single">
|
||||
<article class="item">
|
||||
<h1 class="item-heading">{{ post.title }}</h1>
|
||||
<h4 class="text-center">
|
||||
{% if post.published_on -%}
|
||||
<i class="fa fa-calendar" title="Date"></i> {{ post.published_on | date: "MMMM d, yyyy" }}
|
||||
<i class="fa fa-clock-o" title="Time"></i> {{ post.published_on | date: "h:mmtt" | downcase }}
|
||||
{%- else -%}
|
||||
**DRAFT**
|
||||
{% endif %}
|
||||
</h4>
|
||||
<div>{{ post.text }}</div>
|
||||
{%- assign cat_count = post.category_ids | size -%}
|
||||
{% if cat_count > 0 -%}
|
||||
<h4>
|
||||
Categorized
|
||||
{% for cat in post.category_ids -%}
|
||||
{% assign cat_name = model.categories | value: cat %}
|
||||
<span class="no-wrap">
|
||||
<i class="fa fa-folder-open-o" title="Category"></i>
|
||||
<a href="/category/{{ cat }}" title="Categorized under “{{ cat_name | escape }}”">
|
||||
{{ cat_name }}
|
||||
</a>
|
||||
</span>
|
||||
{%- endfor %}
|
||||
</h4>
|
||||
{%- endif %}
|
||||
{%- assign tag_count = post.tags | size -%}
|
||||
{% if tag_count > 0 -%}
|
||||
<h4>
|
||||
Tagged
|
||||
{% for tag in post.tags %}
|
||||
<span class="no-wrap">
|
||||
<a href="/tag/{{ tag | replace: " ", "-" }}" title="Posts tagged “{{ tag | escape }}”">
|
||||
<i class="fa fa-tag"></i> {{ tag }}
|
||||
</a>
|
||||
</span>
|
||||
{%- endfor %}
|
||||
</h4>
|
||||
{%- endif %}
|
||||
</article>
|
||||
<div>
|
||||
<nav aria-label="pagination">
|
||||
<ul class="pager">
|
||||
{% if model.newer_link -%}
|
||||
<li class="previous item">
|
||||
<h4 class="item-heading"><a href="/{{ model.newer_link[0] }}">“</a> Previous Post</h4>
|
||||
<a href="/{{ model.newer_link[0] }}">“{{ model.newer_link[1] }}”</a>
|
||||
</li>
|
||||
{%- else -%}
|
||||
<li></li>
|
||||
{% endif %}
|
||||
{% if model.older_link -%}
|
||||
<li class="next item">
|
||||
<h4 class="item-heading">Next Post <a href="/{{ model.older_link[0] }}">”</a></h4>
|
||||
<a href="/{{ model.older_link[0] }}">“{{ model.older_link[1] }}”</a>
|
||||
</li>
|
||||
{%- endif -%}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user