Skip to content

Commit

Permalink
Merge branch 'main' into blog
Browse files Browse the repository at this point in the history
  • Loading branch information
lotusk08 committed Dec 11, 2024
2 parents 372d151 + 9ee9d8e commit c11f67a
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 69 deletions.
22 changes: 1 addition & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,11 @@

<!-- markdownlint-disable-next-line -->
# My personal blog's source code

[![Theme Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)][theme]&nbsp;
[![CI](https://github.com/lotusk08/lotusk08.github.io/actions/workflows/ci.yml/badge.svg?branch=master&event=push)][ci]&nbsp;
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e556876a3c54d5e8f2d2857c4f43894)][codacy]&nbsp;
[![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)][license]&nbsp;
[![npm](https://img.shields.io/npm/v/jekyll-theme-chirpy)][npm]&nbsp;
[![Cloudflare](https://img.shields.io/badge/Pages-deployed-blue?logo=cloudflare)][cf]&nbsp;
[![DMCA](https://img.shields.io/badge/DMCA-protected-green)][dmca]

Using Jekyll with Chirpy theme, host in Github with [submodule][lib], deployed by Cloudflare

[**Live site**][stevehoang.com]

[![stevehoang.com](/docs/stevehoang.com.webp)][stevehoang.com]
Using [Jekyll][jekyllrb] with [Chirpy][theme] theme, host in Github with [submodule][lib], deployed on Cloudflare.

</div>

## Optimized pagespeed
[![stevehoang.com](/docs/pagespeed.webp)][stevehoang.com]

## Deploy & public by [Cloudflare][cf]
Fix error `Gems in the groups 'development' and 'test' were not installed.` in Cloudflare with config the variables for your Preview/Production environment
Expand Down Expand Up @@ -71,12 +57,6 @@ node tools/lqip/index.js
- style: restyle sidebar: remove background, restyle nav.link hover effect.

[theme]: https://rubygems.org/gems/jekyll-theme-chirpy
[ci]: https://github.com/lotusk08/lotusk08.github.io/actions/workflows/ci.yml?query=event%3Apush+branch%3Amaster
[codacy]: https://app.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard
[license]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE
[npm]: https://www.npmjs.com/package/jekyll-theme-chirpy
[cf]: https://lotusk08-github-io.pages.dev
[dmca]: https://www.dmca.com/r/84e1gg7
[jekyllrb]: https://jekyllrb.com
[stevehoang.com]: https://stevehoang.com
[lib]: https://github.com/lotusk08/theme-static-assets
Expand Down
2 changes: 1 addition & 1 deletion _data/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ copyright:
Except where otherwise noted, the blog posts on this site are licensed
under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
meta: Built & deployed with :THEME :PLATFORM.
meta: Built & deployed with :THEME.
# Using the :THEME theme for :PLATFORM.

not_found:
Expand Down
92 changes: 46 additions & 46 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,6 @@
flex-lg-row justify-content-lg-between align-items-lg-center pb-lg-3
"
>
<p>
{{- '©' }}
<time>{{ 'now' | date: '%Y' }}</time>

{% assign authors = page.author | default: page.authors %}

{{ site.data.locales[lang].post.written_by }}

<span
data-bs-toggle="tooltip"
data-bs-placement="top"
title="{{ site.data.locales[include.lang].copyright.verbose }}"
>
{% if authors %}
{% for author in authors %}
{% assign author_data = site.data.authors[author] %}
{% if author_data.url %}
<strong><a href="{{ author_data.url }}">{{ author_data.name }}</a></strong>.
{% else %}
{{ author_data.name }}
{% endif %}
{% unless forloop.last %}, {% endunless %}
{% endfor %}
{% else %}
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
{% endif %}
</span>

{%- capture _platform -%}
<a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a>
{%- endcapture -%}

{%- capture _theme -%}
<a
data-bs-toggle="tooltip"
data-bs-placement="top"
title="v{{ theme.version }}"
href="https://github.com/cotes2020/jekyll-theme-chirpy"
target="_blank"
rel="noopener"
>Chirpy</a>
{%- endcapture -%}

{{ site.data.locales[include.lang].meta | replace: ':PLATFORM', _platform | replace: ':THEME', _theme }}
</p>

<div class="footer-social">
{% for entry in site.data.contact %}
{% case entry.type %}
Expand Down Expand Up @@ -93,4 +47,50 @@
{% endif %}
{% endfor %}
</div>

<p>
{{- '©' }}
<time>{{ 'now' | date: '%Y' }}</time>

{% assign authors = page.author | default: page.authors %}

{{ site.data.locales[lang].post.written_by }}

<span
data-bs-toggle="tooltip"
data-bs-placement="top"
title="{{ site.data.locales[include.lang].copyright.verbose }}"
>
{% if authors %}
{% for author in authors %}
{% assign author_data = site.data.authors[author] %}
{% if author_data.url %}
<strong><a href="{{ author_data.url }}">{{ author_data.name }}</a></strong>.
{% else %}
{{ author_data.name }}
{% endif %}
{% unless forloop.last %}, {% endunless %}
{% endfor %}
{% else %}
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>
{% endif %}
</span>

{%- capture _platform -%}
<a href="https://jekyllrb.com" target="_blank" rel="noopener">Jekyll</a>
{%- endcapture -%}

{%- capture _theme -%}
<a
data-bs-toggle="tooltip"
data-bs-placement="top"
title="Chirpy v{{ theme.version }}"
href="https://github.com/lotusk08/lotusk08.github.io"
target="_blank"
rel="noopener"
>Jekyll</a>
{%- endcapture -%}

{{ site.data.locales[include.lang].meta | replace: ':PLATFORM', _platform | replace: ':THEME', _theme }}
</p>
</footer>
1 change: 0 additions & 1 deletion _sass/layout/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ footer {
justify-content: center;
align-items: center;
flex-wrap: wrap;
order: -1;
&:not(:last-child) {
margin-right: v.$sb-btn-gap;

Expand Down

0 comments on commit c11f67a

Please sign in to comment.