Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Merge branch 'dev' into all-contributors/add-sheldonhull
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-pogor committed Feb 16, 2021
2 parents f93fcac + d46221c commit 491430e
Show file tree
Hide file tree
Showing 13 changed files with 94 additions and 20 deletions.
31 changes: 30 additions & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"avatar_url": "https://avatars0.githubusercontent.com/u/11393826?v=4",
"profile": "http://www.thatamazingprogrammer.com/",
"contributions": [
"code"
"code",
"bug",
"doc"
]
},
{
Expand Down Expand Up @@ -313,6 +315,33 @@
"code"
]
},
{
"login": "michael0liver",
"name": "Michael Oliver",
"avatar_url": "https://avatars3.githubusercontent.com/u/55017335?v=4",
"profile": "https://michaeloliver.dev",
"contributions": [
"code"
]
},
{
"login": "epogrebnyak",
"name": "Evgeny Pogrebnyak",
"avatar_url": "https://avatars3.githubusercontent.com/u/9265326?v=4",
"profile": "https://epogrebnyak.github.io",
"contributions": [
"bug"
]
},
{
"login": "sosiristseng",
"name": "Wen Wei Tseng",
"avatar_url": "https://avatars2.githubusercontent.com/u/40054455?v=4",
"profile": "https://sosiristseng.github.io",
"contributions": [
"code"
]
},
{
"login": "sheldonhull",
"name": "sheldonhull",
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN apt update && \
powerline \
fonts-powerline \
software-properties-common \
vim \
# set up locale
&& locale-gen en_US.UTF-8

Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"mutantdino.resourcemonitor",
"budparr.language-hugo-vscode"
],
"runArgs": []
"runArgs": [],
"forwardPorts": [1313]
}
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,23 @@ read [Why to choose CodeIT](#why-choose-CodeIT) so that you can choose the one t

![Hugo Theme CodeIT](https://github.com/sunt-programator/CodeIT/raw/master/images/Apple-Devices-Preview.png)

## Table of Contents
* [Brief history](#brief-history)
* [Demo Site](#demo-site)
* [Why choose CodeIT](#why-choose-codeit)
* [Features](#features)
* [Performance and SEO](#performance-and-seo)
* [Appearance and Layout](#appearance-and-layout)
* [Social and Comment Systems](#social-and-comment-systems)
* [Extended Features](#extended-features)
* [Add the theme to your blog](#add-the-theme-to-your-blog)
* [Build documentation instructions](#build-documentation-instructions)
* [Multilingual and i18n](#multilingual-and-i18n)
* [Questions, ideas, bugs, pull requests](#questions-ideas-bugs-pull-requests)
* [Llicense](#license)
* [Sponsor](#sponsor)
* [Contributors](#contributors-)

## Brief history

This theme is based on the original [LoveIt](https://github.com/dillonzq/LoveIt) theme. The original theme was loved by many users, but since May 2020 it has not been maintained.
Expand Down Expand Up @@ -229,7 +246,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://suntprogramator.dev/"><img src="https://avatars1.githubusercontent.com/u/24962085?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Victor Pogor</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=victor-pogor" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Avictor-pogor" title="Bug reports">🐛</a> <a href="#projectManagement-victor-pogor" title="Project Management">📆</a></td>
<td align="center"><a href="https://github.com/dillonzq"><img src="https://avatars1.githubusercontent.com/u/30786232?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dillon</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=dillonzq" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Adillonzq" title="Bug reports">🐛</a> <a href="#projectManagement-dillonzq" title="Project Management">📆</a></td>
<td align="center"><a href="https://giuseppepignataro.eu/"><img src="https://avatars0.githubusercontent.com/u/16869546?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Giuseppe Pignataro</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Fastbyte01" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3AFastbyte01" title="Bug reports">🐛</a> <a href="#projectManagement-Fastbyte01" title="Project Management">📆</a></td>
<td align="center"><a href="http://www.thatamazingprogrammer.com/"><img src="https://avatars0.githubusercontent.com/u/11393826?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Christopher C. Johnson</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Programazing" title="Code">💻</a></td>
<td align="center"><a href="http://www.thatamazingprogrammer.com/"><img src="https://avatars0.githubusercontent.com/u/11393826?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Christopher C. Johnson</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Programazing" title="Code">💻</a> <a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3AProgramazing" title="Bug reports">🐛</a> <a href="https://github.com/sunt-programator/CodeIT/commits?author=Programazing" title="Documentation">📖</a></td>
<td align="center"><a href="https://astropengu.in/"><img src="https://avatars2.githubusercontent.com/u/13254278?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Akio Taniguchi</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=astropenguin" title="Code">💻</a></td>
<td align="center"><a href="https://www.holo.co.de/"><img src="https://avatars0.githubusercontent.com/u/6415842?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dave A-W</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=DaveA-W" title="Code">💻</a></td>
<td align="center"><a href="https://blog.realsangil.net/"><img src="https://avatars1.githubusercontent.com/u/15508203?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sangil Park</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=realsangil" title="Code">💻</a></td>
Expand Down Expand Up @@ -267,6 +284,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://github.com/SilkeHenderickx"><img src="https://avatars0.githubusercontent.com/u/28140438?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Silke Henderickx</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=SilkeHenderickx" title="Code">💻</a></td>
<td align="center"><a href="https://ghos.in/"><img src="https://avatars1.githubusercontent.com/u/26043355?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ghosin</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=Ghosin" title="Code">💻</a></td>
<td align="center"><a href="https://automationd.com/"><img src="https://avatars2.githubusercontent.com/u/1790594?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dmitry Kireev</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=AutomationD" title="Code">💻</a></td>
<td align="center"><a href="https://michaeloliver.dev"><img src="https://avatars3.githubusercontent.com/u/55017335?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Michael Oliver</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=michael0liver" title="Code">💻</a></td>
<td align="center"><a href="https://epogrebnyak.github.io"><img src="https://avatars3.githubusercontent.com/u/9265326?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Evgeny Pogrebnyak</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/issues?q=author%3Aepogrebnyak" title="Bug reports">🐛</a></td>
</tr>
<tr>
<td align="center"><a href="https://sosiristseng.github.io"><img src="https://avatars2.githubusercontent.com/u/40054455?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Wen Wei Tseng</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=sosiristseng" title="Code">💻</a></td>
<td align="center"><a href="https://www.sheldonhull.com"><img src="https://avatars.githubusercontent.com/u/3526320?v=4?s=100" width="100px;" alt=""/><br /><sub><b>sheldonhull</b></sub></a><br /><a href="https://github.com/sunt-programator/CodeIT/commits?author=sheldonhull" title="Code">💻</a></td>
</tr>
</table>
Expand Down
2 changes: 2 additions & 0 deletions assets/css/_partial/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ header {
.search-toggle {
left: 0.5rem;
right: auto;
top: -1.125rem;
bottom: -1.125rem;
}

.search-loading {
Expand Down
2 changes: 1 addition & 1 deletion assets/data/social.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ github:
Prefix: https://github.com/
Title: GitHub
Icon:
Class: fab fa-github-alt fa-fw
Class: fab fa-github fa-fw

# 002: LinkedIn
linkedin:
Expand Down
11 changes: 9 additions & 2 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,12 @@ ignoreErrors = ["error-remote-getjson"]
gravatarEmail = ""
# URL of avatar shown in home page
avatarURL = "/images/avatar.png"
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
avatarAlt = ""
# title shown in home page (HTML format is supported)
title = ""
# subtitle shown in home page
# {{< version 0.1.1 changed >}} (HTML format is supported)
subtitle = "A Clean, Elegant but Advanced Hugo Theme"
# whether to use typeit animation for subtitle
typeit = true
Expand Down Expand Up @@ -338,6 +341,8 @@ ignoreErrors = ["error-remote-getjson"]
gravatarEmail = ""
# 主页显示头像的 URL
avatarURL = "/images/avatar.png"
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
avatarAlt = ""
# 主页显示的网站标题 (支持 HTML 格式)
title = ""
# 主页显示的网站副标题
Expand Down Expand Up @@ -534,6 +539,8 @@ ignoreErrors = ["error-remote-getjson"]
gravatarEmail = ""
# URL of avatar shown in home page
avatarURL = "/images/avatar.png"
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
avatarAlt = ""
# title shown in home page (HTML format is supported)
title = ""
# subtitle shown in home page
Expand Down Expand Up @@ -902,7 +909,7 @@ ignoreErrors = ["error-remote-getjson"]
id = ""
# server url for your tracker if you're self hosting
server = ""
# Plausible Analytics
# {{< version 0.1.0 >}} Plausible Analytics
[params.analytics.plausible]
domain = ""

Expand Down Expand Up @@ -961,7 +968,7 @@ ignoreErrors = ["error-remote-getjson"]

# Author config
[author]
name = "xxxx"
name = "CodeIT"
email = ""
link = ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,12 @@ Please open the code block below to view the complete sample configuration :(far
gravatarEmail = ""
# URL of avatar shown in home page
avatarURL = "/images/avatar.png"
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
avatarAlt = ""
# title shown in home page (HTML format is supported)
title = ""
# subtitle shown in home page
# {{< version 0.1.1 changed >}} (HTML format is supported)
subtitle = "This is My New Hugo Site"
# whether to use typeit animation for subtitle
typeit = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,12 @@ Please open the code block below to view the complete sample configuration :(far
gravatarEmail = ""
# URL of avatar shown in home page
avatarURL = "/images/avatar.png"
# {{< version 0.1.1 >}} Alt text for avatar (default is the author name)
avatarAlt = ""
# title shown in home page (HTML format is supported)
title = ""
# subtitle shown in home page
# {{< version 0.1.1 changed >}} (HTML format is supported)
subtitle = "This is My New Hugo Site"
# whether to use typeit animation for subtitle
typeit = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ hugo
title = ""
# 主页显示的网站副标题
subtitle = "这是我的全新 Hugo 网站"
# {{< version 0.1.1 changed >}} (HTML format is supported)
# 是否为副标题显示打字机动画
typeit = true
# 是否显示社交账号
Expand Down
Binary file modified images/Apple-Devices-Preview.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 15 additions & 11 deletions layouts/partials/function/content.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
{{- $content := .Content -}}

{{- if .Ruby -}}
{{- $content = partial "function/ruby.html" $content -}}
{{- end -}}
{{- if $content -}}

{{- if .Fraction -}}
{{- $content = partial "function/fraction.html" $content -}}
{{- end -}}
{{- if .Ruby -}}
{{- $content = partial "function/ruby.html" $content -}}
{{- end -}}

{{- if .Fontawesome -}}
{{- $content = partial "function/fontawesome.html" $content -}}
{{- end -}}
{{- if .Fraction -}}
{{- $content = partial "function/fraction.html" $content -}}
{{- end -}}

{{- $content = partial "function/checkbox.html" $content -}}
{{- if .Fontawesome -}}
{{- $content = partial "function/fontawesome.html" $content -}}
{{- end -}}

{{- $content = partial "function/escape.html" $content -}}
{{- $content = partial "function/checkbox.html" $content -}}

{{- $content = partial "function/escape.html" $content -}}

{{- end -}}

{{- return $content -}}
7 changes: 4 additions & 3 deletions layouts/partials/home/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
{{- if $avatar -}}
<div class="home-avatar">
{{- $menus := $.Site.Menus.main | default slice -}}
{{- $avatarAlt := $profile.avatarAlt | default .Site.Author.name -}}
{{- with index $menus 0 -}}
{{- $url := .URL | relLangURL -}}
{{- with .Page -}}
{{- $url = .RelPermalink -}}
{{- end -}}
<a href="{{ $url }}"{{ with .Title | default .Name }} title="{{ . }}"{{ end }}{{ if (urls.Parse $url).Host }} rel="noopener noreferrer" target="_blank"{{ end }}>
{{- dict "Src" $avatar | partial "plugin/image.html" -}}
{{- dict "Src" $avatar "Alt" $avatarAlt | partial "plugin/image.html" -}}
</a>
{{- else -}}
{{- dict "Src" $avatar | partial "plugin/image.html" -}}
{{- dict "Src" $avatar "Alt" $avatarAlt | partial "plugin/image.html" -}}
{{- end -}}
</div>
{{- end -}}
Expand All @@ -34,7 +35,7 @@ <h2 class="home-subtitle">
<div id="{{ $id }}" class="typeit"></div>
{{- dict $id (slice $id) | dict "typeitMap" | merge ($.Scratch.Get "this") | $.Scratch.Set "this" -}}
{{- else -}}
{{- . -}}
{{- . | safeHTML -}}
{{- end -}}
</h2>
{{- end -}}
Expand Down

0 comments on commit 491430e

Please sign in to comment.