diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..90774f36 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.DS_Store +public +node_modules +resources +.hugo_build.lock diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..426d9363 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "themes/blowfish"] + path = themes/blowfish + url = https://github.com/nunocoracao/blowfish.git + branch = main diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 00000000..00e77bd7 --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/assets/css/schemes/espressif.css b/assets/css/schemes/espressif.css new file mode 100644 index 00000000..88bb09d7 --- /dev/null +++ b/assets/css/schemes/espressif.css @@ -0,0 +1,53 @@ +:root { + --color-neutral: 255, 255, 255; + /* Gray */ + --color-neutral-50: 238, 243, 246; + --color-neutral-100: 222, 231, 237; + --color-neutral-200: 189, 208, 219; + --color-neutral-300: 156, 184, 201; + --color-neutral-400: 122, 160, 184; + --color-neutral-500: 89, 136, 166; + --color-neutral-600: 71, 109, 133; + --color-neutral-700: 54, 82, 99; + --color-neutral-800: 36, 55, 66; + --color-neutral-900: 18, 27, 33; + /* Red */ + --color-primary-0: 252, 233, 232; + --color-primary-50: 250, 211, 209; + --color-primary-100: 247, 189, 186; + --color-primary-150: 245, 167, 163; + --color-primary-200: 242, 145, 140; + --color-primary-250: 240, 123, 117; + --color-primary-300: 237, 101, 94; + --color-primary-350: 235, 80, 71; + --color-primary-400: 232, 58, 48; + --color-primary-450: 230, 36, 25; + --color-primary-500: 207, 32, 23; + --color-primary-550: 184, 29, 20; + --color-primary-600: 161, 25, 18; + --color-primary-650: 138, 21, 15; + --color-primary-700: 115, 18, 13; + --color-primary-750: 92, 14, 10; + --color-primary-800: 69, 11, 8; + --color-primary-850: 46, 7, 5; + --color-primary-900: 23, 4, 3; + --color-primary-950: 0, 0, 0; + /* Cyan */ + --color-secondary-50: 241, 238, 246; + --color-secondary-100: 228, 222, 237; + --color-secondary-200: 201, 189, 219; + --color-secondary-300: 174, 156, 201; + --color-secondary-400: 147, 122, 184; + --color-secondary-500: 120, 89, 166; + --color-secondary-600: 96, 71, 133; + --color-secondary-700: 72, 54, 99; + --color-secondary-800: 48, 36, 66; + --color-secondary-900: 24, 18, 33; + } + + /* + #e7352c RED + #674d8e Purple + #384f7a Blue + #2f4858 Grey + */ \ No newline at end of file diff --git a/assets/css/styles.css b/assets/css/styles.css new file mode 100644 index 00000000..a233af01 --- /dev/null +++ b/assets/css/styles.css @@ -0,0 +1,15 @@ +.banner { + width: 100%; + height: auto; /* Adjust the height as needed */ + background-color: #e78c8c; /* Set your desired background color */ + color: #ffffff; /* Set your desired text color */ + text-align: center; + padding: 20px; /* Adjust the padding as needed */ + box-sizing: border-box; + } + + /* Optional: Add styling for the text inside the banner */ + .banner h1 { + font-size: 24px; + margin: 0; + } \ No newline at end of file diff --git a/assets/img/authors/espressif.png b/assets/img/authors/espressif.png new file mode 100644 index 00000000..025dcb20 Binary files /dev/null and b/assets/img/authors/espressif.png differ diff --git a/assets/img/authors/pedrominatel.jpg b/assets/img/authors/pedrominatel.jpg new file mode 100644 index 00000000..df833b17 Binary files /dev/null and b/assets/img/authors/pedrominatel.jpg differ diff --git a/assets/img/bg.jpg b/assets/img/bg.jpg new file mode 100644 index 00000000..3a7617d7 Binary files /dev/null and b/assets/img/bg.jpg differ diff --git a/assets/img/blowfish.jpg b/assets/img/blowfish.jpg new file mode 100644 index 00000000..ad842eab Binary files /dev/null and b/assets/img/blowfish.jpg differ diff --git a/assets/img/espressif_logo_contour.png b/assets/img/espressif_logo_contour.png new file mode 100644 index 00000000..77c7dfa2 Binary files /dev/null and b/assets/img/espressif_logo_contour.png differ diff --git a/assets/img/espressif_logo_contour_only.png b/assets/img/espressif_logo_contour_only.png new file mode 100644 index 00000000..025dcb20 Binary files /dev/null and b/assets/img/espressif_logo_contour_only.png differ diff --git a/assets/img/iceland.jpg b/assets/img/iceland.jpg new file mode 100644 index 00000000..6352a781 Binary files /dev/null and b/assets/img/iceland.jpg differ diff --git a/assets/img/ocean.jpg b/assets/img/ocean.jpg new file mode 100644 index 00000000..9f1220a6 Binary files /dev/null and b/assets/img/ocean.jpg differ diff --git a/assets/img/paint.png b/assets/img/paint.png new file mode 100644 index 00000000..6f6659ae Binary files /dev/null and b/assets/img/paint.png differ diff --git a/assets/js/home.js b/assets/js/home.js new file mode 100644 index 00000000..fc8e5583 --- /dev/null +++ b/assets/js/home.js @@ -0,0 +1,76 @@ +var layouts = [ + "background", + "hero", + "profile", + "page", + "card" +] + +var currentLayout = 0 + +function switchHomeLayout() { + + var old = currentLayout + currentLayout = currentLayout == layouts.length - 1 ? 0 : currentLayout + 1 + + var oldDiv = document.getElementById(layouts[old]) + var currentDiv = document.getElementById(layouts[currentLayout]) + const layoutCode = document.querySelectorAll("code[id=layout]"); + + currentDiv.style.display = "block"; + oldDiv.style.display = "none"; + layoutCode.forEach(function (el) { + el.innerText = layouts[currentLayout]; + }); + +} + +window.addEventListener("DOMContentLoaded", (event) => { + document.querySelectorAll("#switch-layout-button").forEach((button) => + button.addEventListener("click", function (e) { + e.preventDefault(); + switchHomeLayout(); + }) + ); +}); + +var list_config = [ + "CardViewProse", + "CardViewScreenWidth", + "NormalView" +] + +var titles = { + "CardViewProse" : "card view with constrained width", + "CardViewScreenWidth" : "card view with full width", + "NormalView" : "standard list view" +} + +var currentConfig = 0 + +function switchList() { + + var old = currentConfig + currentConfig = currentConfig == list_config.length - 1 ? 0 : currentConfig + 1 + + var oldDiv = document.getElementById(list_config[old]) + var currentDiv = document.getElementById(list_config[currentConfig]) + const configCode = document.querySelectorAll("code[id=config]"); + + currentDiv.style.display = "block"; + oldDiv.style.display = "none"; + + configCode.forEach(function (el) { + el.innerText = titles[list_config[currentConfig]]; + }); + +} + +window.addEventListener("DOMContentLoaded", (event) => { + document.querySelectorAll("#switch-config-button").forEach((button) => + button.addEventListener("click", function (e) { + e.preventDefault(); + switchList(); + }) + ); +}); diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml new file mode 100644 index 00000000..08212dc5 --- /dev/null +++ b/config/_default/hugo.toml @@ -0,0 +1,67 @@ +# -- Site Configuration -- +# Refer to the theme docs for more details about each of these parameters. +# https://blowfish.page/docs/getting-started/ + +theme = "blowfish" +baseURL = "https://developer.espressif.com" +defaultContentLanguage = "en" + +# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles + +enableRobotsTXT = true +paginate = 100 +summaryLength = 30 + +buildDrafts = false +buildFuture = false + +googleAnalytics = "" + +[imaging] + anchor = 'Center' + +[taxonomies] + tag = "tags" + category = "categories" + author = "authors" + series = "series" + platform = "platforms" + soc = "socs" + +[sitemap] + changefreq = 'always' + filename = 'sitemap.xml' + priority = 0.5 + +[outputs] + home = ["HTML", "RSS", "JSON"] + +[related] + threshold = 0 + toLower = false + + [[related.indices]] + name = "tags" + weight = 100 + + [[related.indices]] + name = "categories" + weight = 100 + + [[related.indices]] + name = "series" + weight = 50 + + [[related.indices]] + name = "authors" + weight = 20 + + [[related.indices]] + name = "date" + weight = 10 + + [[related.indices]] + applyFilter = false + name = 'fragmentrefs' + type = 'fragments' + weight = 10 diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml new file mode 100644 index 00000000..6707cea4 --- /dev/null +++ b/config/_default/languages.en.toml @@ -0,0 +1,30 @@ +languageCode = "en" +languageName = "English" +weight = 1 +title = "Developer Portal" + +[params] + displayName = "EN" + isoCode = "en" + rtl = false + dateFormat = "2 January 2006" + logo = "img/espressif_logo_contour.png" + # secondaryLogo = "PATH" + description = "The developer resources in just one place!" + # copyright = "Copy, _right?_ :thinking_face:" + +[author] + name = "Developer Portal" + image = "img/espressif_logo_contour_only.png" + headline = "The developer resources in just one place!" + bio = "The developer resources in just one place!" + links = [ + { x-twitter = "https://twitter.com/EspressifSystem" }, + { instagram = "https://www.instagram.com/espressif_systems_official/" }, + { youtube = "https://www.youtube.com/channel/UCDBWNF7CJ2U5eLGT7o3rKog" }, + { facebook = "https://www.facebook.com/espressif/" }, + { linkedin = "https://www.linkedin.com/company/espressif-systems/" }, + { github = "https://github.com/espressif" }, + ] + + \ No newline at end of file diff --git a/config/_default/markup.toml b/config/_default/markup.toml new file mode 100644 index 00000000..c5449fc3 --- /dev/null +++ b/config/_default/markup.toml @@ -0,0 +1,13 @@ +# -- Markup -- +# These settings are required for the theme to function. + +[goldmark] +[goldmark.renderer] + unsafe = true + +[highlight] + noClasses = false + +[tableOfContents] + startLevel = 2 + endLevel = 4 diff --git a/config/_default/menus.en.toml b/config/_default/menus.en.toml new file mode 100644 index 00000000..6c3e419a --- /dev/null +++ b/config/_default/menus.en.toml @@ -0,0 +1,144 @@ +# -- Main Menu -- +# The main menu is displayed in the header at the top of the page. +# Acceptable parameters are name, pageRef, page, url, title, weight. +# +# The simplest menu configuration is to provide: +# name = The name to be displayed for this menu link +# pageRef = The identifier of the page or section to link to +# +# By default the menu is ordered alphabetically. This can be +# overridden by providing a weight value. The menu will then be +# ordered by weight from lowest to highest. + +[[main]] + name = "Awesome" + weight = 10 + +[[main]] + name = "Arduino" + parent = "Awesome" + pageRef = "pages/arduino" + weight = 10 + +[[main]] + name = "ESP-IDF" + parent = "Awesome" + pageRef = "pages/esp-idf" + weight = 10 + +[[main]] + name = "IDEs" + parent = "Awesome" + pageRef = "pages/ides" + weight = 10 + +[[main]] + name = "Rust" + parent = "Awesome" + pageRef = "pages/rust" + weight = 10 + +[[main]] + name = "NuttX" + parent = "Awesome" + pageRef = "pages/nuttx" + weight = 10 + +[[main]] + name = "Zephyr" + parent = "Awesome" + pageRef = "pages/zephyr" + weight = 10 + +[[main]] + name = "Blog" + pageRef = "blog" + weight = 12 + +[[main]] + name = "Tutorials" + pageRef = "tutorials" + weight = 15 + +[[main]] + name = "Articles" + pageRef = "articles" + weight = 20 + +[[main]] + name = "Events" + pageRef = "events" + weight = 20 + +[[main]] + name = "Quick Links" + weight = 30 + +[[main]] + name = "Product Selector" + parent = "Quick Links" + url = "https://products.espressif.com/" + weight = 30 + +[[main]] + name = "Documents" + parent = "Quick Links" + url = "https://www.espressif.com/en/support/documents/technical-documents" + weight = 11 + +[[main]] + name = "Datasheet" + parent = "Quick Links" + url = "https://www.espressif.com/en/support/documents/technical-documents?keys=&field_download_document_type_tid%5B%5D=510" + weight = 12 + +[[main]] + name = "ESP32 Forum" + parent = "Quick Links" + url = "https://esp32.com" + weight = 30 + +[[main]] + name = "Reddit" + parent = "Quick Links" + url = "https://www.reddit.com/r/esp32/" + weight = 30 + +[[main]] + name = "Component Registry" + parent = "Quick Links" + url = "https://components.espressif.com/" + weight = 30 + +[[main]] + name = "DevCon" + parent = "Quick Links" + url = "https://devcon.espressif.com/" + weight = 30 + +[[main]] + name = "Espressif Site" + parent = "Quick Links" + url = "https://espressif.com" + weight = 10 + +[[footer]] + name = "About" + pageRef = "pages/about" + weight = 90 + + [[footer]] + name = "Tags" + pageRef = "tags" + weight = 10 + + [[footer]] + name = "Authors" + pageRef = "authors" + weight = 20 + +[[footer]] + identifier = "github" + pre = "github" + url = "https://github.com/espressif" + weight = 400 \ No newline at end of file diff --git a/config/_default/params.toml b/config/_default/params.toml new file mode 100644 index 00000000..e7ecf83d --- /dev/null +++ b/config/_default/params.toml @@ -0,0 +1,135 @@ +# -- Theme Options -- +# These options control how the theme functions and allow you to +# customise the display of your website. +# +# Refer to the theme docs for more details about each of these parameters. +# https://blowfish.page/docs/configuration/#theme-parameters + +colorScheme = "espressif" +defaultAppearance = "light" # valid options: light or dark +autoSwitchAppearance = false + +enableSearch = true +enableCodeCopy = true + +mainSections = ["blog"] +# robots = "" + +disableImageOptimization = false +disableTextInHeader = false + +# defaultBackgroundImage = "/img/ocean.jpg" +# defaultFeaturedImage = "/img/ocean.jpg" + +highlightCurrentMenuArea = true +smartTOC = true +smartTOCHideUnfocusedChildren = false + +[header] + layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-fill-blur + +[footer] + showMenu = true + showCopyright = true + showThemeAttribution = true + showAppearanceSwitcher = true + showScrollToTop = true + +[homepage] + layout = "custom" # valid options: page, profile, hero, card, background, custom + # homepageImage = "/img/iceland.jpg" # used in: hero, and card + showRecent = false + showRecentItems = 6 + showMoreLink = true + showMoreLinkDest = "blog" + cardView = false + cardViewScreenWidth = false + layoutBackgroundBlur = true # only used when layout equals background + +[article] + showDate = true + showViews = true + showLikes = true + showDateOnlyInArticle = true + showDateUpdated = false + showAuthor = true + showHero = true + heroStyle = "big" # valid options: basic, big, background, thumbAndBackground + layoutBackgroundBlur = true # only used when heroStyle equals background + showBreadcrumbs = true + showDraftLabel = true + showEdit = true + editURL = "https://github.com/espressif/developer-portal/tree/main/content" + editAppendPath = true + seriesOpened = false + showHeadingAnchors = true + showPagination = true + invertPagination = false + showReadingTime = true + showTableOfContents = true + showRelatedContent = true + relatedContentLimit = 3 + showTaxonomies = true + showAuthorsBadges = true + showWordCount = false + sharingLinks = [ "linkedin", "twitter", "reddit", "whatsapp", "telegram", "pinterest", "facebook", "email"] + showZenMode = true + +[list] + showHero = true + heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + layoutBackgroundBlur = true # only used when heroStyle equals background + layoutBackgroundHeaderSpace = false + showBreadcrumbs = false + showSummary = false + showViews = true + showLikes = true + showTableOfContents = true + showCards = true + groupByYear = false + cardView = true + cardViewScreenWidth = false + constrainItemsWidth = false + +[sitemap] + excludedKinds = [] + +[taxonomy] + showTermCount = true + showHero = true + heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + showBreadcrumbs = false + showViews = true + showLikes = true + showTableOfContents = true + cardView = false + +[term] + showHero = true + heroStyle = "background" # valid options: basic, big, background, thumbAndBackground + showBreadcrumbs = false + showViews = true + showLikes = true + showTableOfContents = true + groupByYear = false + cardView = true + cardViewScreenWidth = false + +[firebase] + apiKey = "AIzaSyB5tqlqDky77Vb4Tc4apiHV4hRZI18KGiY" + authDomain = "blowfish-21fff.firebaseapp.com" + projectId = "blowfish-21fff" + storageBucket = "blowfish-21fff.appspot.com" + messagingSenderId = "60108104191" + appId = "1:60108104191:web:039842ebe1370698b487ca" + measurementId = "G-PEDMYR1V0K" + +[fathomAnalytics] + # site = "ABC12345" + # domain = "llama.yoursite.com" + +[verification] + # google = "" + # bing = "" + # pinterest = "" + # yandex = "" diff --git a/content/_index.md b/content/_index.md new file mode 100755 index 00000000..debf6f9e --- /dev/null +++ b/content/_index.md @@ -0,0 +1,10 @@ +--- +title: "Welcome to Espressif Developer Portal! :tada:" +description: "This page is the Espressif Developer Portal." +--- + +We are thrilled to have you join our community of innovators and creators in the exciting world of Espressif products! Whether you're a seasoned developer or just starting your journey, this portal is your go-to destination for a treasure trove of information, tutorials, and resources centered around our cutting-edge technologies. + + + +Join us on this exciting journey of exploration, innovation, and collaboration. The Espressif Developer Portal is not just a platform; it's a community-driven space where ideas flourish and projects come to life. diff --git a/content/articles/_index.md b/content/articles/_index.md new file mode 100644 index 00000000..73416246 --- /dev/null +++ b/content/articles/_index.md @@ -0,0 +1,18 @@ +--- +title: "Articles" +date: 2022-06-13T20:55:37+01:00 +draft: false + +showDate : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : true +showTaxonomies : false +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +--- diff --git a/content/authors/_index.md b/content/authors/_index.md new file mode 100644 index 00000000..862c9c7d --- /dev/null +++ b/content/authors/_index.md @@ -0,0 +1,18 @@ +--- +title: "Developer Portal Authors" +showEdit : false +showDate : false +showAuthor : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : false +showTaxonomies : false +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +showZenMode : false +--- diff --git a/content/authors/espressif/_index.md b/content/authors/espressif/_index.md new file mode 100644 index 00000000..fa026fc2 --- /dev/null +++ b/content/authors/espressif/_index.md @@ -0,0 +1,3 @@ +--- +title: "John Lee" +--- diff --git a/content/authors/pedrominatel/_index.md b/content/authors/pedrominatel/_index.md new file mode 100644 index 00000000..02887b5f --- /dev/null +++ b/content/authors/pedrominatel/_index.md @@ -0,0 +1,3 @@ +--- +title: "Pedro Minatel" +--- diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 00000000..ab1b8bc0 --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,21 @@ +--- +title: "Welcome to the Developer Portal Blog" +description: "This page is the Espressif Developer Portal." +date: 2022-06-13T20:55:37+01:00 +draft: false + +showDate : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : true +showTaxonomies : false +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +--- + +Here you will find... \ No newline at end of file diff --git a/content/events/_index.md b/content/events/_index.md new file mode 100644 index 00000000..1d5e7f03 --- /dev/null +++ b/content/events/_index.md @@ -0,0 +1,20 @@ +--- +title: "Events" +date: 2022-06-13T20:55:37+01:00 +draft: false + +showDate : true +showDateUpdated : false +showHeadingAnchors : false +showPagination : true +showReadingTime : false +showTableOfContents : false +showTaxonomies : false +showWordCount : false +showSummary : false +sharingLinks : true +showLikes : false +showViews : false +groupByYear : true + +--- diff --git a/content/pages/_index.md b/content/pages/_index.md new file mode 100644 index 00000000..e69de29b diff --git a/content/pages/about.md b/content/pages/about.md new file mode 100644 index 00000000..8d14c9d6 --- /dev/null +++ b/content/pages/about.md @@ -0,0 +1,21 @@ +--- +title: "About" +date: 2022-06-13T20:55:37+01:00 +draft: false + +showEdit : false +showDate : false +showAuthor : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : false +showTaxonomies : false +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +showZenMode : false +--- diff --git a/content/pages/arduino/index.md b/content/pages/arduino/index.md new file mode 100644 index 00000000..a92b3307 --- /dev/null +++ b/content/pages/arduino/index.md @@ -0,0 +1,23 @@ +--- +title: "Awesome Arduino" +date: 2022-06-13T20:55:37+01:00 +draft: false + +showEdit : false +showDate : false +showAuthor : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : false +showTaxonomies : true +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +showZenMode : false +showRelatedContent : false +relatedContentLimit : 3 +--- diff --git a/content/pages/esp-idf/index.md b/content/pages/esp-idf/index.md new file mode 100644 index 00000000..04de5c51 --- /dev/null +++ b/content/pages/esp-idf/index.md @@ -0,0 +1,23 @@ +--- +title: "Awesome ESP-IDF" +date: 2022-06-13T20:55:37+01:00 +draft: false + +showEdit : false +showDate : false +showAuthor : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : false +showTaxonomies : true +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +showZenMode : false +showRelatedContent : false +relatedContentLimit : 3 +--- diff --git a/content/pages/ides/index.md b/content/pages/ides/index.md new file mode 100644 index 00000000..018cb476 --- /dev/null +++ b/content/pages/ides/index.md @@ -0,0 +1,24 @@ +--- +title: "Awesome IDEs" +date: 2022-06-13T20:55:37+01:00 +draft: false + +showEdit : false +showDate : false +showAuthor : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : false +showTaxonomies : true +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +showZenMode : false +showRelatedContent : false +relatedContentLimit : 3 +--- + diff --git a/content/pages/nuttx/index.md b/content/pages/nuttx/index.md new file mode 100644 index 00000000..5eb65b6b --- /dev/null +++ b/content/pages/nuttx/index.md @@ -0,0 +1,24 @@ +--- +title: "Awesome NuttX" +date: 2022-06-13T20:55:37+01:00 +draft: false + +showEdit : false +showDate : false +showAuthor : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : false +showTaxonomies : true +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +showZenMode : false +showRelatedContent : false +relatedContentLimit : 3 +--- + diff --git a/content/pages/rust/index.md b/content/pages/rust/index.md new file mode 100644 index 00000000..ec5f4af8 --- /dev/null +++ b/content/pages/rust/index.md @@ -0,0 +1,23 @@ +--- +title: "Awesome Rust" +date: 2022-06-13T20:55:37+01:00 +draft: false + +showEdit : false +showDate : false +showAuthor : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : false +showTaxonomies : true +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +showZenMode : false +showRelatedContent : false +relatedContentLimit : 3 +--- diff --git a/content/pages/zephyr/index.md b/content/pages/zephyr/index.md new file mode 100644 index 00000000..9aad99af --- /dev/null +++ b/content/pages/zephyr/index.md @@ -0,0 +1,23 @@ +--- +title: "Awesome Zephyr" +date: 2022-06-13T20:55:37+01:00 +draft: false + +showEdit : false +showDate : false +showAuthor : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : false +showTaxonomies : true +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +showZenMode : false +showRelatedContent : false +relatedContentLimit : 3 +--- diff --git a/content/tags/_index.md b/content/tags/_index.md new file mode 100644 index 00000000..75a29290 --- /dev/null +++ b/content/tags/_index.md @@ -0,0 +1,18 @@ +--- +title: Tags +showEdit : false +showDate : false +showAuthor : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : false +showTaxonomies : false +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +showZenMode : false +--- diff --git a/content/tutorials/_index.md b/content/tutorials/_index.md new file mode 100644 index 00000000..2c70a782 --- /dev/null +++ b/content/tutorials/_index.md @@ -0,0 +1,18 @@ +--- +title: "Tutorials" +date: 2022-06-13T20:55:37+01:00 +draft: false + +showDate : false +showDateUpdated : false +showHeadingAnchors : false +showPagination : false +showReadingTime : false +showTableOfContents : true +showTaxonomies : false +showWordCount : false +showSummary : false +sharingLinks : false +showLikes : false +showViews : false +--- diff --git a/data/authors/espressif.json b/data/authors/espressif.json new file mode 100644 index 00000000..6cade778 --- /dev/null +++ b/data/authors/espressif.json @@ -0,0 +1,13 @@ +{ + "name": "John Lee", + "image" : "img/authors/espressif.png", + "bio": "Espressif Systems", + "social": [ + { "linkedin": "https://www.linkedin.com/company/espressif-systems" }, + { "twitter": "https://twitter.com/EspressifSystem" }, + { "instagram": "https://www.instagram.com/espressif_systems_official" }, + { "medium": "https://blog.espressif.com/" }, + { "github": "https://github.com/espressif" }, + { "link": "https://espressif.com/"} + ] +} \ No newline at end of file diff --git a/data/authors/pedrominatel.json b/data/authors/pedrominatel.json new file mode 100644 index 00000000..ff951707 --- /dev/null +++ b/data/authors/pedrominatel.json @@ -0,0 +1,9 @@ +{ + "name": "Pedro Minatel", + "image" : "img/authors/pedrominatel.jpg", + "bio": "Developer Relations Managet at Espressif", + "social": [ + { "linkedin": "https://www.linkedin.com/in/pedrominatel/" }, + { "github": "https://github.com/pedrominatel" } + ] +} \ No newline at end of file diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 00000000..a9ba7807 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,9 @@ +baseURL = "http://example.org/" +# [en, zh-cn, fr, ...] determines default content language +defaultContentLanguage = "en" +# language code +languageCode = "en" +title = "Espressif Developer Portal" + +# Change the default theme to be use when building the site with Hugo +theme = "blowfish" diff --git a/layouts/partials/extend-footer.html b/layouts/partials/extend-footer.html new file mode 100644 index 00000000..aad10ed8 --- /dev/null +++ b/layouts/partials/extend-footer.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html new file mode 100644 index 00000000..fb344477 --- /dev/null +++ b/layouts/partials/header/basic.html @@ -0,0 +1,187 @@ + + +{{ if .Site.Menus.subnavigation }} + +{{ end }} + +{{ if .Site.Params.highlightCurrentMenuArea }} + +{{ end }} + +{{ $styles := resources.Get "css/styles.css" }} +{{ if $styles }} + +{{ end }} \ No newline at end of file diff --git a/layouts/partials/home/custom.html b/layouts/partials/home/custom.html new file mode 100644 index 00000000..aa13ffae --- /dev/null +++ b/layouts/partials/home/custom.html @@ -0,0 +1,20 @@ +{{ $jsHome := resources.Get "js/home.js" | resources.Minify | resources.Fingerprint "sha512" }} +
+ {{ partial "partials/home/background.html" . }} +
+ + + + +
+ {{ partial "recent-articles-demo.html" . }} +
+ diff --git a/layouts/partials/recent-articles-demo.html b/layouts/partials/recent-articles-demo.html new file mode 100644 index 00000000..3d71308f --- /dev/null +++ b/layouts/partials/recent-articles-demo.html @@ -0,0 +1,43 @@ +{{ $recentArticles := 5 }} +{{ $showMoreLinkDest := "/posts" }} +{{ if index .Site.Params.homepage "showRecentItems" }} +{{ $recentArticles = .Site.Params.homepage.showRecentItems }} +{{ end }} + +

