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", "hostname": "data02.bitbadger.solutions",
"database": "myWebLog_dev" "database": "myWebLog_dev"
}, },
"Generator": "myWebLog 2.0-alpha11", "Generator": "myWebLog 2.0-alpha12",
"Logging": { "Logging": {
"LogLevel": { "LogLevel": {
"MyWebLog.Handlers": "Debug" "MyWebLog.Handlers": "Debug"

View File

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

View File

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

View File

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