diff options
-rw-r--r-- | .dir-locals.el | 3 | ||||
-rw-r--r-- | .exrc | 8 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | src/rosetta/bg/messages.gotext.json | 20 | ||||
-rw-r--r-- | src/rosetta/el/messages.gotext.json | 20 | ||||
-rw-r--r-- | src/rosetta/en/messages.gotext.json | 28 | ||||
-rw-r--r-- | src/rosetta/nl/messages.gotext.json | 20 | ||||
-rw-r--r-- | src/templates.go | 9 | ||||
-rw-r--r-- | src/templates/-navbar.html.tmpl | 4 | ||||
-rw-r--r-- | src/templates/coins-designs-be.html.tmpl | 47 | ||||
-rw-r--r-- | src/templates/collecting-vending.html.tmpl | 163 | ||||
-rw-r--r-- | src/templates/collecting.html.tmpl | 76 | ||||
-rw-r--r-- | static/designs/be-100-albert-1.avif | bin | 0 -> 30583 bytes | |||
-rw-r--r-- | static/designs/be-100-albert-2.avif | bin | 0 -> 26670 bytes | |||
-rw-r--r-- | static/designs/be-100-philippe.avif | bin | 0 -> 19195 bytes |
15 files changed, 384 insertions, 17 deletions
diff --git a/.dir-locals.el b/.dir-locals.el index 71f9481..0309516 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -4,4 +4,5 @@ (expand-file-name "contrib/emacs" (locate-dominating-file default-directory "contrib/emacs"))) - (require 'mintage-mode)))))) + (require 'mintage-mode))))) + (go-ts-mode . ((require-final-newline . t))))
\ No newline at end of file @@ -1,9 +1,5 @@ set runtimepath+=contrib/vim -" We make use of this feature, so set this in the environment so that all -" Ex-calls to templ are aware of this -call setenv('TEMPL_EXPERIMENT', 'rawgo') - function s:SaveExcursion(cmd) let l:win = winsaveview() silent execute 'keepjumps %!' .. a:cmd @@ -22,11 +18,9 @@ autocmd FileType go autocmd BufWritePre <buffer> \ call s:SaveExcursion('gofmt -s') autocmd FileType mintage autocmd BufWritePre <buffer> \ call s:SaveExcursion('./mfmt') -autocmd FileType templ autocmd BufWritePre <buffer> - \ call s:SaveExcursion('templ fmt') nnoremap <silent> gM :wall \| make all-i18n<CR> nnoremap <silent> <LocalLeader>t :vimgrep /\CTODO/ **/*<CR> let &wildignore = netrw_gitignore#Hide() . ',.git/*,vendor/*' -let g:netrw_list_hide .= ',.*\\.gen\\..*,.*_templ\\.go$' +let g:netrw_list_hide .= ',.*\\.gen\\..*'
\ No newline at end of file @@ -8,8 +8,7 @@ mfmt # Autogenerated files out.gotext.json *.gen.* -*_templ.go # Build artifacts *.min.css -*.tar.gz +*.tar.gz
\ No newline at end of file diff --git a/src/rosetta/bg/messages.gotext.json b/src/rosetta/bg/messages.gotext.json index 51896f9..6734701 100644 --- a/src/rosetta/bg/messages.gotext.json +++ b/src/rosetta/bg/messages.gotext.json @@ -342,6 +342,26 @@ "translation": "" }, { + "id": "Belgian Euro Coin Designs", + "message": "Belgian Euro Coin Designs", + "translation": "" + }, + { + "id": "Since 1999 Belgium has released three series of euro coins, which each series having a single design repeated on all denominations. Starting in 1999 the Belgian euro coins featured the portrait of King Albert II with the %sroyal monogram%s in the outer ring of the coins.", + "message": "Since 1999 Belgium has released three series of euro coins, which each series having a single design repeated on all denominations. Starting in 1999 the Belgian euro coins featured the portrait of King Albert II with the %sroyal monogram%s in the outer ring of the coins.", + "translation": "" + }, + { + "id": "In 2008 a second series of coins was released featuring a slightly-modified design in which the royal monogram was moved to the inner portion of the coin along with the year of mintage in order to comply with the European Commission’s guidelines. The country code ‘BE’ was also added to the design underneath the royal monogram.", + "message": "In 2008 a second series of coins was released featuring a slightly-modified design in which the royal monogram was moved to the inner portion of the coin along with the year of mintage in order to comply with the European Commission’s guidelines. The country code ‘BE’ was also added to the design underneath the royal monogram.", + "translation": "" + }, + { + "id": "After his accession to the throne Belgium began a third series of coins in 2014 featuring the portrait of King Philippe. As is customary with coins bearing the portraits of monarchs, the direction in which the portrait faces was flipped to face right instead of left.", + "message": "After his accession to the throne Belgium began a third series of coins in 2014 featuring the portrait of King Philippe. As is customary with coins bearing the portraits of monarchs, the direction in which the portrait faces was flipped to face right instead of left.", + "translation": "" + }, + { "id": "Croatian Euro Coin Designs", "message": "Croatian Euro Coin Designs", "translation": "" diff --git a/src/rosetta/el/messages.gotext.json b/src/rosetta/el/messages.gotext.json index aaa31a5..073c899 100644 --- a/src/rosetta/el/messages.gotext.json +++ b/src/rosetta/el/messages.gotext.json @@ -342,6 +342,26 @@ "translation": "" }, { + "id": "Belgian Euro Coin Designs", + "message": "Belgian Euro Coin Designs", + "translation": "" + }, + { + "id": "Since 1999 Belgium has released three series of euro coins, which each series having a single design repeated on all denominations. Starting in 1999 the Belgian euro coins featured the portrait of King Albert II with the %sroyal monogram%s in the outer ring of the coins.", + "message": "Since 1999 Belgium has released three series of euro coins, which each series having a single design repeated on all denominations. Starting in 1999 the Belgian euro coins featured the portrait of King Albert II with the %sroyal monogram%s in the outer ring of the coins.", + "translation": "" + }, + { + "id": "In 2008 a second series of coins was released featuring a slightly-modified design in which the royal monogram was moved to the inner portion of the coin along with the year of mintage in order to comply with the European Commission’s guidelines. The country code ‘BE’ was also added to the design underneath the royal monogram.", + "message": "In 2008 a second series of coins was released featuring a slightly-modified design in which the royal monogram was moved to the inner portion of the coin along with the year of mintage in order to comply with the European Commission’s guidelines. The country code ‘BE’ was also added to the design underneath the royal monogram.", + "translation": "" + }, + { + "id": "After his accession to the throne Belgium began a third series of coins in 2014 featuring the portrait of King Philippe. As is customary with coins bearing the portraits of monarchs, the direction in which the portrait faces was flipped to face right instead of left.", + "message": "After his accession to the throne Belgium began a third series of coins in 2014 featuring the portrait of King Philippe. As is customary with coins bearing the portraits of monarchs, the direction in which the portrait faces was flipped to face right instead of left.", + "translation": "" + }, + { "id": "Croatian Euro Coin Designs", "message": "Croatian Euro Coin Designs", "translation": "" diff --git a/src/rosetta/en/messages.gotext.json b/src/rosetta/en/messages.gotext.json index 1e7e764..d2cb2d4 100644 --- a/src/rosetta/en/messages.gotext.json +++ b/src/rosetta/en/messages.gotext.json @@ -478,6 +478,34 @@ "fuzzy": true }, { + "id": "Belgian Euro Coin Designs", + "message": "Belgian Euro Coin Designs", + "translation": "Belgian Euro Coin Designs", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "Since 1999 Belgium has released three series of euro coins, which each series having a single design repeated on all denominations. Starting in 1999 the Belgian euro coins featured the portrait of King Albert II with the %sroyal monogram%s in the outer ring of the coins.", + "message": "Since 1999 Belgium has released three series of euro coins, which each series having a single design repeated on all denominations. Starting in 1999 the Belgian euro coins featured the portrait of King Albert II with the %sroyal monogram%s in the outer ring of the coins.", + "translation": "Since 1999 Belgium has released three series of euro coins, which each series having a single design repeated on all denominations. Starting in 1999 the Belgian euro coins featured the portrait of King Albert II with the %sroyal monogram%s in the outer ring of the coins.", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "In 2008 a second series of coins was released featuring a slightly-modified design in which the royal monogram was moved to the inner portion of the coin along with the year of mintage in order to comply with the European Commission’s guidelines. The country code ‘BE’ was also added to the design underneath the royal monogram.", + "message": "In 2008 a second series of coins was released featuring a slightly-modified design in which the royal monogram was moved to the inner portion of the coin along with the year of mintage in order to comply with the European Commission’s guidelines. The country code ‘BE’ was also added to the design underneath the royal monogram.", + "translation": "In 2008 a second series of coins was released featuring a slightly-modified design in which the royal monogram was moved to the inner portion of the coin along with the year of mintage in order to comply with the European Commission’s guidelines. The country code ‘BE’ was also added to the design underneath the royal monogram.", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { + "id": "After his accession to the throne Belgium began a third series of coins in 2014 featuring the portrait of King Philippe. As is customary with coins bearing the portraits of monarchs, the direction in which the portrait faces was flipped to face right instead of left.", + "message": "After his accession to the throne Belgium began a third series of coins in 2014 featuring the portrait of King Philippe. As is customary with coins bearing the portraits of monarchs, the direction in which the portrait faces was flipped to face right instead of left.", + "translation": "After his accession to the throne Belgium began a third series of coins in 2014 featuring the portrait of King Philippe. As is customary with coins bearing the portraits of monarchs, the direction in which the portrait faces was flipped to face right instead of left.", + "translatorComment": "Copied from source.", + "fuzzy": true + }, + { "id": "Croatian Euro Coin Designs", "message": "Croatian Euro Coin Designs", "translation": "Croatian Euro Coin Designs", diff --git a/src/rosetta/nl/messages.gotext.json b/src/rosetta/nl/messages.gotext.json index 2bcc889..b4932f6 100644 --- a/src/rosetta/nl/messages.gotext.json +++ b/src/rosetta/nl/messages.gotext.json @@ -342,6 +342,26 @@ "translation": "" }, { + "id": "Belgian Euro Coin Designs", + "message": "Belgian Euro Coin Designs", + "translation": "" + }, + { + "id": "Since 1999 Belgium has released three series of euro coins, which each series having a single design repeated on all denominations. Starting in 1999 the Belgian euro coins featured the portrait of King Albert II with the %sroyal monogram%s in the outer ring of the coins.", + "message": "Since 1999 Belgium has released three series of euro coins, which each series having a single design repeated on all denominations. Starting in 1999 the Belgian euro coins featured the portrait of King Albert II with the %sroyal monogram%s in the outer ring of the coins.", + "translation": "" + }, + { + "id": "In 2008 a second series of coins was released featuring a slightly-modified design in which the royal monogram was moved to the inner portion of the coin along with the year of mintage in order to comply with the European Commission’s guidelines. The country code ‘BE’ was also added to the design underneath the royal monogram.", + "message": "In 2008 a second series of coins was released featuring a slightly-modified design in which the royal monogram was moved to the inner portion of the coin along with the year of mintage in order to comply with the European Commission’s guidelines. The country code ‘BE’ was also added to the design underneath the royal monogram.", + "translation": "" + }, + { + "id": "After his accession to the throne Belgium began a third series of coins in 2014 featuring the portrait of King Philippe. As is customary with coins bearing the portraits of monarchs, the direction in which the portrait faces was flipped to face right instead of left.", + "message": "After his accession to the throne Belgium began a third series of coins in 2014 featuring the portrait of King Philippe. As is customary with coins bearing the portraits of monarchs, the direction in which the portrait faces was flipped to face right instead of left.", + "translation": "" + }, + { "id": "Croatian Euro Coin Designs", "message": "Croatian Euro Coin Designs", "translation": "" diff --git a/src/templates.go b/src/templates.go index 5a4d7c5..4c37af1 100644 --- a/src/templates.go +++ b/src/templates.go @@ -22,8 +22,8 @@ var ( templateFS embed.FS notFoundTmpl = buildTemplate("-404") errorTmpl = buildTemplate("-error") - templates map[string]*template.Template - funcmap = map[string]any{ + templates map[string]*template.Template + funcmap = map[string]any{ "denoms": denoms, "locales": locales, "safe": asHTML, @@ -41,12 +41,11 @@ func init() { templates = make(map[string]*template.Template, len(ents)) for _, e := range ents { path := "/" - name, _ := strings.CutSuffix(e.Name(), ".html.tmpl") + name := strings.TrimSuffix(e.Name(), ".html.tmpl") switch { case name[0] == '-': continue - case name == "index": - default: + case name != "index": path += strings.ReplaceAll(name, "-", "/") } templates[path] = buildTemplate(name) diff --git a/src/templates/-navbar.html.tmpl b/src/templates/-navbar.html.tmpl index 90f3cc7..b0b1130 100644 --- a/src/templates/-navbar.html.tmpl +++ b/src/templates/-navbar.html.tmpl @@ -3,7 +3,7 @@ <menu> <li><a href="/">{{ .T "Home" }}</a></li> <li><a href="#TODO">{{ .T "News" }}</a></li> - <li><a href="#TODO">{{ .T "Coin Collecting" }}</a></li> + <li><a href="/collecting">{{ .T "Coin Collecting" }}</a></li> <li><a href="/coins">{{ .T "Coins" }}</a></li> <li><a href="#TODO">{{ .T "Banknotes" }}</a></li> <li><a href="/jargon">{{ .T "Jargon" }}</a></li> @@ -225,4 +225,4 @@ </li> </menu> </nav> -{{ end }} +{{ end }}
\ No newline at end of file diff --git a/src/templates/coins-designs-be.html.tmpl b/src/templates/coins-designs-be.html.tmpl new file mode 100644 index 0000000..22f533f --- /dev/null +++ b/src/templates/coins-designs-be.html.tmpl @@ -0,0 +1,47 @@ +{{ define "content" }} +<header> + {{ template "navbar" . }} + <h1>{{ .T "Belgian Euro Coin Designs" }}</h1> +</header> +<main> + <div class="design-container"> + <img alt="Belgian 1 euro coin" src="/designs/be-100-albert-1.avif"> + <img alt="Belgian 1 euro coin" src="/designs/be-100-albert-2.avif"> + <img alt="Belgian 1 euro coin" src="/designs/be-100-philippe.avif"> + </div> + <p> + {{ .T ` + Since 1999 Belgium has released three series of euro coins, + which each series having a single design repeated on all + denominations. Starting in 1999 the Belgian euro coins + featured the portrait of King Albert II with the %sroyal + monogram%s in the outer ring of the coins. + ` + `<a + target="_blank" + href="https://www.wikipedia.org/wiki/Royal_cypher" + >` + `</a>` + }} + </p> + <p> + {{ .T ` + In 2008 a second series of coins was released featuring a + slightly-modified design in which the royal monogram was + moved to the inner portion of the coin along with the year of + mintage in order to comply with the European Commission’s + guidelines. The country code ‘BE’ was also added to the + design underneath the royal monogram. + ` }} + </p> + <p> + {{ .T ` + After his accession to the throne Belgium began a third + series of coins in 2014 featuring the portrait of King + Philippe. As is customary with coins bearing the portraits + of monarchs, the direction in which the portrait faces was + flipped to face right instead of left. + ` }} + </p> +</main> +{{ end }} diff --git a/src/templates/collecting-vending.html.tmpl b/src/templates/collecting-vending.html.tmpl new file mode 100644 index 0000000..5fcfd0c --- /dev/null +++ b/src/templates/collecting-vending.html.tmpl @@ -0,0 +1,163 @@ +{{ define "content" }} +<header> + {{ template "navbar" . }} + <h1>{{ .T "Euro Coin Collecting" }}</h1> +</header> +<main> + <h2>{{ .T "What is Vending Machine Hunting?" }}</h2> + <p> + {{ .T ` + ‘Vending machine hunting’ is a strategy of collecting coins + whereby you continuously insert coins into a vending machine + and cancel the transaction by pressing the return button. + When the vending machine returns your coins to you, you will + often get different coins from the ones you put in, and you + can repeat this process until you’ve searched through every + coin in the machine. + ` }} + </p> + + <h2>{{ .T "The Test Coins" }}</h2> + <p> + {{ .T ` + First, you want to make sure the vending machine you come + across actually gives back change — sometimes they don’t! + Throw in a 10 cent coin and press the return button. If it + doesn’t give the coin back, you can move on to the next + machine; there’s a high chance it won’t return higher + denominations either. Next throw in a random 2 euro coin and + press the return button. You should do this because vending + machines may not return 2 euro coins, but rather 1 euro- or + 50 cent coins instead. It’s better to find out immediately + as opposed to later once you’ve already put in all of your 2 + euro coins. + ` }} + </p> + + <h2>{{ .T "The Stopper" }}</h2> + <p> + {{ .T ` + We want to be able to know when we’ve gone through all the + coins in the vending machine. To do this, take out a coin + and mark it with something (drawing on it with a Sharpie + works well), then put it into the machine. Next time you get + the same coin back, you know you’ve gone through everything. + ` }} + </p> + + <h2>{{ .T "Rejected Stoppers and Coins" }}</h2> + <p> + {{ .T ` + Sometimes you may throw a stopper in, but you hear a ‘clunk’ + sound, as if the coin was dropped into a box (normally adding + a coin should be silent after you throw it in). This means + the coin was not added to the stack properly, and so it will + not be returned. Pay attention to this noise, because you + won’t be getting the stopper back! Throw in another marked + coin instead until the machine accepts the coin. + ` }} + </p> + + <h2>{{ .T "(Non-)Merging Machines" }}</h2> + <p> + {{ .T ` + We generally identify between two main types of vending + machines. + ` }} + </p> + <dl> + <dt>{{ .T "Merging" }}</dt> + <dd> + {{ .T ` + The vending machine merges change together. For example + if you throw in five 50 cent coins, the machine returns + either two 1 euro coins and one 50 cent coin or one 2 + euro and one 50 cent coin. This usually means you can + hunt 2 euro coins very quickly but other denominations + only once at a time. A good tip is to throw in an odd + number of euros and 80 cents if you want to search + through all denominations. + ` }} + </dd> + <dt>{{ .T "Non-Merging" }}</dt> + <dd> + {{ .T ` + The vending machine does not merge change together. This + means if you throw in five 50 cent coins it will return + five 50 cent coins. This makes it very easy to hunt a + large amount of a specific denomination. + ` }} + </dd> + </dl> + + <h2>{{ .T "Limits" }}</h2> + <p> + {{ .T ` + There are some limits to vending machine hunts which you need + to be aware of. + ` }} + </p> + <dl> + <dt>{{ .T "Maximum Input Limit" }}</dt> + <dd> + {{ .T ` + Some machines have a maximum amount you can throw in, and + will reject anything higher. For example machines with a + max limit of five euros will reject any additional coins + if you throw in five euros. You can try to go above the + limit if you throw in, say, %s and then another one- or + two euro coin; the machine will probably accept it. + ` (.Printer.M 4.80 false) }} + </dd> + <dt>{{ .T "Maximum Change Limit" }}</dt> + <dd> + <p> + {{ .T ` + Some machines will either give back large amounts of + change in bills or will not give back large amounts + of change at all (usually cigarette machines). Read + the labels on all machines carefully since these + limits are usually written there. + ` }} + </p> + <p> + {{ .T ` + Even if no limits are listed, it’s still advised that + you exercise caution: it is not uncommon for a + vending machine to steal your money. In the case + that a vending machine does steal your money, look + for a label on the machine that contains a support + number. + ` }} + </p> + <p> + {{ .T ` + For information on Austrian cigarette machines, see + the ‘%sCigarette Machines%s’ section. + ` `<a href="#ciggy">` `</a>` | safe }} + </p> + </dd> + </dl> + + <h2 id="ciggy">{{ .T "Cigarette Machines" }}</h2> + <p> + {{ .T ` + In some countries where cigarette machines are legal, you can + hunt through them as well. Unless you’re in Malta, you must + verify your age on them by either sliding an ID card through + a sensor or holding a debit card on an RFID scanner; you must + do this for every cycle. Sometimes you must also select + something to purchase, throw in less money than the cost, and + then cancel the purchase. Note that most cigarette machines + in Austria have a %s max change limit. + ` (.Printer.M 4.90 false) }} + </p> + <p> + {{ .T ` + For RFID scanner machines it helps to wear a glove and slide + a debit card into the back of it so you can easily use both + hands and don’t have to fumble with a card and coins. + ` }} + </p> +</main> +{{ end }}
\ No newline at end of file diff --git a/src/templates/collecting.html.tmpl b/src/templates/collecting.html.tmpl new file mode 100644 index 0000000..aacb442 --- /dev/null +++ b/src/templates/collecting.html.tmpl @@ -0,0 +1,76 @@ +{{ define "content" }} +<header> + {{ template "navbar" . }} + <h1>{{ .T "Euro Coin Collecting" }}</h1> +</header> +<main> + <p> + {{ .T ` + On this section of the site you can find everything there is + to know about collecting Euro coins. If this is a hobby that + interests you, join the Discord server linked at the top of + the page! + ` }} + </p> + <hr> + <section> + <div class="grid"> + <a class="no-deco" href="/collecting/crh"> + <article> + <header> + <h3>{{ .T "Coin Roll Hunting" }}</h3> + </header> + <main> + {{ .T ` + Learn about collecting coins from coin rolls! + ` }} + </main> + </article> + </a> + <a class="no-deco" href="/collecting/storage"> + <article> + <header> + <h3>{{ .T "Coin Storage" }}</h3> + </header> + <main> + {{ .T ` + Learn about the different methods to storing + your collection! + `}} + </main> + </article> + </a> + <!-- TODO: Implement the shop hunting page --> + <a class="no-deco" href="#"> + <article> + <header> + <h3>{{ .T "Shop Hunting" }}</h3> + </header> + <main> + {{ .T ` + Learn about how to collect coins from + shop-keepers and other people who deal in + cash! + ` }} + </main> + </article> + </a> + </div> + <div class="grid"> + <a class="no-deco" href="/collecting/vending"> + <article> + <header> + <h3>{{ .T "Vending Machine Hunting" }}</h3> + </header> + <main> + {{ .T ` + Learn about collecting coins from vending + machines! + ` }} + </main> + </article> + </a> + </div> + </section> +</main> +{{ end }}
\ No newline at end of file diff --git a/static/designs/be-100-albert-1.avif b/static/designs/be-100-albert-1.avif Binary files differnew file mode 100644 index 0000000..250d914 --- /dev/null +++ b/static/designs/be-100-albert-1.avif diff --git a/static/designs/be-100-albert-2.avif b/static/designs/be-100-albert-2.avif Binary files differnew file mode 100644 index 0000000..e328652 --- /dev/null +++ b/static/designs/be-100-albert-2.avif diff --git a/static/designs/be-100-philippe.avif b/static/designs/be-100-philippe.avif Binary files differnew file mode 100644 index 0000000..2e8486f --- /dev/null +++ b/static/designs/be-100-philippe.avif |