Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #26 from CodeReviewShop/rm-archive-notice
Browse files Browse the repository at this point in the history
Remove archive notice
  • Loading branch information
DaveSaah committed Nov 8, 2023
2 parents 534f47b + 4c0694b commit cbc7570
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 13 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@ A space for articles by CodeReviewShop.
## Contributing Guide

If you like to contribute articles to this blog, see [CONTRIBUTION.md](https://github.com/CodeReviewShop/blog/blob/main/CONTRIBUTING.md).

## Archive Notice!!!

All future articles will be published on hashnode: https://davesaah.hashnode.dev
3 changes: 0 additions & 3 deletions assets/Announcement.md

This file was deleted.

15 changes: 13 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ anonymizeIP = true
[privacy.youtube]
privacyEnhanced = true

[sitemap]
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"


[[menu.main]]
name = "Home"
Expand Down Expand Up @@ -142,6 +147,7 @@ enabled = false

[params.rss]
enabled = false
fullText = true

[params.console]
enabled = true
Expand Down Expand Up @@ -173,7 +179,12 @@ url = "https://creativecommons.org/licenses/by-nc-nd/4.0"

[params.github]
minStars = 0
id = "CodeReviewShop"
ids = ["CodeReviewShop", "DaveSaah"]

[params.twitter]
enabled = true
rsshub = "https://rsshub.rssforever.com"
id = "dave_saah"

[params.bionicReading]
enabled = true
Expand Down Expand Up @@ -201,7 +212,7 @@ image = "featured.png"

[params.opengraph.twitter]
cardType = "summary_large_image"
site = "@codereviewshop"
site = "@dave_saah"

[build]
noJSConfigInAssets = true
2 changes: 1 addition & 1 deletion content/github.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Github"
date: 2023-01-14T09:57:37Z
layout: github
layout: github-multiple
---
Binary file added content/links/codereview-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions content/links/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ date: 2022-12-26T23:34:08Z
layout: links
---

{{< link url="https://github.com/CodeReviewShop" image="github.png" title="GitHub" >}}
{{< link url="https://github.com/DaveSaah" desc="Checkout what I'm building" image="github.png" title="GitHub" >}}

{{< link url="https://davesaah.hashnode.dev" image="hashnode.png" title="Hashnode" >}}
{{< link url="https://davesaah.hashnode.dev" desc="Find more general articles" image="hashnode.png" title="Hashnode" >}}

{{< link url="https://linkedin.com/company/codereviewshop" image="linkedin.png" title="LinkedIn" >}}
{{< link url="https://linkedin.com/company/codereviewshop" desc="Let's get connected" image="linkedin.png" title="LinkedIn" >}}

{{< link url="https://codereviewshop.web.app" image="codereview-logo.png" title="CodeReviewShop" desc="Let's solve problems together" >}}
69 changes: 69 additions & 0 deletions layouts/_default/github-multiple.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{{- define "main" -}}
{{- $githubConfig := .Site.Params.github -}}
<div class="page-github relative py-8">
{{- range $id := $githubConfig.ids -}}
<div class="mx-6 mb-2 inline-flex items-end pb-3 text-3xl md:mx-10">
<div class="mr-4 inline-flex items-center leading-none">
<i class="eva eva-github-outline mr-2"></i>
<span>{{- $.Title -}}</span>
</div>
<div class="inline-block text-lg leading-none text-gray-500 hover:text-theme dark:text-darkTextPlaceholder">
<a href="https://github.com/{{- $id -}}/" target="_blank" rel="noopener noreferrer" title="{{- T "github.goto" -}}"
>@{{- $id -}}</a
>
</div>
</div>

<div class="mx-2 md:mx-6" id="github">
{{- $githubColors := $.Site.Data.luna.githubColors -}}
{{- $apiURL := print "https://api.github.com/users/" $id "/repos?per_page=100&type=owner" -}}
{{- $githubData := getJSON $apiURL -}}
{{- range sort $githubData "stargazers_count" "desc" -}}
{{- if and (eq .owner.login $id) (gt .stargazers_count $githubConfig.minStars) -}}
<a href="{{- .html_url -}}" target="_blank" rel="noopener noreferrer" class="inline-flex w-full flex-col justify-between sm:w-1/2">
<div
class="card relative m-4 flex h-40 flex-col justify-between rounded border p-4 transition duration-300 ease-[ease] dark:border-darkBorder dark:bg-darkBgAccent dark:shadow-none sm:border-none"
>
<div class="z-10">
<div class="text-lg font-bold" title="{{- .name -}}">
{{- .name -}}
</div>
<div class="my-3 line-clamp-2" title="{{- or .description "My awesome project" -}}">
{{- or .description "My awesome project" -}}
</div>
</div>
<div class="z-10 flex justify-between">
<div class="flex">
<div class="mr-6 flex items-center">
<i class="eva eva-star mr-1 text-amber-400"></i>
<span>{{- .stargazers_count -}}</span>
</div>

{{- if .language -}}
<div class="flex items-center">
<span class="github-language-dot" style="background-color:{{- index $githubColors .language -}};"></span>
<span>{{- .language -}}</span>
</div>
{{- end -}}
</div>

<div class="flex items-center">
<i class="eva eva-shuffle-2 mr-1 text-blue-500"></i>
<span>{{- .forks -}}</span>
</div>
</div>

<div class=" absolute right-0 text-9xl text-gray-50 dark:text-darkBorder">
<i class="eva eva-github-outline"></i>
</div>
</div>
</a>
{{- end -}}
{{- end -}}
</div>
{{- else -}}
{{- warnf "!!! GitHub ID not set, Please check your config file" -}}
<div class=" text-xl">ERROR: {{- T "github.config" -}}</div>
{{- end -}}
</div>
{{- end -}}

0 comments on commit cbc7570

Please sign in to comment.