Skip to content

Commit

Permalink
Hotfix 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fanghanonline committed Jul 27, 2024
1 parent bd556f4 commit b88aae6
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ gem "github-pages", "~> 231", group: :jekyll_plugins


# If you have any plugins, put them here!
# group :jekyll_plugins do
group :jekyll_plugins do
# gem "jekyll-feed", "~> 0.12"
# end
# gem "jekyll-include-cache"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
Expand Down
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ author: Fang Han
# Build settings
# theme: minimal-mistakes-jekyll
remote_theme: "mmistakes/[email protected]"
# plugins:
# - jekyll-feed
plugins:
- jekyll-remote-theme

# "air", "aqua", "contrast", "dark",
# "dirt", "neon", "mint", "plum", "sunrise"
Expand Down
21 changes: 21 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<div class="page__footer-follow">
<ul class="social-icons">
{% if site.data.ui-text[site.locale].follow_label %}
<li><strong>{{ site.data.ui-text[site.locale].follow_label }}</strong></li>
{% endif %}

{% if site.footer.links %}
{% for link in site.footer.links %}
{% if link.label and link.url %}
<li><a href="{{ link.url }}" rel="nofollow noopener noreferrer"><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i> {{ link.label }}</a></li>
{% endif %}
{% endfor %}
{% endif %}

{% unless site.atom_feed.hide %}
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}"><i class="fas fa-fw fa-rss-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}</a></li>
{% endunless %}
</ul>
</div>

<div class="page__footer-copyright">&copy; {{ site.time | date: '%Y' }} <a href="{{ site.copyright_url | default: site.url }}">{{ site.copyright | default: site.title }}</a>. {{ site.data.ui-text[site.locale].powered_by | default: "Powered by" }} <a href="https://jekyllrb.com" rel="nofollow">Jekyll</a> &amp; <a href="https://mademistakes.com/work/minimal-mistakes-jekyll-theme/" rel="nofollow">Minimal Mistakes</a>.</div>
13 changes: 13 additions & 0 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% if site.footer_scripts %}
{% for script in site.footer_scripts %}
<script src="{{ script | relative_url }}"></script>
{% endfor %}
{% else %}
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
{% endif %}

{% if site.after_footer_scripts %}
{% for script in site.after_footer_scripts %}
<script src="{{ script | relative_url }}"></script>
{% endfor %}
{% endif %}
36 changes: 36 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
---

<!doctype html>
{% include copyright.html %}
<html lang="{{ site.locale | replace: "_", "-" | default: "en" }}" class="no-js">
<head>
{% include head.html %}
{% include head/custom.html %}
</head>

<body class="layout--{{ page.layout | default: layout.layout }}{% if page.classes or layout.classes %}{{ page.classes | default: layout.classes | join: ' ' | prepend: ' ' }}{% endif %}">
{% include skip-links.html %}
{% include masthead.html %}

<div class="initial-content">
{{ content }}
{% include after-content.html %}
</div>

{% if site.search == true %}
<div class="search-content">
{% include search/search_form.html %}
</div>
{% endif %}

<div id="footer" class="page__footer">
<footer>
{% include footer/custom.html %}
{% include footer.html %}
</footer>
</div>

{% include scripts.html %}
</body>
</html>

0 comments on commit b88aae6

Please sign in to comment.