From 71c26a5f29273bd3723c035d828e18091979c0be Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Tue, 6 Jul 2021 23:31:20 -0400 Subject: [PATCH] blog listing initially working --- TODO.md | 2 +- assets/css/app.scss | 71 +++++++++++++++++++++++++++ content-templates/content-article.php | 39 +++++++-------- footer.php | 8 +-- front-page.php | 4 +- header.php | 2 +- home.php | 34 +++++++++++++ 7 files changed, 131 insertions(+), 29 deletions(-) create mode 100644 home.php diff --git a/TODO.md b/TODO.md index 3754db3..0a3b557 100644 --- a/TODO.md +++ b/TODO.md @@ -13,7 +13,7 @@ - [ ] pore through template files to update theming - [X] ~~*initial front-page.php*~~ [2021-07-06] - [X] ~~*create social-icons working for front page*~~ [2021-07-06] - - [ ] create About page and suitable index.php modifications for it + - [X] ~~*create About page and suitable page.php for it & other generic pages*~~ [2021-07-06] - [ ] create some blog entries - [ ] create Blog page and is index.php also ok for it? - [ ] create Resume page and decide on using general or specific template diff --git a/assets/css/app.scss b/assets/css/app.scss index 0dd522f..8aa4d4d 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -13,6 +13,13 @@ /* Navbar custom styling */ @import "nav-bar-help"; + +.font-monospace { + font-family: $font-family-monospace; + font-weight: 300; + font-size: 15px; +} + /* main */ html, body { @@ -91,6 +98,9 @@ a { padding-top: 2px; padding-bottom: 2px; } +.mt--05r { + margin-top: -0.5rem; +} /* social icons */ #social-icons .link-light { @@ -101,3 +111,64 @@ a { } } +blockquote { + p { + margin-bottom: 0 !important; + } + &.wp-block-quote { + @extend .blockquote; + cite { + @extend .blockquote-footer; + @extend .text-gray-300; + font-size: 0.75em; + margin-top: -1rem; + margin-bottom: 0 !important; + font-style: normal; + } + } +} + +/* resume separators */ +.separator { + display: flex; + align-items: center; + text-align: center; + color: $gray-400; + font-family: $font-family-monospace; + font-size: smaller; + text-transform: uppercase; + font-weight: 700; + &::before, + &::after { + content: ""; + flex: 1; + border-bottom: 1px solid $secondary; + } + &:not(:empty)::before { + margin-right: 0.5em; + } + &:not(:empty)::after { + margin-left: 0.33em; + } +} + +/* blog */ +.post-title a { + color: $gray-100; + text-decoration: none; + border-bottom: none; + &:hover { + color: $primary; + border-bottom: $secondary 3px solid; + } +} +.post-lede, +.post-body { + h2, h3, h4, h5, h6 { + color: $gray-200; + margin-top: 2rem; + } +} +.post li { + line-height: 1.75rem; +} \ No newline at end of file diff --git a/content-templates/content-article.php b/content-templates/content-article.php index 63c958f..523a3c8 100644 --- a/content-templates/content-article.php +++ b/content-templates/content-article.php @@ -22,28 +22,29 @@ namespace WP_73k; echo get_the_title(); } ?> - - + +
+ + by +
-
itemscope itemtype="https://schema.org/CreativeWork"> -
-

- 0) { + echo ''; + } + ?> - if ( is_archive() || is_home() ) { - printf( '%s', - esc_url( get_the_permalink() ), - esc_html( get_the_title() ) - ); - } else { - echo get_the_title(); - } ?> -

-

Published on

-
+
'rounded shadow-lg'] ); @@ -51,8 +52,4 @@ namespace WP_73k; the_content(); ?>
- -
- Categorized under: -
diff --git a/footer.php b/footer.php index 81e263b..62adcba 100644 --- a/footer.php +++ b/footer.php @@ -26,10 +26,10 @@ namespace WP_73k; --> +
+ © Copyright Adam Piontek +
+ diff --git a/front-page.php b/front-page.php index 4631e3c..05d590c 100644 --- a/front-page.php +++ b/front-page.php @@ -8,8 +8,8 @@ namespace WP_73k; -get_header(); ?> -
+get_header('', array('fixednav'=>true)); ?> +
diff --git a/header.php b/header.php index 5ae1bd9..a1f1270 100644 --- a/header.php +++ b/header.php @@ -24,7 +24,7 @@ namespace WP_73k; itemscope itemtype="https://schema.org/WebPage"> -