diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed1ef77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.git/ +.idea/ +.hugo_build.lock +public/ diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..2fc2f53 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +tags: [] +draft: false +--- \ No newline at end of file diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..dda4543 --- /dev/null +++ b/config.toml @@ -0,0 +1,16 @@ +baseURL = 'https://ataricode.com/' +languageCode = 'en-us' +title = 'Atari Code' + + +[permalinks] + blog = "/:filename/" + +[params] + logo = "img/atari-symbol-only-no-background.png" + titleLink = "https://ataricode.com/" + subtitle = "A site devoted to learning to code on Atari 8-Bit computers." + home = "/" + blog = "/blog/" + links = "/links/" + videos = "https://odysee.com/@ataricode:0?view=content" diff --git a/content/blog/post-1.md b/content/blog/post-1.md new file mode 100644 index 0000000..440ffa4 --- /dev/null +++ b/content/blog/post-1.md @@ -0,0 +1,9 @@ +--- +title: "Post 1" +date: 2023-01-24T13:52:16Z +tags: ["post"] +description: The first post +draft: false +--- + +This is a test diff --git a/content/blog/post-2.md b/content/blog/post-2.md new file mode 100644 index 0000000..cd95f29 --- /dev/null +++ b/content/blog/post-2.md @@ -0,0 +1,9 @@ +--- +title: "Post 2" +date: 2023-01-24T13:52:30Z +tags: ["post"] +description: The second post +draft: false +--- + +This is a test \ No newline at end of file diff --git a/content/blog/post-3.md b/content/blog/post-3.md new file mode 100644 index 0000000..101369a --- /dev/null +++ b/content/blog/post-3.md @@ -0,0 +1,9 @@ +--- +title: "Post 3" +date: 2023-01-24T13:52:39Z +tags: ["post"] +description: The third post +draft: false +--- + +This is a test \ No newline at end of file diff --git a/content/links.md b/content/links.md new file mode 100644 index 0000000..4dd9738 --- /dev/null +++ b/content/links.md @@ -0,0 +1,4 @@ +--- +title: Links +description: Useful resources for Atarians +--- diff --git a/index.html b/index.html deleted file mode 100644 index c675f40..0000000 --- a/index.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - Atari Code - - - - - - - - -
- - - - - -
- - -

Atari Code

-
-
-

A site devoted to learning to code on the Atari 8-Bit line of computers

- -
- - - - -
- - - -
-

H1 Test Text

-

Some standard text.

-

Some small text

-

Some very tiny text

-
- - -
-
-

Attention!

-

Hello, this is a highlighted notice!

-
- -
-

H2 Test Text

-

Some standard text.

-

Some small text

-

Some very tiny text

-
-
- -

H3 Test Text

-

Some standard text.

-

Some small text

-

Some very tiny text

- -

H4 Test Text

-

Here is a code block:

-
-100 REM PLAYER/MISSILE EXAMPLE
-110 DIM A$(512),B$(20)
-120 X=X+1:READ A:IF A<>-1 THEN B$(X,X)=CHR$(A):GOTO 120
-130 DATA 0,255,129,129,129,129,129,129,129,129,255,0,-1
-2000 POKE 559,62:POKE 704,88
-2020 I=PEEK(106)-16:POKE 54279,I
-2030 POKE 53277,3:POKE 710,224
-2040 VTAB=PEEK(134)+PEEK(135)*256
-2050 ATAB=PEEK(140)+PEEK(141)*256
-2060 OFFS=I*256+1024-ATAB
-2070 HI=INT(OFFS/256):LO=OFFS-HI*256
-2090 POKE VTAB+2,LO:POKE VTAB+3,HI
-3000 Y=60:Z=100:V=1:H=1
-4000 A$(Y,Y+11)=B$:POKE 53248,Z
-4010 Y=Y+V:Z=Z+H
-4020 IF Y>213 OR Y<33 THEN V=-V
-4030 IF Z>206 OR Z<49 THEN H=-H
-4420 GOTO 4000
-  
- -

Here is some p3 text. It will be interesting to see how this text is rendered.

- - - diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..091ffae --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,12 @@ + + +{{ partial "head.html"}} + + +
+
+ {{ block "main" . }}{{ end }} +
+
+ + \ No newline at end of file diff --git a/layouts/_default/li.html b/layouts/_default/li.html new file mode 100644 index 0000000..323f851 --- /dev/null +++ b/layouts/_default/li.html @@ -0,0 +1,9 @@ +
  • + {{ if isset .Params "image" }} + + {{ else }} + + {{end}} + - {{ .Title }} +
  • diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..87f8a3f --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,17 @@ +{{ define "main" }} + +

    Recent Posts

    +

    Things I've been working on

    +{{ partial "nav.html" . }} + +
    + {{ range .Data.Pages.GroupByDate "2006" }} +

    {{ .Key }}

    + + {{ end }} +
    +{{ end}} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..502200a --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,8 @@ + +{{ define "main" }} +

    {{ .Title }}

    +

    {{ .Description }}

    +{{ partial "nav.html" . }} +{{ .Content }} + +{{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..6970401 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,10 @@ +{{ define "main" }} +
    +

    + + {{ .Title }}

    +

    {{ .Site.Params.subtitle | markdownify }}

    + {{ partial "nav.html" . }} +
    +{{ partial "welcome.html" }} +{{ end }} diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html new file mode 100644 index 0000000..f3ff073 --- /dev/null +++ b/layouts/partials/favicon.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..d640fcf --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,8 @@ + + + + {{ $css := "css/index.css" | relURL }} + + {{ .Title }} + {{ partial "favicon.html" . }} + \ No newline at end of file diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html new file mode 100644 index 0000000..63284b7 --- /dev/null +++ b/layouts/partials/nav.html @@ -0,0 +1,7 @@ +
    + + + + +
    + diff --git a/layouts/partials/welcome.html b/layouts/partials/welcome.html new file mode 100644 index 0000000..4225b5b --- /dev/null +++ b/layouts/partials/welcome.html @@ -0,0 +1,80 @@ +
    +

    Welcome!

    +

    + Well, hello there, Atari friends! Thanks for dropping by! This site is a + working record of my attempt to re-educate myself on the Atari 8-Bit + computer, and mainly on its programming languages and capabilities. But, + along the way, I'll be playing games and experimenting with applications, + and looking at other people's projects. So, you may find this interesting, + too! I hope you do. +

    + +

    Some small text

    +

    Some very tiny text

    +
    + + +
    +
    +

    Attention!

    +

    Hello, this is a highlighted notice!

    +
    + +
    +

    H2 Test Text

    +

    Some standard text.

    +

    Some small text

    +

    Some very tiny text

    +
    +
    + +

    H3 Test Text

    +

    Some standard text.

    +

    Some small text

    +

    Some very tiny text

    + +

    H4 Test Text

    +

    Here is a code block:

    +
    +100 REM PLAYER/MISSILE EXAMPLE
    +110 DIM A$(512),B$(20)
    +120 X=X+1:READ A:IF A<>-1 THEN B$(X,X)=CHR$(A):GOTO 120
    +130 DATA 0,255,129,129,129,129,129,129,129,129,255,0,-1
    +2000 POKE 559,62:POKE 704,88
    +2020 I=PEEK(106)-16:POKE 54279,I
    +2030 POKE 53277,3:POKE 710,224
    +2040 VTAB=PEEK(134)+PEEK(135)*256
    +2050 ATAB=PEEK(140)+PEEK(141)*256
    +2060 OFFS=I*256+1024-ATAB
    +2070 HI=INT(OFFS/256):LO=OFFS-HI*256
    +2090 POKE VTAB+2,LO:POKE VTAB+3,HI
    +3000 Y=60:Z=100:V=1:H=1
    +4000 A$(Y,Y+11)=B$:POKE 53248,Z
    +4010 Y=Y+V:Z=Z+H
    +4020 IF Y>213 OR Y<33 THEN V=-V
    +4030 IF Z>206 OR Z<49 THEN H=-H
    +4420 GOTO 4000
    +  
    +

    + Here is a code printout! +

    +
    + 100 REM PLAYER/MISSILE EXAMPLE
    + 110 DIM A$(512),B$(20)
    + 120 X=X+1:READ A:IF A<>-1 THEN B$(X,X)=CHR$(A):GOTO 120
    + 130 DATA 0,255,129,129,129,129,129,129,129,129,255,0,-1
    + 2000 POKE 559,62:POKE 704,88
    + 2020 I=PEEK(106)-16:POKE 54279,I
    + 2030 POKE 53277,3:POKE 710,224
    + 2040 VTAB=PEEK(134)+PEEK(135)*256
    + 2050 ATAB=PEEK(140)+PEEK(141)*256
    + 2060 OFFS=I*256+1024-ATAB
    + 2070 HI=INT(OFFS/256):LO=OFFS-HI*256
    + 2090 POKE VTAB+2,LO:POKE VTAB+3,HI
    + 3000 Y=60:Z=100:V=1:H=1
    + 4000 A$(Y,Y+11)=B$:POKE 53248,Z
    + 4010 Y=Y+V:Z=Z+H
    + 4020 IF Y>213 OR Y<33 THEN V=-V
    + 4030 IF Z>206 OR Z<49 THEN H=-H
    + 4420 GOTO 4000
    +
    \ No newline at end of file diff --git a/css/index.css b/static/css/index.css similarity index 73% rename from css/index.css rename to static/css/index.css index 0d93b97..45fa153 100644 --- a/css/index.css +++ b/static/css/index.css @@ -35,7 +35,7 @@ HTML { background-color: #0a4984; font-size: 2.5vw; - #background-image: url('../assets/Atari_Wallpaper.jpg'); + #background-image: url('../img/Atari_Wallpaper.jpg'); #background-position: 80% 80%; #background-repeat: no-repeat; #background-size: 100%; @@ -43,50 +43,62 @@ HTML @font-face { font-family: 'Atari Classic Extrasmooth'; - src: url('../fonts/ATARCE__.TTF') format('truetype'); + src: url('../font/ATARCE__.TTF') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Atari Classic Smooth'; - src: url('../fonts/ATARCS__.TTF') format('truetype'); + src: url('../font/ATARCS__.TTF') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Atari Full'; - src: url('../fonts/ATARI_FULL.ttf') format('truetype'); + src: url('../font/ATARI_FULL.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Atari Classic Chunky'; - src: url('../fonts/ATARCC__.TTF') format('truetype'); + src: url('../font/ATARCC__.TTF') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Atari Classic Chunky Reverse'; - src: url('../fonts/ATARCC__.TTF') format('truetype'); + src: url('../font/ATARCC__.TTF') format('truetype'); font-weight: normal; font-style: normal; color: black; } @font-face { font-family: 'Atari Tiny'; - src: url('../fonts/atari-small-font.ttf') format('truetype'); + src: url('../font/atari-small-font.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Atarian System Regular'; - src: url('../fonts/sf-atarian-system.regular.ttf') format('truetype'); + src: url('../font/sf-atarian-system.regular.ttf') format('truetype'); font-weight: normal; font-style: normal; } @font-face { font-family: 'Atarian System Bold'; - src: url("../fonts/sf-atarian-system.bold.ttf") format('truetype'); + src: url("../font/sf-atarian-system.bold.ttf") format('truetype'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'Dot Matrix Regular'; + src: url("../font/DOTMATRX.TTF") format('truetype'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: 'Dot Matrix Bold'; + src: url("../font/DOTMBold.TTF") format('truetype'); font-weight: bold; font-style: normal; } @@ -97,12 +109,12 @@ body { margin: 0.5em; padding: 0.5em; color: #afcde9; - /* background-color: #0a4984; */ background-color: #003366; } p { - font-family: 'Atari Classic Smooth'; + font-family: 'Atari Classic Extrasmooth'; + line-height: 1.3; font-size: 0.595em; color: #f2f2f2; } @@ -141,27 +153,46 @@ pre { color: #f2f2f2; } +.codeblock div { + width: 87%; + border: solid yellow 2px; + padding-top: 10px; + padding-bottom: 0px; + padding-left:10px; + margin-left: 25px; + background-color: #004d80; + font-family: 'Atari Classic Chunky'; + font-weight: lighter; + font-size: 0.525em; + line-height: 1.2; + overflow-wrap: break-word; + color: #f2f2f2; +} + .title-wrap { display:flex; justify-content:center; - align-items: center; + align-items: baseline; + alignment-baseline: bottom; } .title-text { width: 100%; - display: inline-block; text-align: center; font-family: 'Atarian System Regular'; font-size: 7.3vw; - line-height: 1.1; + line-height: 1.0; /* #color: #f0e6da; */ color: #fcf4dd; } .title-image { - height:50px; - width:65px; + padding: 0px; + padding-top: 5px; + float: bottom; + height:40px; + width:40px; } .subtitle { @@ -226,6 +257,8 @@ pre { } .button-row button { + font-family: 'Atarian System Regular'; + color: #322918; align-content: center; justify-content: center; cursor: pointer; @@ -260,6 +293,17 @@ pre { padding: 5px; } +.printout { + font-family: 'Dot Matrix Regular'; + font-size: small; + color: black; + width: 65%; + background-color: whitesmoke; + border: 2px solid black; + margin-left: 40px; + box-shadow: 2px 2px darkgray; +} + /* unvisited link */ a:link { @@ -282,7 +326,7 @@ a:active { } H1 { - color: #f0e6da; + color: #d5cdb4; margin-left: auto; margin-right: auto; font-size: 3.5vw; diff --git a/fonts/ATARCC__.TTF b/static/font/ATARCC__.TTF similarity index 100% rename from fonts/ATARCC__.TTF rename to static/font/ATARCC__.TTF diff --git a/fonts/ATARCE__.TTF b/static/font/ATARCE__.TTF similarity index 100% rename from fonts/ATARCE__.TTF rename to static/font/ATARCE__.TTF diff --git a/fonts/ATARCS_.TTF b/static/font/ATARCS_.TTF similarity index 100% rename from fonts/ATARCS_.TTF rename to static/font/ATARCS_.TTF diff --git a/fonts/ATARCS__.TTF b/static/font/ATARCS__.TTF similarity index 100% rename from fonts/ATARCS__.TTF rename to static/font/ATARCS__.TTF diff --git a/fonts/ATARI_FULL.ttf b/static/font/ATARI_FULL.ttf similarity index 100% rename from fonts/ATARI_FULL.ttf rename to static/font/ATARI_FULL.ttf diff --git a/fonts/AtariClassic-Regular.ttf b/static/font/AtariClassic-Regular.ttf similarity index 100% rename from fonts/AtariClassic-Regular.ttf rename to static/font/AtariClassic-Regular.ttf diff --git a/static/font/DOTMATRX.TTF b/static/font/DOTMATRX.TTF new file mode 100644 index 0000000..d691405 Binary files /dev/null and b/static/font/DOTMATRX.TTF differ diff --git a/static/font/DOTMBold.TTF b/static/font/DOTMBold.TTF new file mode 100644 index 0000000..14d252b Binary files /dev/null and b/static/font/DOTMBold.TTF differ diff --git a/static/font/DOTMREG.TTF b/static/font/DOTMREG.TTF new file mode 100644 index 0000000..d81f879 Binary files /dev/null and b/static/font/DOTMREG.TTF differ diff --git a/static/font/DotMatrix_TR.TTF b/static/font/DotMatrix_TR.TTF new file mode 100644 index 0000000..c83a5e3 Binary files /dev/null and b/static/font/DotMatrix_TR.TTF differ diff --git a/fonts/atari-small-font.ttf b/static/font/atari-small-font.ttf similarity index 100% rename from fonts/atari-small-font.ttf rename to static/font/atari-small-font.ttf diff --git a/fonts/sf-atarian-system.bold.ttf b/static/font/sf-atarian-system.bold.ttf similarity index 100% rename from fonts/sf-atarian-system.bold.ttf rename to static/font/sf-atarian-system.bold.ttf diff --git a/fonts/sf-atarian-system.extended.ttf b/static/font/sf-atarian-system.extended.ttf similarity index 100% rename from fonts/sf-atarian-system.extended.ttf rename to static/font/sf-atarian-system.extended.ttf diff --git a/fonts/sf-atarian-system.italic.ttf b/static/font/sf-atarian-system.italic.ttf similarity index 100% rename from fonts/sf-atarian-system.italic.ttf rename to static/font/sf-atarian-system.italic.ttf diff --git a/fonts/sf-atarian-system.regular.ttf b/static/font/sf-atarian-system.regular.ttf similarity index 100% rename from fonts/sf-atarian-system.regular.ttf rename to static/font/sf-atarian-system.regular.ttf diff --git a/assets/AtariLogo.png b/static/img/AtariLogo.png similarity index 100% rename from assets/AtariLogo.png rename to static/img/AtariLogo.png diff --git a/assets/Atari_Wallpaper.jpg b/static/img/Atari_Wallpaper.jpg similarity index 100% rename from assets/Atari_Wallpaper.jpg rename to static/img/Atari_Wallpaper.jpg diff --git a/assets/Ready.png b/static/img/Ready.png similarity index 100% rename from assets/Ready.png rename to static/img/Ready.png diff --git a/assets/atari-rainbow.png b/static/img/atari-rainbow.png similarity index 100% rename from assets/atari-rainbow.png rename to static/img/atari-rainbow.png diff --git a/assets/atari-red-logo.png b/static/img/atari-red-logo.png similarity index 100% rename from assets/atari-red-logo.png rename to static/img/atari-red-logo.png diff --git a/assets/atari-red.png b/static/img/atari-red.png similarity index 100% rename from assets/atari-red.png rename to static/img/atari-red.png diff --git a/static/img/atari-symbol-only-no-background.png b/static/img/atari-symbol-only-no-background.png new file mode 100644 index 0000000..501af8a Binary files /dev/null and b/static/img/atari-symbol-only-no-background.png differ diff --git a/assets/atari-symbol-only.png b/static/img/atari-symbol-only.png similarity index 100% rename from assets/atari-symbol-only.png rename to static/img/atari-symbol-only.png diff --git a/assets/atari-white.png b/static/img/atari-white.png similarity index 100% rename from assets/atari-white.png rename to static/img/atari-white.png diff --git a/assets/blue_atari_logo.png b/static/img/blue_atari_logo.png similarity index 100% rename from assets/blue_atari_logo.png rename to static/img/blue_atari_logo.png