{{ i18n "shortcode.recent_articles" | emojify }}

+ + + +
+ {{ partial "recent-articles/cardview.html" . }} +
+ + + + + +{{ if .Site.Params.homepage.showMoreLink | default false }} +{{ if index .Site.Params.homepage "showRecentItems" }} +{{ $showMoreLinkDest = .Site.Params.homepage.showMoreLinkDest }} +{{ end }} +
+ + + +
+{{ end }} diff --git a/static/android-chrome-192x192.png b/static/android-chrome-192x192.png new file mode 100644 index 00000000..83db9790 Binary files /dev/null and b/static/android-chrome-192x192.png differ diff --git a/static/android-chrome-512x512.png b/static/android-chrome-512x512.png new file mode 100644 index 00000000..83021b6f Binary files /dev/null and b/static/android-chrome-512x512.png differ diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png new file mode 100644 index 00000000..8ba1be33 Binary files /dev/null and b/static/apple-touch-icon.png differ diff --git a/static/favicon-16x16.png b/static/favicon-16x16.png new file mode 100644 index 00000000..0382dc16 Binary files /dev/null and b/static/favicon-16x16.png differ diff --git a/static/favicon-32x32.png b/static/favicon-32x32.png new file mode 100644 index 00000000..0935086f Binary files /dev/null and b/static/favicon-32x32.png differ diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 00000000..93cac05a Binary files /dev/null and b/static/favicon.ico differ diff --git a/themes/blowfish b/themes/blowfish new file mode 160000 index 00000000..e7ce3860 --- /dev/null +++ b/themes/blowfish @@ -0,0 +1 @@ +Subproject commit e7ce3860490e6b8f33578675b2898bc50d097513