浏览代码

IntJake Working

Fred Damstra (Macbook 2015) 1 年之前
父节点
当前提交
4e4acc1c2b
共有 4 个文件被更改,包括 157 次插入115 次删除
  1. 98 97
      config.toml
  2. 30 0
      content/en/projects/flash/IntJake4.html
  3. 18 18
      content/en/projects/flash/index.md
  4. 11 0
      layouts/partials/footer/scripts.html

+ 98 - 97
config.toml

@@ -1,4 +1,5 @@
-baseURL = 'http://hugo.monkeybox.org/'
+baseURL = 'https://www.monkeybox.org/'
+#baseURL = 'http://hugo.monkeybox.org/'
 languageCode = 'en-us'
 DefaultContentLanguage = "en"
 title = 'Enjoy MonkeyBOX!'
@@ -76,76 +77,76 @@ URL = "s3://hugo.monkeybox.org?region=us-east-2"
 #
 # Copied from the example site
 [params]
-    themeStyle                   = "auto"                  # Choose "light" or "dark" or "auto"
-    favicon                      = "/img/fav.ico"          # Path to favicon file
-    showMenu                     = true                    # Show navigation menu
-    showRSSButton                = false                   # Show rss button in navigation
-    fadeIn                       = true                    # Turn on/off the fade-in effect
-    fadeInIndex                  = false                   # Turn on/off the fade-in effect on the index page even if fade-in was otherwise turned off
-    dateFormat                   = "Jan 2, 2006"
-    email                        = "fred.damstra+hugo@gmail.com"   # E-mail address for contact section
-    # customCSS                  = ["foo.css"]             # Include custom css files placed under assets/
-    # customJS                   = ["foo.js"]              # Include custom JavaScript files placed under assets/
-    # plausible                  = true                    # Use Plausible analytics (requires an account at Plausible.io)
-
-    # Configure the home page
-    [params.home]
-        introHeight              = "fullheight"            # Input either "medium" or "large" or "fullheight"
-        showLatest               = true                    # Show latest blog post summary
-        showAllPosts             = false                   # Set true to list all posts on home page, or set false to link to separate blog list page
-        allPostsArchiveFormat    = true                    # show all posts in an archive format
-        numberOfProjectsToShow   = 3                       # Maximum number of projects to show on home page. Unset or comment out to show all projects
-        localTime                = true                    # Show your current local time in contact section
-        timeZone                 = "America/Detroit"       # Your timezone as in the TZ* column of this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
-        timeFormat               = "en-US"                 # Language specific format to use
-    [params.projects]
-        useTwoColumns            = false                   # Use a layout with two columns instead of three
-
-    # Share buttons on blog post pages
-    [params.share]
-        twitter                  = true
-        facebook                 = true
-        pinterest                = true
-
-    # To enable giscus, the GitHub-discussions-based comment section,
-    # input the repository for the discussions below. For more details, see
-    # https://www.joelnitta.com/posts/2021-11-24_using-giscus/
-    # and https://github.com/giscus/giscus
-    [params.giscus]
-        # repo = "github-user/github-repo" # Entering repo will enable giscus
-        repo-id = "enter-repo-id"
-        category = "Comments"
-        category-id = "enter-category-id"
-        mapping = "pathname"
-        reactions-enabled = "1"
-        emit-metadata = "0"
-        theme = "light"
-        lang = "en"
-
-    # Social icons appear in introduction and contact section. Add as many more as you like.
-    # Icon pack "fab" includes social network icons, see: https://fontawesome.com/icons?d=gallery&s=brands&m=free
-    # Icon pack "fas" includes solid style icons, see: https://fontawesome.com/icons?d=gallery&s=solid&m=free
-    [[params.social]]
-        url   = "https://twitter.com/fdamstra"
-        icon  = "twitter" # icon name without the 'fa-'
-        icon_pack = "fab"
-    [[params.social]]
-        url   = "https://facebook.com/fdamstra"
-        icon  = "facebook-f" # icon name without the 'fa-'
-        icon_pack = "fab"
-    [[params.social]]
-        url   = "https://www.linkedin.com/in/fdamstra/"
-        icon  = "linkedin-in" # icon name without the 'fa-'
-        icon_pack = "fab"
-    #[[params.social]]
-    #    url = "mailto:youremail@email.com"  # For a direct email link, use "mailto:test@example.org".
-    #    icon = "paper-plane" # icon name without the 'fa-'
-    #    icon_pack = "fas"
-    #[[params.social]]
-    #    url   = "https://mastodon.social/"
-    #    icon  = "mastodon" # icon name without the 'fa-'
-    #    icon_pack = "fab"
-    #    html_attributes = "rel=\"me\"" # Add rel attribute for Mastodon profile link verification
+themeStyle                   = "auto"                  # Choose "light" or "dark" or "auto"
+favicon                      = "/img/fav.ico"          # Path to favicon file
+showMenu                     = true                    # Show navigation menu
+showRSSButton                = false                   # Show rss button in navigation
+fadeIn                       = true                    # Turn on/off the fade-in effect
+fadeInIndex                  = false                   # Turn on/off the fade-in effect on the index page even if fade-in was otherwise turned off
+dateFormat                   = "Jan 2, 2006"
+email                        = "fred.damstra+hugo@gmail.com"   # E-mail address for contact section
+# customCSS                  = ["foo.css"]             # Include custom css files placed under assets/
+# customJS                   = ["foo.js"]              # Include custom JavaScript files placed under assets/
+# plausible                  = true                    # Use Plausible analytics (requires an account at Plausible.io)
+
+# Configure the home page
+[params.home]
+introHeight              = "fullheight"            # Input either "medium" or "large" or "fullheight"
+showLatest               = true                    # Show latest blog post summary
+showAllPosts             = false                   # Set true to list all posts on home page, or set false to link to separate blog list page
+allPostsArchiveFormat    = true                    # show all posts in an archive format
+numberOfProjectsToShow   = 3                       # Maximum number of projects to show on home page. Unset or comment out to show all projects
+localTime                = true                    # Show your current local time in contact section
+timeZone                 = "America/Detroit"       # Your timezone as in the TZ* column of this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
+timeFormat               = "en-US"                 # Language specific format to use
+[params.projects]
+useTwoColumns            = false                   # Use a layout with two columns instead of three
+
+# Share buttons on blog post pages
+[params.share]
+twitter                  = true
+facebook                 = true
+pinterest                = true
+
+# To enable giscus, the GitHub-discussions-based comment section,
+# input the repository for the discussions below. For more details, see
+# https://www.joelnitta.com/posts/2021-11-24_using-giscus/
+# and https://github.com/giscus/giscus
+[params.giscus]
+# repo = "github-user/github-repo" # Entering repo will enable giscus
+repo-id = "enter-repo-id"
+category = "Comments"
+category-id = "enter-category-id"
+mapping = "pathname"
+reactions-enabled = "1"
+emit-metadata = "0"
+theme = "light"
+lang = "en"
+
+# Social icons appear in introduction and contact section. Add as many more as you like.
+# Icon pack "fab" includes social network icons, see: https://fontawesome.com/icons?d=gallery&s=brands&m=free
+# Icon pack "fas" includes solid style icons, see: https://fontawesome.com/icons?d=gallery&s=solid&m=free
+[[params.social]]
+url   = "https://twitter.com/fdamstra"
+icon  = "twitter" # icon name without the 'fa-'
+icon_pack = "fab"
+[[params.social]]
+url   = "https://facebook.com/fdamstra"
+icon  = "facebook-f" # icon name without the 'fa-'
+icon_pack = "fab"
+[[params.social]]
+url   = "https://www.linkedin.com/in/fdamstra/"
+icon  = "linkedin-in" # icon name without the 'fa-'
+icon_pack = "fab"
+#[[params.social]]
+#    url = "mailto:youremail@email.com"  # For a direct email link, use "mailto:test@example.org".
+#    icon = "paper-plane" # icon name without the 'fa-'
+#    icon_pack = "fas"
+#[[params.social]]
+#    url   = "https://mastodon.social/"
+#    icon  = "mastodon" # icon name without the 'fa-'
+#    icon_pack = "fab"
+#    html_attributes = "rel=\"me\"" # Add rel attribute for Mastodon profile link verification
 
 
 # If you don't want to use the default menu, you can define one by yourself
