diff --git a/exampleSite/data/popular.json b/exampleSite/data/popular.json new file mode 100644 index 0000000..f1f87e0 --- /dev/null +++ b/exampleSite/data/popular.json @@ -0,0 +1 @@ +["/blog/hello-world/", "/blog/build-2021-summary/", "/blog/jamstack-cloud-winning-combination/", "/blog/api-management-and-policies/", "/blog/static-web-apps-vs-storage-account-static-sites/", "/blog/azuredevops-selfhosted-agents-on-azure/", "/blog/secure-app-service-with-easy-auth-and-app-gateway-public/", "/blog/api-management-and-additional-policies/", "/blog/github-action-docker-dotnet-core/", "/blog/using-oidc-github-actions-azure-swa/"] \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index 52c6f89..0f199b1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,53 +1,88 @@ {{ define "top" }}
-
- {{ $featuredContent := where .Site.Pages "Params.featured" ">" 0 }} - {{ $featuredContentCount := len $featuredContent }} - {{ if gt $featuredContentCount 0 }} -
-
{{ end }} @@ -76,7 +111,6 @@

- {{ end }} diff --git a/layouts/partials/content/type.html b/layouts/partials/content/type.html new file mode 100644 index 0000000..3a27c67 --- /dev/null +++ b/layouts/partials/content/type.html @@ -0,0 +1,12 @@ +{{ $icon := "generic" }} + +{{ if eq .Type "episode" }} + {{ $icon = "fa-solid fa-play" }} +{{ else if eq .Type "blog" }} + {{ $icon = "fa-solid fa-pencil" }} +{{ else if eq .Type "talk" }} + {{ $icon = "fa-solid fa-chalkboard-user" }} +{{ end }} + + {{ .Type | humanize }} + \ No newline at end of file diff --git a/layouts/partials/footer/all.html b/layouts/partials/footer/all.html index 6f6d482..d0afc68 100644 --- a/layouts/partials/footer/all.html +++ b/layouts/partials/footer/all.html @@ -1,54 +1,54 @@