mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 07:58:02 +00:00
Compare commits
No commits in common. "6b5744c9aee753e8b80d8575378390cb9ea6783b" and "cc267430a11ac9d8707c3c6867057164ec30628b" have entirely different histories.
6b5744c9ae
...
cc267430a1
83
.gitignore
vendored
83
.gitignore
vendored
@ -32,86 +32,3 @@ hugo.linux
|
|||||||
|
|
||||||
# Local Netlify folder
|
# Local Netlify folder
|
||||||
.netlify
|
.netlify
|
||||||
|
|
||||||
### Ruby ###
|
|
||||||
*.gem
|
|
||||||
*.rbc
|
|
||||||
/.config
|
|
||||||
/coverage/
|
|
||||||
/InstalledFiles
|
|
||||||
/pkg/
|
|
||||||
/spec/reports/
|
|
||||||
/spec/examples.txt
|
|
||||||
/test/tmp/
|
|
||||||
/test/version_tmp/
|
|
||||||
/tmp/
|
|
||||||
|
|
||||||
# Used by dotenv library to load environment variables.
|
|
||||||
# .env
|
|
||||||
|
|
||||||
# Ignore Byebug command history file.
|
|
||||||
.byebug_history
|
|
||||||
|
|
||||||
## Specific to RubyMotion:
|
|
||||||
.dat*
|
|
||||||
.repl_history
|
|
||||||
build/
|
|
||||||
*.bridgesupport
|
|
||||||
build-iPhoneOS/
|
|
||||||
build-iPhoneSimulator/
|
|
||||||
|
|
||||||
## Specific to RubyMotion (use of CocoaPods):
|
|
||||||
#
|
|
||||||
# We recommend against adding the Pods directory to your .gitignore. However
|
|
||||||
# you should judge for yourself, the pros and cons are mentioned at:
|
|
||||||
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
|
||||||
#
|
|
||||||
# vendor/Pods/
|
|
||||||
|
|
||||||
## Documentation cache and generated files:
|
|
||||||
/.yardoc/
|
|
||||||
/_yardoc/
|
|
||||||
/doc/
|
|
||||||
/rdoc/
|
|
||||||
|
|
||||||
## Environment normalization:
|
|
||||||
/.bundle/
|
|
||||||
/vendor/bundle
|
|
||||||
/lib/bundler/man/
|
|
||||||
|
|
||||||
# for a library or gem, you might want to ignore these files since the code is
|
|
||||||
# intended to run in multiple environments; otherwise, check them in:
|
|
||||||
# Gemfile.lock
|
|
||||||
# .ruby-version
|
|
||||||
# .ruby-gemset
|
|
||||||
|
|
||||||
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
|
||||||
.rvmrc
|
|
||||||
|
|
||||||
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
|
||||||
# .rubocop-https?--*
|
|
||||||
|
|
||||||
|
|
||||||
### Go ###
|
|
||||||
# If you prefer the allow list template instead of the deny list, see community template:
|
|
||||||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
|
||||||
#
|
|
||||||
# Binaries for programs and plugins
|
|
||||||
*.exe
|
|
||||||
*.exe~
|
|
||||||
*.dll
|
|
||||||
*.so
|
|
||||||
*.dylib
|
|
||||||
|
|
||||||
# Test binary, built with `go test -c`
|
|
||||||
*.test
|
|
||||||
|
|
||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
|
||||||
*.out
|
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
|
||||||
# vendor/
|
|
||||||
|
|
||||||
# Go workspace file
|
|
||||||
go.work
|
|
||||||
|
|
||||||
|
20
Rakefile
20
Rakefile
@ -12,9 +12,7 @@ require 'shellwords'
|
|||||||
desc 'Build the site'
|
desc 'Build the site'
|
||||||
task :build, %i[context base_url] => %i[clean export_content_assets export_avatars] do |_, args|
|
task :build, %i[context base_url] => %i[clean export_content_assets export_avatars] do |_, args|
|
||||||
args.with_defaults(context: 'production')
|
args.with_defaults(context: 'production')
|
||||||
unless args.context == 'production'
|
draft_args = '--environment development --buildDrafts --buildFuture --buildExpired' unless args.context == 'production'
|
||||||
draft_args = '--environment development --buildDrafts --buildFuture --buildExpired'
|
|
||||||
end
|
|
||||||
base_uri_args = "-b #{args.base_url}" if args.base_url
|
base_uri_args = "-b #{args.base_url}" if args.base_url
|
||||||
|
|
||||||
# Unfortunately, we have to pass it inside of another Nix shell since
|
# Unfortunately, we have to pass it inside of another Nix shell since
|
||||||
@ -28,15 +26,15 @@ task :export_avatars, %i[base_dir output_dir] do |_, args|
|
|||||||
args.with_defaults(base_dir: './assets/svg/', output_dir: './static/icons')
|
args.with_defaults(base_dir: './assets/svg/', output_dir: './static/icons')
|
||||||
|
|
||||||
output_dirs = Set[]
|
output_dirs = Set[]
|
||||||
sizes = [32, 64, 128, 256, 512, 1024].freeze
|
sizes = [ 32, 64, 128, 256, 512, 1024 ].freeze
|
||||||
formats = %w[avif webp].freeze
|
formats = [ "avif", "webp" ].freeze
|
||||||
|
|
||||||
job_queue = Concurrent::ThreadPoolExecutor.new(min_threads: 5)
|
job_queue = Concurrent::ThreadPoolExecutor.new(min_threads: 5, max_threads: 10)
|
||||||
Dir.glob('avatars/**/*.svg', base: args.base_dir) do |f|
|
Dir.glob('avatars/**/*.svg', base: args.base_dir) do |f|
|
||||||
dirname = File.dirname f
|
dirname = File.dirname f
|
||||||
output_dir = %(#{args.output_dir}/#{dirname})
|
output_dir = %(#{args.output_dir}/#{dirname})
|
||||||
|
|
||||||
if output_dirs.add?(output_dir)
|
if output_dirs.add?(output_dir) then
|
||||||
FileUtils.mkdir_p(output_dir, verbose: true)
|
FileUtils.mkdir_p(output_dir, verbose: true)
|
||||||
|
|
||||||
sizes.each do |size|
|
sizes.each do |size|
|
||||||
@ -65,6 +63,8 @@ task :export_avatars, %i[base_dir output_dir] do |_, args|
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
job_queue.wait_for_termination
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Export the content assets'
|
desc 'Export the content assets'
|
||||||
@ -112,10 +112,12 @@ task :clean do
|
|||||||
generated_files_dir = [
|
generated_files_dir = [
|
||||||
'./public',
|
'./public',
|
||||||
'./static/icons',
|
'./static/icons',
|
||||||
'./static/posts'
|
'./static/posts',
|
||||||
]
|
]
|
||||||
|
|
||||||
generated_files_dir.each do |dir|
|
generated_files_dir.each do |dir|
|
||||||
FileUtils.rm_r dir, secure: true if File.exist? dir
|
if File.exist? dir then
|
||||||
|
FileUtils.rm_r dir, secure: true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[author.foo-dogsquared]
|
[foo-dogsquared]
|
||||||
name = "Gabriel Arazas"
|
name = "Gabriel Arazas"
|
||||||
alias = "foo-dogsquared"
|
alias = "foo-dogsquared"
|
||||||
email = "foodogsquared@foodogsquared.one"
|
email = "foodogsquared@foodogsquared.one"
|
@ -1,8 +1,9 @@
|
|||||||
baseURL = "https://www.foodogsquared.one"
|
baseURL = "https://www.foodogsquared.one"
|
||||||
title = "foodogsquared"
|
title = "Gabriel Arazas"
|
||||||
languageCode = "en"
|
languageCode = "en"
|
||||||
enableGitInfo = true
|
enableGitInfo = true
|
||||||
copyright = "© Gabriel Arazas"
|
paginate = 40
|
||||||
|
copyright = "© foodogsquared"
|
||||||
summaryLength = 0
|
summaryLength = 0
|
||||||
timeZone = "UTC"
|
timeZone = "UTC"
|
||||||
|
|
||||||
@ -14,9 +15,6 @@ This site uses [medium-zoom](https://github.com/francoischalifour/medium-zoom) a
|
|||||||
For analytics, it uses [GoatCounter](https://goatcounter.com/).
|
For analytics, it uses [GoatCounter](https://goatcounter.com/).
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[pagination]
|
|
||||||
pagerSize = 40
|
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
tag = "tags"
|
tag = "tags"
|
||||||
series = "series"
|
series = "series"
|
||||||
@ -48,7 +46,7 @@ home = ["HTML", "ATOM", "RSS", "JSON"]
|
|||||||
section = ["HTML", "ATOM", "RSS", "JSON"]
|
section = ["HTML", "ATOM", "RSS", "JSON"]
|
||||||
|
|
||||||
[security.exec]
|
[security.exec]
|
||||||
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$', '^git$']
|
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
|
||||||
|
|
||||||
[security.funcs]
|
[security.funcs]
|
||||||
getenv = [ "^LAST_COMMIT_DATE$" ]
|
getenv = [ "^LAST_COMMIT_DATE$" ]
|
||||||
|
@ -20,7 +20,7 @@ reproducible = true
|
|||||||
stem = "latexmath"
|
stem = "latexmath"
|
||||||
|
|
||||||
avatarsdir = "/icons/avatars"
|
avatarsdir = "/icons/avatars"
|
||||||
"avatarstype" = "webp"
|
avatarstype = "webp"
|
||||||
|
|
||||||
icons = "image"
|
icons = "image"
|
||||||
iconsdir = "/icons/asciidoctor"
|
iconsdir = "/icons/asciidoctor"
|
||||||
@ -30,3 +30,6 @@ icontype = "svg"
|
|||||||
bibtex-file = "./assets/bibliography.bib"
|
bibtex-file = "./assets/bibliography.bib"
|
||||||
bibtex-order = "alphabetical"
|
bibtex-order = "alphabetical"
|
||||||
bibtex-throw = true
|
bibtex-throw = true
|
||||||
|
|
||||||
|
# asciidoctor-tabs
|
||||||
|
tabs-sync-option = true
|
||||||
|
@ -1,5 +1,15 @@
|
|||||||
useImage = true
|
useImage = true
|
||||||
|
|
||||||
|
[[links]]
|
||||||
|
id = "twitter"
|
||||||
|
url = "https://twitter.com/foo_dogsquared"
|
||||||
|
name = "Twitter"
|
||||||
|
|
||||||
|
[[links]]
|
||||||
|
id = "mastodon"
|
||||||
|
url = "https://fosstodon.org/@foodogsquared"
|
||||||
|
name = "Fosstodon"
|
||||||
|
|
||||||
[[links]]
|
[[links]]
|
||||||
id = "github"
|
id = "github"
|
||||||
url = "https://github.com/foo-dogsquared/"
|
url = "https://github.com/foo-dogsquared/"
|
||||||
@ -10,6 +20,11 @@ id = "gitlab"
|
|||||||
url = "https://gitlab.com/foo-dogsquared/"
|
url = "https://gitlab.com/foo-dogsquared/"
|
||||||
name = "GitLab"
|
name = "GitLab"
|
||||||
|
|
||||||
|
[[links]]
|
||||||
|
id = "keybase"
|
||||||
|
url = "https://keybase.io/foo_dogsquared"
|
||||||
|
name = "Keybase"
|
||||||
|
|
||||||
[[links]]
|
[[links]]
|
||||||
id = "rss"
|
id = "rss"
|
||||||
url = "index.atom"
|
url = "index.atom"
|
||||||
|
12
flake.lock
generated
12
flake.lock
generated
@ -5,11 +5,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731533236,
|
"lastModified": 1726560853,
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -20,11 +20,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1731890469,
|
"lastModified": 1727842290,
|
||||||
"narHash": "sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs=",
|
"narHash": "sha256-mnH2caarCN4trCgV++t9JtUwbbOGS0hvThdtod2J5Bk=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5083ec887760adfe12af64830a66807423a859a7",
|
"rev": "3b266ab4521b8e4144b4c552cba978b0c35ef449",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
9
go.mod
9
go.mod
@ -1,13 +1,8 @@
|
|||||||
module github.com/foo-dogsquared/website
|
module github.com/foo-dogsquared/website
|
||||||
|
|
||||||
go 1.23.2
|
go 1.15
|
||||||
|
|
||||||
toolchain go1.23.3
|
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/foo-dogsquared/hugo-mod-simple-icons v0.0.0-20241113232057-c42b53cd0165 // indirect
|
|
||||||
github.com/foo-dogsquared/hugo-mod-web-feeds v0.0.3-0.20220613123653-e0bc8e58159d // indirect
|
github.com/foo-dogsquared/hugo-mod-web-feeds v0.0.3-0.20220613123653-e0bc8e58159d // indirect
|
||||||
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.2-0.20241119041335-143341838df0 // indirect
|
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.1-0.20240829055539-b7c3b8878050 // indirect
|
||||||
github.com/refactoringui/heroicons v2.2.0+incompatible // indirect
|
|
||||||
github.com/simple-icons/simple-icons v0.0.0-20241027003233-9d720b26a17d // indirect
|
|
||||||
)
|
)
|
||||||
|
19
go.sum
19
go.sum
@ -1,16 +1,7 @@
|
|||||||
github.com/foo-dogsquared/hugo-mod-simple-icons v0.0.0-20241028022226-7f7e0be42a95 h1:knvsLW0kTmLxZ7tCKAQgK9M6e8ggjU6NPcmP3HOFKHc=
|
github.com/foo-dogsquared/hugo-mod-simple-icons v0.0.0-20231025231637-36998f86bbf2/go.mod h1:8HnVc0SlzI7LCEU4sITYS5MQTq0Bct/nFr/7LdsHYVQ=
|
||||||
github.com/foo-dogsquared/hugo-mod-simple-icons v0.0.0-20241028022226-7f7e0be42a95/go.mod h1:R9tJ1WSUnZf0R12SAmI9I/x9IQQbwPGek2FQyGJOC0g=
|
|
||||||
github.com/foo-dogsquared/hugo-mod-simple-icons v0.0.0-20241113232057-c42b53cd0165 h1:Wcq7z5cASKjJ1J3Hgr2sKgbY4K1B4I/Xx5luz3XmUSs=
|
|
||||||
github.com/foo-dogsquared/hugo-mod-simple-icons v0.0.0-20241113232057-c42b53cd0165/go.mod h1:R9tJ1WSUnZf0R12SAmI9I/x9IQQbwPGek2FQyGJOC0g=
|
|
||||||
github.com/foo-dogsquared/hugo-mod-web-feeds v0.0.3-0.20220613123653-e0bc8e58159d h1:IvFDTSoQiK3BsbdJxvXEqjuRxwcYo2dMHgUxGmhdYes=
|
github.com/foo-dogsquared/hugo-mod-web-feeds v0.0.3-0.20220613123653-e0bc8e58159d h1:IvFDTSoQiK3BsbdJxvXEqjuRxwcYo2dMHgUxGmhdYes=
|
||||||
github.com/foo-dogsquared/hugo-mod-web-feeds v0.0.3-0.20220613123653-e0bc8e58159d/go.mod h1:V7UXom6wuFrWj1lBUCXQA3HguwfDhQA+tQNxyRxdClk=
|
github.com/foo-dogsquared/hugo-mod-web-feeds v0.0.3-0.20220613123653-e0bc8e58159d/go.mod h1:V7UXom6wuFrWj1lBUCXQA3HguwfDhQA+tQNxyRxdClk=
|
||||||
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.1 h1:5Mu2OBMVHHp1nytCUUFz9EEQ3gTQCBUHsovzaQssnmc=
|
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.1-0.20240829055539-b7c3b8878050 h1:Pza7f2xGDZYQhDvZ579Oaa3xioZNnyAgO2xeuy+oAIk=
|
||||||
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.1/go.mod h1:HV3pnAPBJNG6k9bo10wDOkl6rYFib+um2IURlRIlXkg=
|
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.1-0.20240829055539-b7c3b8878050/go.mod h1:Rbsgp6Kdi2jVmAILYZTgCysqU4xvoLFwvrR0nvpSr4I=
|
||||||
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.2-0.20241119041335-143341838df0 h1:ck2aC9kc4/EUH9mqKzs+bltbJ5LOwC8LlYvqns1KgB4=
|
github.com/refactoringui/heroicons v2.0.18+incompatible/go.mod h1:82HsLWQga7MkEl5aK8TctxPPIBlXrsyWcVTB57uipuk=
|
||||||
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.2-0.20241119041335-143341838df0/go.mod h1:HV3pnAPBJNG6k9bo10wDOkl6rYFib+um2IURlRIlXkg=
|
github.com/simple-icons/simple-icons v0.0.0-20231022005333-fdbaaa2d5f99/go.mod h1:oOgUUt8yVYOso/wEBi2ojfZP2MU/xxiNccIpaE+jCvE=
|
||||||
github.com/refactoringui/heroicons v2.1.5+incompatible h1:XzZpX6BwR5eYel3Owrw6u0e11/pj1FTXA3MSiN3OOvE=
|
|
||||||
github.com/refactoringui/heroicons v2.1.5+incompatible/go.mod h1:82HsLWQga7MkEl5aK8TctxPPIBlXrsyWcVTB57uipuk=
|
|
||||||
github.com/refactoringui/heroicons v2.2.0+incompatible h1:EKlvN4FK+3SgKcO9qy8Y30Up+SYypBifKCaOynG9Sh8=
|
|
||||||
github.com/refactoringui/heroicons v2.2.0+incompatible/go.mod h1:82HsLWQga7MkEl5aK8TctxPPIBlXrsyWcVTB57uipuk=
|
|
||||||
github.com/simple-icons/simple-icons v0.0.0-20241027003233-9d720b26a17d h1:hkrcJOSlWIPEaFLPeE82iyslQkhnyH4aheEtIushCQg=
|
|
||||||
github.com/simple-icons/simple-icons v0.0.0-20241027003233-9d720b26a17d/go.mod h1:oOgUUt8yVYOso/wEBi2ojfZP2MU/xxiNccIpaE+jCvE=
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<p><a href="#top">{{ T "back_to_top" | default "Back to top" }}</a></p>
|
<p><a href="#top">{{ T "back_to_top" | default "Back to top" }}</a></p>
|
||||||
|
|
||||||
<!-- Linking to other languages' homepage. -->
|
<!-- Linking to other languages' homepage. -->
|
||||||
{{ if hugo.IsMultilingual }}
|
{{ if $.Site.IsMultiLingual }}
|
||||||
<p>{{ T "multilingual" }}:
|
<p>{{ T "multilingual" }}:
|
||||||
<span class="list site__languages">
|
<span class="list site__languages">
|
||||||
{{ range $.Site.Languages }}
|
{{ range $.Site.Languages }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{{- /* Here's where the customized version should be. */ -}}
|
{{- /* Here's where the customized version should be. */ -}}
|
||||||
{{ $highlighter := resources.Get "css/rouge.scss" | toCSS }}
|
{{ $highlighter := resources.Get "css/rouge.scss" | resources.ToCSS }}
|
||||||
{{- if hugo.IsProduction }}
|
{{- if hugo.IsProduction }}
|
||||||
{{ $highlighter = $highlighter | resources.Minify | resources.Fingerprint }}
|
{{ $highlighter = $highlighter | resources.Minify | resources.Fingerprint }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user