@@ -161,36 +162,36 @@ URL = "s3://hugo.monkeybox.org?region=us-east-2"
 # We only use tag as a taxonomies
 # You can add more by yourself
 [taxonomies]
-  tag = "tags"
-  series = "series"
+tag = "tags"
+series = "series"
 
 [markup]
-  defaultMarkdownHandler = "goldmark"
-  [markup.goldmark]
-  [markup.goldmark.renderer]
-    unsafe = true
-  [markup.highlight]
-    codeFences = true
-    guessSyntax = false
-    hl_Lines = ""
-    lineNoStart = 1
-    lineNos = false
-    lineNumbersInTable = true
-    # noClasses = true
-    # For styles, see https://xyproto.github.io/splash/docs/longer/all.html
-    style = "solarized-dark"
-    tabWidth = 4
+defaultMarkdownHandler = "goldmark"
+[markup.goldmark]
+[markup.goldmark.renderer]
+unsafe = true
+[markup.highlight]
+codeFences = true
+guessSyntax = false
+hl_Lines = ""
+lineNoStart = 1
+lineNos = false
+lineNumbersInTable = true
+# noClasses = true
+# For styles, see https://xyproto.github.io/splash/docs/longer/all.html
+style = "solarized-dark"
+tabWidth = 4
 
 [languages]
