diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000000..ef4eeae7cf3d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,18 @@ +{ + "name": "Aging Health Research Portal", + "image": "mcr.microsoft.com/devcontainers/ruby:3.2", + "features": { + "ghcr.io/devcontainers/features/node:1": { + "version": "20" + } + }, + "postCreateCommand": "bundle install && bundle lock --add-platform x86_64-linux", + "customizations": { + "vscode": { + "extensions": [ + "rebornix.Ruby", + "jekyll-theme-minimal-mistakes" + ] + } + } +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 733ad0d6668c..999e2f7473f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,47 +1,39 @@ -name: build +name: Build and Deploy on: push: branches: - - master - workflow_dispatch: {} - repository_dispatch: {} + - master # Or main + +permissions: + contents: write + pages: write + id-token: write jobs: - build: - if: github.repository == 'mmistakes/minimal-mistakes' + build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true - - uses: ruby/setup-ruby@v1 - with: - ruby-version: '3.2' - - name: Setup cache for Bundler - id: cache - uses: actions/cache@v4 - with: - path: | - docs/Gemfile.lock - docs/vendor/bundle - key: ${{ runner.os }}-bundler-${{ hashFiles('docs/Gemfile') }} - restore-keys: | - ${{ runner.os }}-bundler- + - name: Build Site + # No more "docs" references needed here! + run: bundle exec jekyll build + env: + JEKYLL_ENV: production - - name: Install - Bundler - env: - MAKE: make -j2 - working-directory: docs/ - run: | - bundle config set path vendor/bundle - bundle install --jobs=4 --retry=3 - bundle clean + - name: Upload Artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./_site - - name: Update Algolia index - working-directory: docs/ - run: bundle exec jekyll algolia push - env: - ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} - continue-on-error: true + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/2023/09/liver-cirrhosis-what-you-need-to-know.html b/2023/09/liver-cirrhosis-what-you-need-to-know.html new file mode 100644 index 000000000000..f363d61f925d --- /dev/null +++ b/2023/09/liver-cirrhosis-what-you-need-to-know.html @@ -0,0 +1,8 @@ +--- +layout: single +title: "Liver Cirrhosis & Portal Pressure Insights" +permalink: /2023/09/liver-cirrhosis-what-you-need-to-know.html +redirect_to: /posts/liver-cirrhosis-what-you-need-to-know/ +--- + +

Redirecting to systemic inflammation audit...

\ No newline at end of file diff --git a/2024/01/diabetes.html b/2024/01/diabetes.html new file mode 100644 index 000000000000..ce9a3cc56ab9 --- /dev/null +++ b/2024/01/diabetes.html @@ -0,0 +1,8 @@ +--- +layout: single +title: "Type 2 Diabetes Management Portal" +permalink: /2024/01/diabetes.html +redirect_to: /posts/diabetes-guide/ +--- + +

Redirecting to core health panel...

\ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 67c621b8da1e..ae357a8db462 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -156,7 +156,7 @@ Special thanks to @bexelbie for their contributions in this release. - Remove unused classes from `_layouts/single.html`. - Migrate npm run scripts to Ruby Rake tasks. - Add Rake task `version` for updating all hard-coded version numbers from `package.json` all at once. -- Merge `categories` and `tags` layout into `_includes/posts-taxonomy.html`. +- Merge `categories` and `tags` layout into `_includes/posts/-taxonomy.html`. - Update Social Sharing links section. [#4066](https://github.com/mmistakes/minimal-mistakes/pull/4066) ## [4.25.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.25.1) @@ -215,7 +215,7 @@ Special thanks to @bexelbie for their contributions in this release. - Exclude `main.scss` from Lunr search index. - Allow `site.pages` to be indexed and searched via Lunr. [#3352](https://github.com/mmistakes/minimal-mistakes/pull/3352) - Update jQuery to v3.6.0. [#3254](https://github.com/mmistakes/minimal-mistakes/pull/3254) -- Use notice `` colors for blockquotes that have `notice--` classes applied. [#3140](https://github.com/mmistakes/minimal-mistakes/pull/3140) [#3068](https://github.com/mmistakes/minimal-mistakes/issues/3068) +- Use notice `` colors for blockquotes that have `notice--` classes applied. [#3140](https://github.com/mmistakes/minimal-mistakes/pull/3140) [#3068](https://github.com/mmistakes/minimal-mistakes/issues/3068) - Add sameAs itemprop to author link. [#3087](https://github.com/mmistakes/minimal-mistakes/pull/3087) - Update and add missing Brazilian Portuguese translations. [#3204](https://github.com/mmistakes/minimal-mistakes/pull/3204) - Add optional label attribute for utterances comments. [#3128](https://github.com/mmistakes/minimal-mistakes/pull/3128) @@ -871,7 +871,7 @@ Special thanks to @bexelbie for their contributions in this release. - Remove Alexa.com verification due to retiring of "[Claim Your Site](https://support.alexa.com/hc/en-us/articles/219135887)" feature. [#1350](https://github.com/mmistakes/minimal-mistakes/issues/1350) - Disable analytics in `development` environment. [#1362](https://github.com/mmistakes/minimal-mistakes/pull/1362) - Disable comments in `development` environment. [#1363](https://github.com/mmistakes/minimal-mistakes/pull/1363) -- Exclude specific pages/posts from search index by adding `search: false` to the YAML Front Matter. [#1369](https://github.com/mmistakes/minimal-mistakes/pull/1369) +- Exclude specific pages/posts/ from search index by adding `search: false` to the YAML Front Matter. [#1369](https://github.com/mmistakes/minimal-mistakes/pull/1369) - Add optional `description` key to masthead links for clarifying their purpose with the `title` attribute. [#1380](https://github.com/mmistakes/minimal-mistakes/pull/1380) - Incorporate site search into masthead. [#1383](https://github.com/mmistakes/minimal-mistakes/pull/1383) - Update gem dependencies. [#1388](https://github.com/mmistakes/minimal-mistakes/pull/1388) @@ -933,7 +933,7 @@ Special thanks to @bexelbie for their contributions in this release. - Rename `gems` key to `plugins`. [#1239](https://github.com/mmistakes/minimal-mistakes/pull/1239) - Add [YIQ Color Contrast](https://github.com/easy-designs/yiq-color-contrast) mixin for determining lightness of a color. - DRY up button CSS using Sass lists and YIQ Color Contrast mixin. -- Add `btn--primary` button class. **Note:** elements that were previously using only a `.btn` class will now also need `.btn--primary` (eg. `my link`). +- Add `btn--primary` button class. **Note:** elements that were previously using only a `.btn` class will now also need `.btn--primary` (eg. `my link`). - Add `air`, `contrast`, `dark`, `dirt`, `mint`, and `sunrise` skin color options. [#1208](https://github.com/mmistakes/minimal-mistakes/issues/1208) - Allow scripts in `` and before `` to be added/overridden with `head_scripts` and `footer_scripts` arrays in `_config.yml`. [#1241](https://github.com/mmistakes/minimal-mistakes/pull/1241) - Update JavaScript dependencies: jQuery `v3.2.1`, jQuery Smooth Scroll `v2.2.0`, and Magnific Popup `v1.1.0`. [#328690652](https://github.com/mmistakes/minimal-mistakes/pull/1241#issuecomment-328690652) @@ -1024,7 +1024,7 @@ Special thanks to @bexelbie for their contributions in this release. ### Bug Fixes - Toggle close button on `mouseleave`. [#975](https://github.com/mmistakes/minimal-mistakes/issues/975) -- Remove extraneous `` and `` tags from `paginator.html` include. [#1038](https://github.com/mmistakes/minimal-mistakes/pull/1038) +- Remove extraneous `` and `` tags from `paginator.html` include. [#1038](https://github.com/mmistakes/minimal-mistakes/pull/1038) - Fix Google+ comments provider includes. [#1092](https://github.com/mmistakes/minimal-mistakes/issues/1092) - Replace category variable used in `_includes/breadcrumbs.html` to `site.category_archive` to avoid conflicts with `site.categories`. [#1063](https://github.com/mmistakes/minimal-mistakes/pull/1063) [#329](https://github.com/mmistakes/minimal-mistakes/issues/329) @@ -1348,7 +1348,7 @@ Special thanks to @bexelbie for their contributions in this release. ### Bug Fixes -- Don't add `` to author name if URL is blank. +- Don't add `` to author name if URL is blank. ## [3.4.0](https://github.com/mmistakes/minimal-mistakes/releases/tag/3.4.0) diff --git a/Gemfile b/Gemfile index 3be9c3cd812e..9c18d2bacdc7 100644 --- a/Gemfile +++ b/Gemfile @@ -1,2 +1,20 @@ source "https://rubygems.org" -gemspec +gem "minima" +gem "jekyll", "~> 3.9" +gem "jekyll-remote-theme" +gem "jekyll-include-cache" +gem "jekyll-sitemap" +gem "jekyll-gist" +gem "jekyll-feed" +gem "jemoji" +gem "kramdown-parser-gfm" +gem 'html-proofer' +gem 'jekyll-redirect-from' + +# Add this line to satisfy the Minimal Mistakes grid layout +gem "jekyll-paginate-v2", "~> 3.0" + +# Keep our fix for the Linux system profiling architecture +gem "google-protobuf", "3.25.8", platforms: :mri + +gem "webrick" if RUBY_VERSION >= "3.0" diff --git a/_config.yml b/_config.yml index 07453f927eb1..7ef27efe6090 100644 --- a/_config.yml +++ b/_config.yml @@ -1,218 +1,63 @@ -# Welcome to Jekyll! -# -# This config file is meant for settings that affect your entire site, values -# which you are expected to set up once and rarely need to edit after that. -# For technical reasons, this file is *NOT* reloaded automatically when you use -# `jekyll serve`. If you change this file, please restart the server process. - # Theme Settings -# -# Review documentation to determine if you should use `theme` or `remote_theme` -# https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/#installing-the-theme - -# theme : "minimal-mistakes-jekyll" -# remote_theme : "mmistakes/minimal-mistakes" -minimal_mistakes_skin : "default" # "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise", "catppuccin_latte", "catppuccin_mocha" - +remote_theme: "jekyll/minima@1e8a445" # Site Settings -locale : "en-US" -direction : # "ltr" (default), "rtl" # set the direction of the page -title : "Site Title" -title_separator : "-" -subtitle : # site tagline that appears below site title in masthead -name : "Your Name" -description : "An amazing website." -url : # the base hostname & protocol for your site e.g. "https://mmistakes.github.io" -baseurl : # the subpath of your site, e.g. "/blog" -repository : # GitHub username/repo-name e.g. "mmistakes/minimal-mistakes" -teaser : # path of fallback teaser image, e.g. "/assets/images/500x300.png" -logo : # path of logo image to display in the masthead, e.g. "/assets/images/88x88.png" -masthead_title : # overrides the website title displayed in the masthead, use " " for no title -breadcrumbs : # true, false (default) -words_per_minute : 200 -enable_copy_code_button : # true, false (default) -copyright : # "copyright" name, defaults to site.title -copyright_url : # "copyright" URL, defaults to site.url -comments: - provider : # false (default), "disqus", "discourse", "facebook", "staticman", "staticman_v2", "utterances", "giscus", "custom" - disqus: - shortname : # https://help.disqus.com/customer/portal/articles/466208-what-s-a-shortname- - discourse: - server : # https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963 , e.g.: meta.discourse.org - facebook: - # https://developers.facebook.com/docs/plugins/comments - appid : - num_posts : # 5 (default) - colorscheme : # "light" (default), "dark" - utterances: - theme : # "github-light" (default), "github-dark" - issue_term : # "pathname" (default) - giscus: - repo_id : # Shown during giscus setup at https://giscus.app - category_name : # Full text name of the category - category_id : # Shown during giscus setup at https://giscus.app - discussion_term : # "pathname" (default), "url", "title", "og:title" - reactions_enabled : # '1' for enabled (default), '0' for disabled - theme : # "light" (default), "dark", "dark_dimmed", "transparent_dark", "preferred_color_scheme" - strict : # 1 for enabled, 0 for disabled (default) - input_position : # "top", "bottom" # The comment input box will be placed above or below the comments - emit_metadata : # 1 for enabled, 0 for disabled (default) # https://github.com/giscus/giscus/blob/main/ADVANCED-USAGE.md#imetadatamessage - lang : # "en" (default) - lazy : # true, false # Loading of the comments will be deferred until the user scrolls near the comments container. - staticman: - branch : # "master" - endpoint : # "https://{your Staticman v3 API}/v3/entry/github/" -reCaptcha: - siteKey : - secret : -atom_feed: - path : # blank (default) uses feed.xml - hide : # true, false (default) -search : # true, false (default) -search_full_content : # true, false (default) -search_provider : # lunr (default), algolia, google -lunr: - search_within_pages : # true, false (default) -algolia: - application_id : # YOUR_APPLICATION_ID - index_name : # YOUR_INDEX_NAME - search_only_api_key : # YOUR_SEARCH_ONLY_API_KEY - powered_by : # true (default), false -google: - search_engine_id : # YOUR_SEARCH_ENGINE_ID - instant_search : # false (default), true -# SEO Related -google_site_verification : -bing_site_verification : -naver_site_verification : -yandex_site_verification : -baidu_site_verification : - -# Social Sharing -twitter: - username : -facebook: - username : - app_id : - publisher : -og_image : # Open Graph/Twitter default site image -og_image_alt : # Alt text for Open Graph/Twitter default site image -# For specifying social profiles -# - https://developers.google.com/structured-data/customize/social-profiles -social: - type : # Person or Organization (defaults to Person) - name : # If the user or organization name differs from the site's name - links: # An array of links to social media profiles - -# Analytics -analytics: - provider : # false (default), "google", "google-universal", "google-gtag", "custom" - google: - tracking_id : - anonymize_ip : # true, false (default) - - -# Site Author +locale: "en-US" +title: "Aging Health" +logo: "/assets/images/logo.png" +title_separator: "-" +subtitle: "Patient Advocacy & Geriatric Literacy" +description: "Independent health research and patient advocacy focusing on geriatric health literacy, clinical data interpretation, and longevity." +url: "https://aginghealth.website" +baseurl: "" +permalink: /:categories/:year/:month/:day/:title.html + +# Repository Settings +repository: "tomglo10/aging-research" +words_per_minute: 200 + +# Features +breadcrumbs: true +search: false +search_full_content: true +enable_copy_code_button: true + +# Site Author Profile author: - name : "Your Name" - avatar : # path of avatar image, e.g. "/assets/images/bio-photo.jpg" - bio : "I am an **amazing** person." - location : "Somewhere" - email : - # fediverse : "@you@instance.social" # used for fediverse:creator meta tag + name: "Tommy T. Douglas" + avatar: "/assets/images/avatar.png" + bio: "Independent health researcher and geriatric patient advocate." + location: "USA" links: - label: "Email" - icon: "fas fa-fw fa-square-envelope" - # url: "mailto:your.name@email.com" - - label: "Website" - icon: "fas fa-fw fa-link" - # url: "https://your-website.com" - - label: "Twitter" - icon: "fab fa-fw fa-square-x-twitter" - # url: "https://twitter.com/" - - label: "Facebook" - icon: "fab fa-fw fa-square-facebook" - # url: "https://facebook.com/" + icon: "fas fa-fw fa-envelope" + url: "mailto:tommglo@gmail.com" - label: "GitHub" icon: "fab fa-fw fa-github" - # url: "https://github.com/" - - label: "Instagram" - icon: "fab fa-fw fa-instagram" - # url: "https://instagram.com/" - -# Site Footer -footer: - links: - - label: "Twitter" - icon: "fab fa-fw fa-square-x-twitter" - # url: - # rel: "me" # optional: adds rel attribute (e.g. for IndieWeb web sign-in) - - label: "Facebook" - icon: "fab fa-fw fa-square-facebook" - # url: - - label: "GitHub" - icon: "fab fa-fw fa-github" - # url: - - label: "GitLab" - icon: "fab fa-fw fa-gitlab" - # url: - - label: "Bitbucket" - icon: "fab fa-fw fa-bitbucket" - # url: - - label: "Instagram" - icon: "fab fa-fw fa-instagram" - # url: - since: "2013" - + url: "https://github.com/tomglo10" + - label: "Support" + icon: "fas fa-fw fa-heart" + url: "https://buymeacoffee.com/aginghealth" # Reading Files include: - .htaccess - _pages exclude: - - "*.sublime-project" - - "*.sublime-workspace" - - vendor - - .asset-cache - - .bundle - - .jekyll-assets-cache - - .sass-cache - - assets/js/plugins - - assets/js/_main.js - - assets/js/vendor - - Capfile - - CHANGELOG - - config - Gemfile - - Gruntfile.js - - gulpfile.js - - LICENSE - - log - - minimal-mistakes-jekyll.gemspec + - Gemfile.lock - node_modules - - package.json - - package-lock.json - - Rakefile - - README - - tmp - - /docs # ignore Minimal Mistakes /docs - - /test # ignore Minimal Mistakes /test -keep_files: - - .git - - .svn -encoding: "utf-8" -markdown_ext: "markdown,mkdown,mkdn,mkd,md" - + - vendor/bundle/ + - vendor/cache/ + - .bundle/ + - .jekyll-cache/ + - 2023/ + - 2024/ + - 2025/ + - 2026/ -# Conversion +# Markdown Processing markdown: kramdown highlighter: rouge -lsi: false -excerpt_separator: "\n\n" -incremental: false - - -# Markdown Processing kramdown: input: GFM hard_wrap: false @@ -220,115 +65,96 @@ kramdown: footnote_nr: 1 entity_output: as_char toc_levels: 1..6 - smart_quotes: lsquo,rsquo,ldquo,rdquo - enable_coderay: false - - -# Sass/SCSS -sass: - sass_dir: _sass - style: compressed # https://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style - quiet_deps: true - silence_deprecations: ['import'] - -# Outputting -permalink: /:categories/:title/ -timezone: # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - - -# Pagination with jekyll-paginate -paginate: 5 # amount of posts to show -paginate_path: /page:num/ - -# Pagination with jekyll-paginate-v2 -# See https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md#site-configuration -# for configuration details -pagination: - # Set enabled to true to use paginate v2 - # enabled: true - debug: false - collection: 'posts' - per_page: 10 - permalink: '/page/:num/' - title: ':title - page :num' - limit: 0 - sort_field: 'date' - sort_reverse: true - category: 'posts' - tag: '' - locale: '' - trail: - before: 2 - after: 2 - - -# Plugins (previously gems:) +# Plugins plugins: - - jekyll-paginate + - jekyll-paginate-v2 - jekyll-sitemap - jekyll-gist - jekyll-feed - jekyll-include-cache + - jekyll-redirect-from -# mimic GitHub Pages with --safe whitelist: - - jekyll-paginate + - jekyll-paginate-v2 - jekyll-sitemap - - jekyll-gist - jekyll-feed - - jekyll-include-cache - -# Archives -# Type -# - GitHub Pages compatible archive pages built with Liquid ~> type: liquid (default) -# - Jekyll Archives plugin archive pages ~> type: jekyll-archives -# Path (examples) -# - Archive page should exist at path when using Liquid method or you can -# expect broken links (especially with breadcrumbs enabled) -# - /tags/my-awesome-tag/index.html ~> path: /tags/ -# - /categories/my-awesome-category/index.html ~> path: /categories/ -# - /my-awesome-category/index.html ~> path: / -category_archive: - type: liquid - path: /categories/ -tag_archive: - type: liquid - path: /tags/ -# show_taxonomy: false # set to false to hide tag/category lists on posts -# https://github.com/jekyll/jekyll-archives -# jekyll-archives: -# enabled: -# - categories -# - tags -# layouts: -# category: archive-taxonomy -# tag: archive-taxonomy -# permalinks: -# category: /categories/:name/ -# tag: /tags/:name/ +# Pagination V2 configuration block +pagination: + enabled: true + per_page: 12 + permalink: "/page/:num/" + title: ":title - Page :num" + limit: 0 + sort_field: "date" + sort_reverse: true +autopages: + enabled: false -# HTML Compression -# - https://jch.penibelst.de/ -compress_html: - clippings: all - ignore: - envs: development +# Search Settings +search_provider: lunr +lunr: + search_within_pages: true +# Global Media Configuration Variables +img_url: "/assets/images" -# Defaults +# Front Matter Defaults (Global Settings for all 330 posts) defaults: - # _posts - scope: path: "" - type: posts + type: "posts" values: - layout: single + layout: "single" author_profile: true read_time: true - comments: # true share: true related: true + math: true + comments: true + toc: true + toc_label: "Research Highlights" + toc_icon: "heart-pulse" + toc_sticky: true + entries_layout: "grid" + show_glossary_link: true + search: true + category_archive: + type: false + tag_archive: + type: false + - scope: + path: "assets" + values: + layout: nil + +# Giscus Comment Settings +comments: + provider: "giscus" + giscus: + repo_id: "R_kgDOSdr1qQ" + category: "Senior Health" + category_id: "DIC_kwDOSdr1qc4C9Itp" + mapping: "pathname" + strict: "0" + reactions_enabled: "1" + input_position: "bottom" + theme: "light" + lang: "en" + +# Footer Links +footer: + links: + - label: "Site Index" + url: "/sitemap/" + - label: "Disclaimer" + url: "/disclaimer/" + - label: "Privacy Policy" + url: "/privacy-policy/" + +# Search Engine & Social Share Defaults +og_image: "/assets/images/avatar.png" +google_site_verification: "58bf1f2989715102" diff --git a/_data/glossary.yml b/_data/glossary.yml new file mode 100644 index 000000000000..05a756cbbc3a --- /dev/null +++ b/_data/glossary.yml @@ -0,0 +1,6 @@ +- term: "Albumin" + definition: "A crucial protein made by the liver that prevents fluid leakage from blood vessels." + category: "Liver" +- term: "Cystatin C" + definition: "A highly precise blood marker used to measure kidney health independently of muscle mass." + category: "Renal" \ No newline at end of file diff --git a/_data/navigation.yml b/_data/navigation.yml index 6f30866f3bed..34f113a5df93 100644 --- a/_data/navigation.yml +++ b/_data/navigation.yml @@ -1,12 +1,26 @@ -# main links main: - - title: "Quick-Start Guide" - url: https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/ - # - title: "About" - # url: https://mmistakes.github.io/minimal-mistakes/about/ - # - title: "Sample Posts" - # url: /year-archive/ - # - title: "Sample Collections" - # url: /collection-archive/ - # - title: "Sitemap" - # url: /sitemap/ \ No newline at end of file + - title: "Home" + url: / + - title: "brain-mind" + url: "/categories/#brain-mind" + - title: "heart-metabolic" + url: "/heart-metabolic/" + - title: "Longevity" + url: "/categories/#longevity" + - title: "Glossary" + url: "{{ '/glossary/' | relative_url }}" + - title: "About" + url: /about/ + - title: "Research Index" + url: /sitemap/ + - title: "Search" + url: /search/ +footer: + - title: "Trust & Policies" + children: + - title: "Sources Policy" + url: /sources-citations-policy/ + - title: "Editorial Policy" + url: /editorial-policy/ + - title: "Contact & Corrections" + url: /contact-corrections/ \ No newline at end of file diff --git a/_includes/analytics-providers/custom.html b/_includes/analytics-providers/custom.html index c34b97ad90d9..438afd3ef5ac 100644 --- a/_includes/analytics-providers/custom.html +++ b/_includes/analytics-providers/custom.html @@ -1,3 +1,3 @@ - - \ No newline at end of file + + diff --git a/_includes/archive-single.html b/_includes/archive-single.html index f55299a2c1b0..60e95fd9b1ad 100644 --- a/_includes/archive-single.html +++ b/_includes/archive-single.html @@ -20,9 +20,9 @@ {% endif %}

{% if post.link %} - {{ title }} Permalink + {{ title }} Permalink {% else %} - {{ title }} + {{ title }} {% endif %}

{% include page__meta.html locale=locale type=include.type %} diff --git a/_includes/author-profile-custom-links.html b/_includes/author-profile-custom-links.html index 1a3d4caefc55..f632c8ff3093 100644 --- a/_includes/author-profile-custom-links.html +++ b/_includes/author-profile-custom-links.html @@ -2,6 +2,6 @@
  • Custom Social Profile Link - +
  • --> \ No newline at end of file diff --git a/_includes/author-profile.html b/_includes/author-profile.html index 827272df56cc..212a281e201d 100644 --- a/_includes/author-profile.html +++ b/_includes/author-profile.html @@ -8,13 +8,13 @@
    {{ author.name }} - +
    {% endif %}

    - +

  • {{ link.label }}
  • +
  • {{ link.label }}
  • {% endif %} {% endfor %} {% endif %} @@ -44,7 +44,7 @@

  • +
  • {% endif %} @@ -53,7 +53,7 @@

    {{ site.data.ui-text[locale].email_label | default: "Email" }} - + {% endif %} @@ -61,7 +61,7 @@

  • Keybase - +
  • {% endif %} @@ -69,7 +69,7 @@

  • Twitter - +
  • {% endif %} @@ -77,7 +77,7 @@

  • Facebook - +
  • {% endif %} @@ -85,7 +85,7 @@

  • LinkedIn - +
  • {% endif %} @@ -93,7 +93,7 @@

  • XING - +
  • {% endif %} @@ -101,7 +101,7 @@

  • Instagram - +
  • {% endif %} @@ -109,7 +109,7 @@

  • Tumblr - +
  • {% endif %} @@ -117,7 +117,7 @@

  • Bitbucket - +
  • {% endif %} @@ -125,7 +125,7 @@

  • GitHub - +
  • {% endif %} @@ -133,7 +133,7 @@

  • GitLab - +
  • {% endif %} @@ -141,7 +141,7 @@

  • Stack Overflow - +
  • {% endif %} @@ -149,7 +149,7 @@

  • Last.fm - +
  • {% endif %} @@ -157,7 +157,7 @@

  • Dribbble - +
  • {% endif %} @@ -165,7 +165,7 @@

  • Pinterest - +
  • {% endif %} @@ -173,7 +173,7 @@

  • Foursquare - +
  • {% endif %} @@ -181,7 +181,7 @@

  • Steam - +
  • {% endif %} @@ -190,13 +190,13 @@

  • YouTube - +
  • {% elsif author.youtube %}
  • YouTube - +
  • {% endif %} {% endif %} @@ -205,7 +205,7 @@

  • SoundCloud - +
  • {% endif %} @@ -213,7 +213,7 @@

  • Weibo - +
  • {% endif %} @@ -221,7 +221,7 @@

  • Flickr - +
  • {% endif %} @@ -229,7 +229,7 @@

  • CodePen - +
  • {% endif %} @@ -237,7 +237,7 @@

  • {{ site.data.ui-text[locale].email_label | default: "Email" }} - +
  • {% endif %} diff --git a/_includes/breadcrumbs.html b/_includes/breadcrumbs.html index 4f04eab1d94d..f1dff7422b2c 100644 --- a/_includes/breadcrumbs.html +++ b/_includes/breadcrumbs.html @@ -20,7 +20,7 @@ {% for crumb in crumbs offset: 1 %} {% if forloop.first %}
  • - {{ site.data.ui-text[locale].breadcrumb_home_label | default: "Home" }} + {{ site.data.ui-text[locale].breadcrumb_home_label | default: "Home" }}
  • @@ -31,7 +31,7 @@ {% else %} {% assign i = i | plus: 1 %}
  • - {{ crumb | url_decode | replace: '-', ' ' | capitalize }} + {{ crumb | url_decode | replace: '-', ' ' | capitalize }}
  • {{ site.data.ui-text[locale].breadcrumb_separator | default: "/" }} diff --git a/_includes/category-list.html b/_includes/category-list.html index dafc238ac5fd..514203bc8bd2 100644 --- a/_includes/category-list.html +++ b/_includes/category-list.html @@ -13,7 +13,7 @@ {{ site.data.ui-text[locale].categories_label | default: "Categories:" }} {% for category_word in categories_sorted %} - {% unless forloop.last %}, {% endunless %} +
    - -{% include paginator.html locale=locale %} diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 000000000000..c308a56ea037 --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,9 @@ + diff --git a/_layouts/posts.html b/_layouts/posts.html index 4796771c1850..d273ca14eae3 100644 --- a/_layouts/posts.html +++ b/_layouts/posts.html @@ -1,23 +1,37 @@ --- -layout: archive +layout: home +title: "Aging Health Research Library" +entries_layout: grid +classes: wide +author_profile: true +header: + overlay_image: /assets/images/research-header.webp # Use your .webp clinical image + overlay_filter: 0.5 --- + +Welcome to the Aging Health clinical library. Use the grid below to browse recent +investigations, or click into a category for targeted research. {%- assign locale = page.locale | default: layout.locale | default: site.locale %} -{{ content }} +{% if content %} +
    + {{ content }} +
    +{% endif %} + +{% assign postsByYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %}
      - {% assign postsInYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %} - {% for year in postsInYear %} + {% for year in postsByYear %}
    • {{ year.name }} {{ year.items | size }} - +
    • {% endfor %}
    {% assign entries_layout = page.entries_layout | default: 'list' %} -{% assign postsByYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %} {% for year in postsByYear %}

    {{ year.name }}

    @@ -26,6 +40,6 @@

    {{ year.name }}

    {% include archive-single.html locale=locale type=entries_layout %} {% endfor %}

    - {{ site.data.ui-text[locale].back_to_top | default: 'Back to Top' }} ↑ + {{ site.data.ui-text[locale].back_to_top | default: 'Back to Top' }} ↑ {% endfor %} diff --git a/_layouts/single.html b/_layouts/single.html index 6bff3538ea47..2c62e1619c25 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -32,26 +32,31 @@ {% unless page.header.overlay_color or page.header.overlay_image %}
    {% if page.title -%} -

    - -

    +

    + +

    {%- endif %} {% include page__meta.html locale=locale %}
    {% endunless %} -
    - {% if page.toc %} - - {% endif %} - {{ content }} - {% if page.link %}
    {{ site.data.ui-text[locale].ext_link_label | default: "Direct Link" }}
    {% endif %} -
    +
    + {% if page.toc %} + + {% endif %} + + {{ content }} + + {% if page.show_glossary_link %} + {% include glossary-link.html %} + {% endif %} + + {% include glossary.md %} + + {% if page.link %} +
    {{ site.data.ui-text[locale].ext_link_label | default: "Direct Link" }}
    + {% endif %} +