mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 04:58:26 +00:00
Compare commits
5 Commits
cc267430a1
...
6b5744c9ae
Author | SHA1 | Date | |
---|---|---|---|
6b5744c9ae | |||
a01655511e | |||
9a14f72653 | |||
2490c5a484 | |||
1f1dee6f55 |
83
.gitignore
vendored
83
.gitignore
vendored
@ -32,3 +32,86 @@ hugo.linux
|
||||
|
||||
# Local Netlify folder
|
||||
.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,7 +12,9 @@ require 'shellwords'
|
||||
desc 'Build the site'
|
||||
task :build, %i[context base_url] => %i[clean export_content_assets export_avatars] do |_, args|
|
||||
args.with_defaults(context: 'production')
|
||||
draft_args = '--environment development --buildDrafts --buildFuture --buildExpired' unless args.context == 'production'
|
||||
unless args.context == 'production'
|
||||
draft_args = '--environment development --buildDrafts --buildFuture --buildExpired'
|
||||
end
|
||||
base_uri_args = "-b #{args.base_url}" if args.base_url
|
||||
|
||||
# Unfortunately, we have to pass it inside of another Nix shell since
|
||||
@ -26,15 +28,15 @@ task :export_avatars, %i[base_dir output_dir] do |_, args|
|
||||
args.with_defaults(base_dir: './assets/svg/', output_dir: './static/icons')
|
||||
|
||||
output_dirs = Set[]
|
||||
sizes = [ 32, 64, 128, 256, 512, 1024 ].freeze
|
||||
formats = [ "avif", "webp" ].freeze
|
||||
sizes = [32, 64, 128, 256, 512, 1024].freeze
|
||||
formats = %w[avif webp].freeze
|
||||
|
||||
job_queue = Concurrent::ThreadPoolExecutor.new(min_threads: 5, max_threads: 10)
|
||||
job_queue = Concurrent::ThreadPoolExecutor.new(min_threads: 5)
|
||||
Dir.glob('avatars/**/*.svg', base: args.base_dir) do |f|
|
||||
dirname = File.dirname f
|
||||
output_dir = %(#{args.output_dir}/#{dirname})
|
||||
|
||||
if output_dirs.add?(output_dir) then
|
||||
if output_dirs.add?(output_dir)
|
||||
FileUtils.mkdir_p(output_dir, verbose: true)
|
||||
|
||||
sizes.each do |size|
|
||||
@ -63,8 +65,6 @@ task :export_avatars, %i[base_dir output_dir] do |_, args|
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
job_queue.wait_for_termination
|
||||
end
|
||||
|
||||
desc 'Export the content assets'
|
||||
@ -112,12 +112,10 @@ task :clean do
|
||||
generated_files_dir = [
|
||||
'./public',
|
||||
'./static/icons',
|
||||
'./static/posts',
|
||||
'./static/posts'
|
||||
]
|
||||
|
||||
generated_files_dir.each do |dir|
|
||||
if File.exist? dir then
|
||||
FileUtils.rm_r dir, secure: true
|
||||
end
|
||||
FileUtils.rm_r dir, secure: true if File.exist? dir
|
||||
end
|
||||
end
|
||||
|
@ -1,9 +1,8 @@
|
||||
baseURL = "https://www.foodogsquared.one"
|
||||
title = "Gabriel Arazas"
|
||||
title = "foodogsquared"
|
||||
languageCode = "en"
|
||||
enableGitInfo = true
|
||||
paginate = 40
|
||||
copyright = "© foodogsquared"
|
||||
copyright = "© Gabriel Arazas"
|
||||
summaryLength = 0
|
||||
timeZone = "UTC"
|
||||
|
||||
@ -15,6 +14,9 @@ This site uses [medium-zoom](https://github.com/francoischalifour/medium-zoom) a
|
||||
For analytics, it uses [GoatCounter](https://goatcounter.com/).
|
||||
"""
|
||||
|
||||
[pagination]
|
||||
pagerSize = 40
|
||||
|
||||
[taxonomies]
|
||||
tag = "tags"
|
||||
series = "series"
|
||||
@ -46,7 +48,7 @@ home = ["HTML", "ATOM", "RSS", "JSON"]
|
||||
section = ["HTML", "ATOM", "RSS", "JSON"]
|
||||
|
||||
[security.exec]
|
||||
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
|
||||
allow = ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$', '^git$']
|
||||
|
||||
[security.funcs]
|
||||
getenv = [ "^LAST_COMMIT_DATE$" ]
|
||||
|
@ -20,7 +20,7 @@ reproducible = true
|
||||
stem = "latexmath"
|
||||
|
||||
avatarsdir = "/icons/avatars"
|
||||
avatarstype = "webp"
|
||||
"avatarstype" = "webp"
|
||||
|
||||
icons = "image"
|
||||
iconsdir = "/icons/asciidoctor"
|
||||
@ -30,6 +30,3 @@ icontype = "svg"
|
||||
bibtex-file = "./assets/bibliography.bib"
|
||||
bibtex-order = "alphabetical"
|
||||
bibtex-throw = true
|
||||
|
||||
# asciidoctor-tabs
|
||||
tabs-sync-option = true
|
||||
|
@ -1,4 +1,4 @@
|
||||
[foo-dogsquared]
|
||||
[author.foo-dogsquared]
|
||||
name = "Gabriel Arazas"
|
||||
alias = "foo-dogsquared"
|
||||
email = "foodogsquared@foodogsquared.one"
|
@ -1,15 +1,5 @@
|
||||
useImage = true
|
||||
|
||||
[[links]]
|
||||
id = "twitter"
|
||||
url = "https://twitter.com/foo_dogsquared"
|
||||
name = "Twitter"
|
||||
|
||||
[[links]]
|
||||
id = "mastodon"
|
||||
url = "https://fosstodon.org/@foodogsquared"
|
||||
name = "Fosstodon"
|
||||
|
||||
[[links]]
|
||||
id = "github"
|
||||
url = "https://github.com/foo-dogsquared/"
|
||||
@ -20,11 +10,6 @@ id = "gitlab"
|
||||
url = "https://gitlab.com/foo-dogsquared/"
|
||||
name = "GitLab"
|
||||
|
||||
[[links]]
|
||||
id = "keybase"
|
||||
url = "https://keybase.io/foo_dogsquared"
|
||||
name = "Keybase"
|
||||
|
||||
[[links]]
|
||||
id = "rss"
|
||||
url = "index.atom"
|
||||
|
12
flake.lock
generated
12
flake.lock
generated
@ -5,11 +5,11 @@
|
||||
"systems": "systems"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1726560853,
|
||||
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -20,11 +20,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1727842290,
|
||||
"narHash": "sha256-mnH2caarCN4trCgV++t9JtUwbbOGS0hvThdtod2J5Bk=",
|
||||
"lastModified": 1731890469,
|
||||
"narHash": "sha256-D1FNZ70NmQEwNxpSSdTXCSklBH1z2isPR84J6DQrJGs=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "3b266ab4521b8e4144b4c552cba978b0c35ef449",
|
||||
"rev": "5083ec887760adfe12af64830a66807423a859a7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
9
go.mod
9
go.mod
@ -1,8 +1,13 @@
|
||||
module github.com/foo-dogsquared/website
|
||||
|
||||
go 1.15
|
||||
go 1.23.2
|
||||
|
||||
toolchain go1.23.3
|
||||
|
||||
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-theme-more-contentful v0.7.1-0.20240829055539-b7c3b8878050 // indirect
|
||||
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.2-0.20241119041335-143341838df0 // 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,7 +1,16 @@
|
||||
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 h1:knvsLW0kTmLxZ7tCKAQgK9M6e8ggjU6NPcmP3HOFKHc=
|
||||
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/go.mod h1:V7UXom6wuFrWj1lBUCXQA3HguwfDhQA+tQNxyRxdClk=
|
||||
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-0.20240829055539-b7c3b8878050/go.mod h1:Rbsgp6Kdi2jVmAILYZTgCysqU4xvoLFwvrR0nvpSr4I=
|
||||
github.com/refactoringui/heroicons v2.0.18+incompatible/go.mod h1:82HsLWQga7MkEl5aK8TctxPPIBlXrsyWcVTB57uipuk=
|
||||
github.com/simple-icons/simple-icons v0.0.0-20231022005333-fdbaaa2d5f99/go.mod h1:oOgUUt8yVYOso/wEBi2ojfZP2MU/xxiNccIpaE+jCvE=
|
||||
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.1 h1:5Mu2OBMVHHp1nytCUUFz9EEQ3gTQCBUHsovzaQssnmc=
|
||||
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.2-0.20241119041335-143341838df0 h1:ck2aC9kc4/EUH9mqKzs+bltbJ5LOwC8LlYvqns1KgB4=
|
||||
github.com/foo-dogsquared/hugo-theme-more-contentful v0.7.2-0.20241119041335-143341838df0/go.mod h1:HV3pnAPBJNG6k9bo10wDOkl6rYFib+um2IURlRIlXkg=
|
||||
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>
|
||||
|
||||
<!-- Linking to other languages' homepage. -->
|
||||
{{ if $.Site.IsMultiLingual }}
|
||||
{{ if hugo.IsMultilingual }}
|
||||
<p>{{ T "multilingual" }}:
|
||||
<span class="list site__languages">
|
||||
{{ range $.Site.Languages }}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{- /* Here's where the customized version should be. */ -}}
|
||||
{{ $highlighter := resources.Get "css/rouge.scss" | resources.ToCSS }}
|
||||
{{ $highlighter := resources.Get "css/rouge.scss" | toCSS }}
|
||||
{{- if hugo.IsProduction }}
|
||||
{{ $highlighter = $highlighter | resources.Minify | resources.Fingerprint }}
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user