-    [languages.en]
-        languageName     = "English"
-        languageCode     = "en-us"
-        contentDir       = "content/en"
-        weight           = 0
-        title            = "Enjoy MonkeyBOX"
-        [languages.en.params]
-            description  = "MonkeyBOX Entertainment Group"   # Max 160 characters show in search results
-            # footerText   = ""                              # Text to override default footer text (markdown allowed)
+[languages.en]
+languageName     = "English"
+languageCode     = "en-us"
+contentDir       = "content/en"
+weight           = 0
+title            = "Enjoy MonkeyBOX"
+[languages.en.params]
+description  = "MonkeyBOX Entertainment Group"   # Max 160 characters show in search results
+# footerText   = ""                              # Text to override default footer text (markdown allowed)
 
 #    [languages.es]
 #        languageName     = "Español"

+ 30 - 0
content/en/projects/flash/IntJake4.html

@@ -0,0 +1,30 @@
+<!DOCTYPE HTML>
+<html>
+    <head>
+        <meta charset='utf8'>
+    </head>
+    <body>
+    <script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
+      <div id="container"> </div>
+
+
+    <script>
+        window.RufflePlayer = window.RufflePlayer || {};
+        window.RufflePlayer.config = {
+            autoplay: "on"
+        };
+        window.addEventListener("load", (event) => {
+            const ruffle = window.RufflePlayer.newest();
+            const player = ruffle.createPlayer();
+            const container = document.getElementById("container");
+            container.appendChild(player);
+            player.load({
+                url: "IntJake4.swf",
+                backgroundColor: "#FFFFFF",
+             });
+            player.style.width = "100vw";
+            player.style.height = "100vh";
+        });
+    </script>
+    </body>
+</html>

+ 18 - 18
content/en/projects/flash/index.md

@@ -28,21 +28,21 @@ resources:
           weight: -100 # Optional weighting for a specific image in this project folder
 draft: false
 ---
-* [FredvsCurry](FredvsCurry.swf)
-* [IntJake4](IntJake4.swf)
-* [curry](curry.swf)
-* [dance](dance.swf)
-* [db](db.swf)
-* [fight](fight.swf)
-* [happy birthday](happy%20birthday.swf)
-* [interactivej](interactivej.swf)
-* [intjake3](intjake3.swf)
-* [jake](jake.swf)
-* [mbox_anim](mbox_anim.swf)
-* [nerdwars](nerdwars.swf)
-* [nerdwars3](nerdwars3.swf)
-* [newnerdwars](newnerdwars.swf)
-* [pfunk](pfunk.swf)
-* [sample](sample.swf)
-* [vegas](vegas.swf)
-* [wormin](wormin.swf)
+* [FredvsCurry](projects/flash/FredvsCurry.swf)
+* [IntJake4](projects/flash/IntJake4.html)
+* [curry](projects/flash/curry.swf)
+* [dance](projects/flash/dance.swf)
+* [db](projects/flash/db.swf)
+* [fight](projects/flash/fight.swf)
+* [happy birthday](projects/flash/happy%20birthday.swf)
+* [interactivej](projects/flash/interactivej.swf)
+* [intjake3](projects/flash/intjake3.swf)
+* [jake](projects/flash/jake.swf)
+* [mbox_anim](projects/flash/mbox_anim.swf)
+* [nerdwars](projects/flash/nerdwars.swf)
+* [nerdwars3](projects/flash/nerdwars3.swf)
+* [newnerdwars](projects/flash/newnerdwars.swf)
+* [pfunk](projects/flash/pfunk.swf)
+* [sample](projects/flash/sample.swf)
+* [vegas](projects/flash/vegas.swf)
+* [wormin](projects/flash/wormin.swf)

+ 11 - 0
layouts/partials/footer/scripts.html

@@ -0,0 +1,11 @@
+{{ $jQuery := resources.Get "vendor/jquery/jquery-3.5.1.min.js" }}
+{{ $index := resources.Get "js/index.js" | minify }}
+{{ $scripts := slice $jQuery $index | resources.Concat "js/bundle.js" | fingerprint }}
+<script src="{{ $scripts.Permalink }}" integrity="{{ $scripts.Data.Integrity }}"></script>
+<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
+
+<!-- Custom JavaScript -->
+{{ range .Site.Params.customJS -}}
+{{ $script := resources.Get . | minify }}
+<script src="{{ $script.Permalink }}" integrity="{{ $script.Data.Integrity }}"></script>
+{{- end }}