diff --git a/src/MyWebLog/themes/admin/page-edit.liquid b/src/MyWebLog/themes/admin/page-edit.liquid index a5b7181..1baf201 100644 --- a/src/MyWebLog/themes/admin/page-edit.liquid +++ b/src/MyWebLog/themes/admin/page-edit.liquid @@ -11,7 +11,7 @@ value="{{ model.title }}"> -
+
@@ -20,6 +20,18 @@ Manage Permalinks {% endif -%}
+
+     + + + + +
+
+ +
@@ -39,22 +51,6 @@
-
-
-     - - - - -
-
-
-
- -
-
diff --git a/src/MyWebLog/themes/admin/post-list.liquid b/src/MyWebLog/themes/admin/post-list.liquid index 08d55aa..41c5296 100644 --- a/src/MyWebLog/themes/admin/post-list.liquid +++ b/src/MyWebLog/themes/admin/post-list.liquid @@ -1,6 +1,6 @@

{{ page_title }}

- Write a New Post + Write a New Post @@ -27,7 +27,7 @@ Edit - {%- capture post_del %}admin/post/{{ pg.id }}/delete{% endcapture -%} + {%- capture post_del %}admin/post/{{ post.id }}/delete{% endcapture -%} {%- capture post_del_link %}{{ post_del | relative_link }}{% endcapture -%} diff --git a/src/MyWebLog/themes/bit-badger/project-page.liquid b/src/MyWebLog/themes/bit-badger/project-page.liquid new file mode 100644 index 0000000..ac22fed --- /dev/null +++ b/src/MyWebLog/themes/bit-badger/project-page.liquid @@ -0,0 +1,19 @@ +
+ {%- assign parts = page.title | split: ' ยป ' -%} + {%- assign parts_count = parts | size -%} + {% if parts_count == 1 -%} +

{{ page.title }}

+ {%- else -%} +

{{ parts[0] }}
{{ parts[1] }}

+ {%- endif %} + {{ 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 %} +


« {{ parts[0] }} Home

+ {%- endif %} + {% if logged_on -%} +

Edit This Page

+ {%- endif %} +
diff --git a/src/MyWebLog/wwwroot/themes/admin/admin.css b/src/MyWebLog/wwwroot/themes/admin/admin.css index 354bd87..e17d067 100644 --- a/src/MyWebLog/wwwroot/themes/admin/admin.css +++ b/src/MyWebLog/wwwroot/themes/admin/admin.css @@ -51,6 +51,9 @@ textarea { font-family: monospace; font-size: .8rem !important; } +#text { + min-height: 50vh; +} .no-wrap { white-space: nowrap; } diff --git a/src/MyWebLog/wwwroot/themes/bit-badger/style.css b/src/MyWebLog/wwwroot/themes/bit-badger/style.css index 1a83359..62f96c4 100644 --- a/src/MyWebLog/wwwroot/themes/bit-badger/style.css +++ b/src/MyWebLog/wwwroot/themes/bit-badger/style.css @@ -44,6 +44,28 @@ h2, h3 { p { margin: 1rem 0; } +code, pre { + font-family: "JetBrains Mono","SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace; + font-size: 80%; +} +code { + background-color: rgba(0, 0, 0, .1); + padding: 0 .25rem; + white-space: pre; +} +pre { + background-color: rgba(0, 0, 0, .9); + color: rgba(255, 255, 255, .9); + padding: .5rem; + border-radius: .5rem; + overflow: auto; +} +pre > code { + background-color: unset; +} +div[style="color:#DADADA;background-color:#1E1E1E;"] { + background-color: unset !important; +} #content { margin: 0 1rem; }