diff --git a/screenshot.png b/screenshot.png index 0fa664a..5f27ba8 100644 Binary files a/screenshot.png and b/screenshot.png differ diff --git a/static/css/style.css b/static/css/style.css index 7f81d0b..a1b27ad 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,94 +1,94 @@ :root, :root.light { - --bgColor: #EEEEEE; - --fgColor: #41474E; - --metaColor: #D26878; - --headColor: #; - --linkColor: #5690AF; - --hovColor: #22453F; - --bgSelect: #FFFAE1; - --bgUrl: url(https://i.ibb.co/Qpkrw4V/tile-Light.webp) repeat; - --red: #D26878; - --dimRed: #623039; - --orange: #e08f67; - --dimOrange: #926048; - --yellow: #FFFAE1; - --dimYellow: #D5C5A1; - --green: #56AFA0; - --dimGreen: #22453F; - --blue: #5690AF; - --dimBlue: #223844; - --purple: #9271D6; - --dimPurple: #47356C; - --grey: #CBCDCD; - --dimGrey: #646868 + --bgColor: #EEEEEE; + --fgColor: #41474E; + --metaColor: #D26878; + --headColor: #; + --linkColor: #5690AF; + --hovColor: #22453F; + --bgSelect: #FFFAE1; + --bgUrl: url(https://i.ibb.co/Qpkrw4V/tile-Light.webp) repeat; + --red: #D26878; + --dimRed: #623039; + --orange: #e08f67; + --dimOrange: #926048; + --yellow: #FFFAE1; + --dimYellow: #D5C5A1; + --green: #56AFA0; + --dimGreen: #22453F; + --blue: #5690AF; + --dimBlue: #223844; + --purple: #9271D6; + --dimPurple: #47356C; + --grey: #CBCDCD; + --dimGrey: #646868 } :root.dark { - --bgColor: #222529; - --fgColor: #D6D6D6; - --metaColor: #78B6AD; - --headColor: #; - --linkColor: #DBD5BC; - --hovColor: #E2AEA2; - --bgSelect: #464949; - --bgUrl: url(https://i.ibb.co/LzrFBFJ/tileDark.webp) repeat; - --red: #CD909B; - --dimRed: #684249; - --orange: #E2AEA2; - --dimOrange: #704941; - --yellow: #DBD5BC; - --dimYellow: #6F6847; - --green: #78B6AD; - --dimGreen: #3E615C; - --blue: #87C9E5; - --dimBlue: #38494F; - --purple: #CEA7DE; - --dimPurple: #5E406A; - --grey: #CBCDCD; - --dimGrey: #464949 + --bgColor: #222529; + --fgColor: #D6D6D6; + --metaColor: #78B6AD; + --headColor: #; + --linkColor: #DBD5BC; + --hovColor: #E2AEA2; + --bgSelect: #464949; + --bgUrl: url(https://i.ibb.co/LzrFBFJ/tileDark.webp) repeat; + --red: #CD909B; + --dimRed: #684249; + --orange: #E2AEA2; + --dimOrange: #704941; + --yellow: #DBD5BC; + --dimYellow: #6F6847; + --green: #78B6AD; + --dimGreen: #3E615C; + --blue: #87C9E5; + --dimBlue: #38494F; + --purple: #CEA7DE; + --dimPurple: #5E406A; + --grey: #CBCDCD; + --dimGrey: #464949 } ::-moz-selection { - color: var(--bgColor); - background: var(--metaColor) + color: var(--bgColor); + background: var(--metaColor) } ::selection { - color: var(--bgColor); - background: var(--metaColor) + color: var(--bgColor); + background: var(--metaColor) } html { - -webkit-box-sizing: border-box; - box-sizing: border-box; - font-size: 62.5% + -webkit-box-sizing: border-box; + box-sizing: border-box; + font-size: 62.5%; + scrollbar-color: var(--metaColor) var(--bgColor); + scrollbar-width: thin; } body { - font-family: monospace; - font-size: 1.6rem; - line-height: 1.35; - max-width: 64rem; - margin: auto; - padding: 1rem; - overflow-wrap: break-word; - background: var(--bgColor); - color: var(--fgColor); + font-family: monospace; + font-size: 1.6rem; + line-height: 1.35; + max-width: 64rem; + margin: auto; + overflow-wrap: break-word; + background: var(--bgColor); + color: var(--fgColor); } h1 { - font-size: 2.4rem; - margin: 1rem 1rem 1.5rem 0; - color: var(--bgColor); - background-color: var(--metaColor); - text-align: center; - text-wrap: balance; + font-size: 2.4rem; + color: var(--bgColor); + background-color: var(--metaColor); + text-align: center; + text-wrap: balance; } h1::before { - color: var(--bgColor); - content: '# ' + color: var(--bgColor); + content: '# ' } h2::before, @@ -96,230 +96,250 @@ h3::before, h4::before, h5::before, h6::before { - color: var(--metaColor); - content: '# ' + color: var(--metaColor); + content: '# ' } a { - color: var(--linkColor); + text-decoration: none; + padding: 0 .2rem 0 .2rem; + border-radius: .3rem; + color: var(--linkColor); } a:focus, a:hover { - background-color: var(--linkColor); - color: var(--bgColor) + background-color: var(--linkColor); + color: var(--bgColor) } ul { - list-style: none; - margin-top: .5rem; - margin-bottom: .5rem; - line-height: 1.45; + list-style: none; + margin-top: .5rem; + margin-bottom: .5rem; + line-height: 1.45; } ul li::marker { - content: '» '; - color: var(--metaColor) + content: '» '; + color: var(--metaColor) } ul li:hover::marker { - content: '# '; - font-weight: 700; - color: var(--linkColor) -} - -li:hover { - transform: scale(1.02); - -webkit-transition: .1s ease-in; - -moz-transition: .1s ease-in; - -o-transition: .1s ease-in; + content: '# '; + font-weight: 700; + color: var(--linkColor) } blockquote { - border-left: 5px solid var(--metaColor); - margin: 1rem; - padding: 0 0 0 1rem + border-left: 5px solid var(--metaColor); + margin: 1rem; + padding: 0 0 0 1rem } textarea { - border: 2px dotted; - outline: 0; - resize: none; - overflow: auto; - background-color: var(--bgColor) + border: 2px dotted; + outline: 0; + resize: none; + overflow: auto; + background-color: var(--bgColor) } hr { - border: 1px dashed + border: 1px dashed } img { - max-width: 90%; - height: auto; - margin: .2rem; - padding: .2rem; - border: dashed 2px var(--metaColor); - border-radius: 15px + max-width: 90%; + height: auto; + margin: .2rem; + padding: .2rem; + border: dashed 2px var(--metaColor); + border-radius: 15px } pre { - border: 1px solid var(--metaColor); - padding: 1rem; - overflow-x: auto; - font-style: monospace; + border: 1px solid var(--metaColor); + padding: 1rem; + overflow-x: auto; + font-style: monospace; } p code, li code, div code { - color: var(--bgColor); - background-color: var(--fgColor); + padding: 0 .2rem 0 .2rem; + border-radius: .3rem; + color: var(--bgColor); + background-color: var(--fgColor); } pre code { - color: inherit; - background-color: inherit; + padding: 0; + border-radius: 0; + color: inherit; + background-color: inherit; } iframe { - max-width: 90%; + max-width: 90%; } table { - table-layout: fixed; - width: 100%; - border-collapse: collapse; - border: none; - margin-left: auto; - margin-right: auto; - margin-bottom: 1rem; - line-height: 1.1 + table-layout: fixed; + width: 100%; + border-collapse: collapse; + border: none; + margin-left: auto; + margin-right: auto; + margin-bottom: 1rem; + line-height: 1.1 } thead th:first-child { - width: 20% + width: 20% } th { - font-weight: 400 + font-weight: 400 } td, th { - padding: .5rem; - border: dashed 1px var(--metaColor) + padding: .5rem; + border: dashed 1px var(--metaColor) } footer { - font-size: 1.4rem; - clear: both; - color: var(--footColor) + font-size: 1.4rem; + clear: both; + color: var(--footColor) } footer, td, th { - text-align: left + text-align: left } .metaData, .themeButton, hr, textarea { - color: var(--metaColor) + color: var(--metaColor) +} + +/* Site Specific Styling */ +.wrapper { + min-height: 100vh; + display: grid; + grid-template-rows: auto 1fr auto; + gap: 2rem; +} + +/* Icons settings */ +.icons { + width: 2.0rem; + height: 2.0rem; + aspect-ratio: 1/1; + top: .3rem; + position: relative; + color: var(--fgColor); + fill: var(--fgColor); + background-color: transparent; +} + +.icons__background:hover { + background-color: transparent; + color: var(--metaColor); } .navBar { - margin: .5rem; - margin-bottom: 2rem; - display: flex; - flex-direction: row; - gap: .4rem; - flex-wrap: wrap; - justify-content: flex-end; - align-items: center; - align-content: flex-end + padding: 1rem 0 0 0; + display: flex; + flex-direction: row; + gap: .4rem; + flex-wrap: wrap; + justify-content: flex-end; + align-items: center; + align-content: flex-end } .themeButton { - cursor: pointer; - border: none; - font-size: 1.8rem; - background-color: transparent + cursor: pointer; + border: none; + font-size: 1.8rem; + background-color: transparent } .dark .themeButton.dark, .themeButton.light { - display: none + display: none } .dark .themeButton.light { - display: block + display: block } .tagsData { - display: flex; - flex-direction: column; - flex-wrap: wrap; - justify-content: flex-end; - align-items: flex-start; - align-content: flex-end + display: flex; + flex-direction: column; + flex-wrap: wrap; + justify-content: flex-end; + align-items: flex-start; + align-content: flex-end } .titleList { - line-height: 1.8; + line-height: 1.8; } .footnote-definition { - margin: 0 0 0 2rem; -} -.footnote-definition-label { - color: var(--metaColor); -} -.footnote-definition p { - display: inline; - padding: 0 0 0 1rem; + margin: 0 0 0 2rem; } -.footContainer, -.footRight { - display: flex; - align-content: center +.footnote-definition-label { + color: var(--metaColor); +} + +.footnote-definition p { + display: inline; + padding: 0 0 0 1rem; } .footContainer { - flex-direction: row; - flex-wrap: wrap; - justify-content: space-between; - align-items: flex-start -} - -.footRight { - flex-direction: column; - flex-wrap: wrap; - justify-content: center; - align-items: center + display: flex; + flex-wrap: wrap; + justify-content: space-between; + align-items: center; } .noStyle { - padding: 0; - margin: 0; - border: none; - border-radius: 0 + padding: 0; + margin: 0; + border: none; + border-radius: 0 } .textCenter { - text-align: center; + text-align: center; } .floatRight { - float: right + float: right } .floatLeft { - float: left + float: left } .webring { - margin: 0.5rem; + margin: 0.5rem; +} + +/* Add Padding */ +@media (max-width: 650px) { + .wrapper { + margin: 1rem; + } } \ No newline at end of file diff --git a/static/icons.svg b/static/icons.svg new file mode 100644 index 0000000..bdf5772 --- /dev/null +++ b/static/icons.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index e381b57..f408544 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,148 +1,18 @@ - - - - - - {% if page.title %} - {% set title = page.title %} - {% elif section.title %} - {% set title = section.title %} - {% elif config.title %} - {% set title = config.title %} - {% endif %} - {% if page.extra.author %} - {% set author = page.extra.author %} - {% elif section.extra.author %} - {% set author = section.extra.author %} - {% elif config.extra.author %} - {% set author = config.extra.author %} - {% endif %} - {% if page.description %} - {% set description = page.description | truncate(length=150) %} - {% elif section.description %} - {% set description = section.description | truncate(length=150) %} - {% elif config.description %} - {% set description = config.description | truncate(length=150) %} - {% endif %} - {% if page.extra.image %} - {% set image = get_url(path=page.extra.image, trailing_slash=false) %} - {% elif section.extra.image %} - {% set image = get_url(path=section.extra.image, trailing_slash=false) %} - {% elif config.extra.favicon %} - {% set image = get_url(path=config.extra.favicon, trailing_slash=false) %} - {% endif %} - {% if page.permalink %} - {% set url = page.permalink %} - {% elif section.permalink %} - {% set url = section.permalink %} - {% elif config.base_url %} - {% set url = config.base_url %} - {% endif %} - {% if title %} - {{ title }} - {% endif %} - {% block metatags %} - {% if title %} - - {% endif %} - {% if author %} - - {% endif %} - {% if description %} - - {% endif %} - - - {% if title %} - - {% endif %} - {% if title %} - - {% endif %} - {% if description %} - - {% endif %} - {% if image %} - - {% endif %} - {% set twitter_card = config.extra.twitter_card | default(value=true) %} - {% if twitter_card != false %} - - - {% if title %} - - {% endif %} - {% if description %} - - {% endif %} - {% if image %} - - {% endif %} - {% endif %} - - {% if image %} - - {% endif %} - {% endblock metatags %} - {% if config.generate_feed %} - {% block feed %} - - {% endblock feed %} - {% endif %} - {% block css %} - - {% endblock css %} + {% include "head.html" %}
- {% if config.extra.header_nav %} - - {% endif %} - + {% include "header.html" %}
{% block content %}{% endblock content %}
diff --git a/templates/blog-page.html b/templates/blog-page.html index 0b5744b..4ab5611 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -1,12 +1,9 @@ {% extends "base.html" %} -{% block header %} +{% block content %}
../{{ page.slug }}

{{ page.title }}

-{% endblock header %} - -{% block content %} {% if page.toc and page.extra.toc %}

Table of contents

@@ -35,11 +32,8 @@ {% endif %} - {{ page.content | safe }} -{% endblock content %} -{% block footer %}

{% if page.taxonomies.tags %} {% for tag in page.taxonomies.tags %} @@ -47,4 +41,4 @@ {% endfor %} {% endif %}

-{% endblock footer %} \ No newline at end of file +{% endblock content %} \ No newline at end of file diff --git a/templates/footer.html b/templates/footer.html new file mode 100644 index 0000000..2db79ef --- /dev/null +++ b/templates/footer.html @@ -0,0 +1,11 @@ +
+
+
+

Licensed under MIT
+ Built with Zola using anemone theme & veqev colors.
+

+
+
+ +
+
\ No newline at end of file diff --git a/templates/head.html b/templates/head.html new file mode 100644 index 0000000..4055b7f --- /dev/null +++ b/templates/head.html @@ -0,0 +1,94 @@ + + + + + +{% if page.title %} +{% set title = page.title %} +{% elif section.title %} +{% set title = section.title %} +{% elif config.title %} +{% set title = config.title %} +{% endif %} +{% if page.extra.author %} +{% set author = page.extra.author %} +{% elif section.extra.author %} +{% set author = section.extra.author %} +{% elif config.extra.author %} +{% set author = config.extra.author %} +{% endif %} +{% if page.description %} +{% set description = page.description | truncate(length=150) %} +{% elif section.description %} +{% set description = section.description | truncate(length=150) %} +{% elif config.description %} +{% set description = config.description | truncate(length=150) %} +{% endif %} +{% if page.extra.image %} +{% set image = get_url(path=page.extra.image, trailing_slash=false) %} +{% elif section.extra.image %} +{% set image = get_url(path=section.extra.image, trailing_slash=false) %} +{% elif config.extra.favicon %} +{% set image = get_url(path=config.extra.favicon, trailing_slash=false) %} +{% endif %} +{% if page.permalink %} +{% set url = page.permalink %} +{% elif section.permalink %} +{% set url = section.permalink %} +{% elif config.base_url %} +{% set url = config.base_url %} +{% endif %} +{% if title %} +{{ title }} +{% endif %} +{% block metatags %} +{% if title %} + +{% endif %} +{% if author %} + +{% endif %} +{% if description %} + +{% endif %} + + +{% if title %} + +{% endif %} +{% if title %} + +{% endif %} +{% if description %} + +{% endif %} +{% if image %} + +{% endif %} +{% set twitter_card = config.extra.twitter_card | default(value=true) %} +{% if twitter_card != false %} + + +{% if title %} + +{% endif %} +{% if description %} + +{% endif %} +{% if image %} + +{% endif %} +{% endif %} + +{% if image %} + +{% endif %} +{% endblock metatags %} +{% if config.generate_feed %} +{% block feed %} + +{% endblock feed %} +{% endif %} +{% block css %} + +{% endblock css %} \ No newline at end of file diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..a92f728 --- /dev/null +++ b/templates/header.html @@ -0,0 +1,25 @@ +{% if config.extra.header_nav %} + +{% endif %} + \ No newline at end of file diff --git a/templates/page.html b/templates/page.html index 47da2a2..a823465 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,10 +1,7 @@ {% extends "base.html" %} -{% block header %} -

{{ page.title }}

-{% endblock header %} - {% block content %} +

{{ page.title }}

{% if page.toc and page.extra.toc %}

Table of contents

@@ -34,9 +31,7 @@ {% endif %} {{ page.content | safe }} -{% endblock content %} -{% block footer %}

{% if page.taxonomies.tags %} {% for tag in page.taxonomies.tags %} @@ -44,4 +39,4 @@ {% endfor %} {% endif %}

-{% endblock footer %} \ No newline at end of file +{% endblock content %} \ No newline at end of file diff --git a/templates/section.html b/templates/section.html index f2e52eb..e7ceb77 100644 --- a/templates/section.html +++ b/templates/section.html @@ -1,10 +1,8 @@ {% extends "base.html" %} -{% block header %} -

{{ section.title }}

-{% endblock header %} - {% block content %} +

{{ section.title }}

+ {{ section.content | safe }} {% if paginator %} diff --git a/templates/shortcodes/webring.html b/templates/shortcodes/webring.html index f5e94d3..a9a65f2 100644 --- a/templates/shortcodes/webring.html +++ b/templates/shortcodes/webring.html @@ -1,4 +1,4 @@ - + {{webringName}} - \ No newline at end of file + \ No newline at end of file diff --git a/templates/tags/list.html b/templates/tags/list.html index 5d0dc78..662769e 100644 --- a/templates/tags/list.html +++ b/templates/tags/list.html @@ -1,10 +1,7 @@ {% extends "base.html" %} -{% block header %} -

{{ taxonomy.name }}

-{% endblock header %} - {% block content %} +

{{ taxonomy.name }}

{% for term in terms %} #{{ term.name }}[{{ term.pages | length }}] diff --git a/templates/tags/single.html b/templates/tags/single.html index 5e0e437..e143303 100644 --- a/templates/tags/single.html +++ b/templates/tags/single.html @@ -1,10 +1,7 @@ {% extends "base.html" %} -{% block header %} -

{{ term.name }}

-{% endblock header %} - {% block content %} +

{{ term.name }}

{% if paginator %} {% set pages = paginator.pages %} {% else %}