Tweak bit-badger project template

This commit is contained in:
Daniel J. Summers 2022-05-24 18:30:01 -04:00
parent 7219b65f4f
commit ff560d1d2f
4 changed files with 38 additions and 13 deletions

View File

@ -3,7 +3,7 @@
"hostname": "data02.bitbadger.solutions",
"database": "myWebLog_dev"
},
"Generator": "myWebLog 2.0-alpha11",
"Generator": "myWebLog 2.0-alpha12",
"Logging": {
"LogLevel": {
"MyWebLog.Handlers": "Debug"

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="generator" content="{{ generator }}">
<title>{{ page_title }} &raquo; Bit Badger Solutions</title>

View File

@ -1,19 +1,33 @@
<article class="content auto">
{%- assign parts = page.title | split: ' » ' -%}
{%- assign parts_count = parts | size -%}
{% if parts_count == 1 -%}
<h1>{{ page.title }}</h1>
{%- else -%}
<h1><small><small>{{ parts[0] }}</small></small><br>{{ parts[1] }}</h1>
{%- endif %}
<h1 class="project-title">
{% if parts_count == 1 -%}
{{ page.title }}<br>
<small><small>
<a href="https://github.com/bit-badger/{{ page.title }}" target="_blank" rel="noopener"
title="{{ parts[0] }} on GitHub">
View on GitHub
</a>
{% if logged_on %} &bull; <a href="{{ page | edit_page_link }}">Edit Page</a>{% endif %}
</small></small>
{%- else -%}
<small><small>
<a href="." title="{{ parts[0] }} Home">{{ parts[0] }}</a>
{% if logged_on %} &bull; <a href="{{ page | edit_page_link }}">Edit</a>{% endif %}
</small></small>
<br>
{{ parts[1] }}
{%- endif %}
</h1>
{{ page.text }}
{% if parts_count > 1 -%}
{%- assign project = parts[0] | downcase | replace: '\.', '-' -%}
{%- capture project_url %}open-source/{{ project }}/{% endcapture -%}
{% comment %}{{ project_url | relative_link }}{% endcomment %}
<p><br><a href="." title="{{ parts[0] }} Home">&laquo; {{ parts[0] }} Home</a></p>
{%- endif %}
{% if logged_on -%}
<p><small><a href="{{ page | edit_page_link }}">Edit This Page</a></small></p>
<p class="project-footer">
<a href="." title="{{ parts[0] }} Home">&laquo; {{ parts[0] }} Home</a>
<a href="https://github.com/bit-badger/{{ parts[0] }}" target="_blank" rel="noopener"
title="{{ parts[0] }} on GitHub">
View GitHub Repo
</a>
</p>
{%- endif %}
</article>

View File

@ -27,6 +27,10 @@ h1 {
margin: 1.4rem 0;
font-size: 2rem;
}
h1.project-title {
margin-top: 0;
line-height: 1.2;
}
h2 {
margin: 1.2rem 0;
}
@ -266,6 +270,12 @@ blockquote {
padding-left: 1rem;
}
/* Footer */
.project-footer {
padding-top: 1rem;
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
footer {
display: flex;
flex-flow: row wrap;