diff --git a/content/about.md b/content/about.md index 6cfcbbd880..236463237a 100644 --- a/content/about.md +++ b/content/about.md @@ -10,4 +10,5 @@ colorbar: orange --- -Here is some helpful information \ No newline at end of file +San Diego's Open Data Portal is an archive containing all of our collected +data sets openly accessible to the public. Managed by the Performance and Analytics Department, the many City of San Diego departments have come together to be transparent about the data they collect, how they use it, and how it impacts their policies and procedures. The goal of this data portal is to use this technology to be open, accessible, efficient, and transparent regarding data, and to allow citizens to be more connected to the government. \ No newline at end of file diff --git a/data/servicesDesc.json b/data/servicesDesc.json new file mode 100644 index 0000000000..23439fe429 --- /dev/null +++ b/data/servicesDesc.json @@ -0,0 +1,22 @@ +{ + "City Clerk": "The City Clerk aspires to provide accurate information, maximize equitable access to the government, and to build a transparent connection with their citizens.", + "City Treasurer": "City Treasurer manages funds and tax revenue as well as monitoring financial statistics.", + "Commission for Arts and Culture": "The Commission for Arts and Culture serves as an advisory team who is promoting and encouraging more work and support for San Diego's artistic assets and the importance of including art in our local culture.", + "Commission on Police Practices": "The Commission on Police Practices is an independent body of the Police department who investigates and manages reports regarding the actions of police officers and the department's policies and practices.", + "Development Services": "The Development Services Department helps enforce safe building and land codes, as well as review plans, provide permits and inspections, and retains building records across San Diego.", + "Engineering and Capital Projects": "The Engineering and Capital Projects department works to enhance the safety and the environment of San Diego through quality engineering, program, and construction management.", + "Environmental Services": "Environmental Services helps ensure San Diego has a clean and safe environment for residents, as well as resources regarding managing waste.", + "Finance": "The Department of Finance oversees the budgets for the City, accounts for all financial reports of City funding, manages payroll and vendor payments, and manages the City's debt obligations.", + "Fire and Rescue": "Fire and Rescue provides safety services around San Diego, including fire stations, 911 operation centers, lifeguard towers and training facilities.", + "General Services": "General Services helps the other departments by providing management of the vehicles and facilities owned by the City.", + "Information Technology": "Information Technology (IT) works to improve the technology around San Diego and to continue to find innovative technlogical solutions for various problems.", + "Parks and Recreation": "Parks and Recreation is responsible for managing the parks and open space, recreation facilities and recreation programs for San Diego citizens and visitors alike.", + "Performance and Analytics": "Performance and Analytics manages data and tracks progress for a variety of City projects. They aim to better serve the community by being honest and transparent with data.", + "Police": "The San Diego Police have a mission of maintaining public safety and serving our communities.", + "Public Utilities": "The Public Utilities department serves wastewater customers and maintains water and wastewater treatment plants, water reservoirs, and helps provide clean and safe drinking water for 1.4 million residents.", + "Real Estate and Airport Management": "The Economic Development Department oversees management of airports and real estate around San Diego, and is actively working towards goals such as affordable housing, wayfinding technology, and other programs that develop the communities, businesses and the economy of San Diego.", + "San Diego Geographic Information Source (SanGIS)": "The San Diego Geographic Information Source (SanGIS) is a joint project called a Joint Power Authority (JPA) between the City of San Diego and the County of San Diego to maintain an accurate database of the regional and geographic information of San Diego.", + "Special Events and Filming": "The Special Events & Filming department enhances the economic and arts sides of San Diego by supporting special events and filming around the region.", + "Stormwater": "The Stormwater department works to enhance San Diego's water quality and to protect communities from flooding.", + "Transportation": "The Transportation department helps operate and maintain roads and other related infrastructure to help create a safe traveling environment." +} \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 9a1db57c78..006c63fecc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,8 +5,17 @@ - {{ $style := resources.Get "scss/style.scss" | resources.ToCSS }} - + {{ with resources.Get "scss/style.scss" }} + {{ with . | toCSS }} + {{ if hugo.IsDevelopment }} + + {{ else }} + {{ with . | minify | fingerprint }} + + {{ end }} + {{ end }} + {{ end }} +{{ end }}
@@ -34,7 +60,7 @@

{{- range first 1 .Params.distributions -}} - {{ partial "download-card" (dict "distribution" . "dlCardCat" (anchorize $selectedPageCat) "dlRows" $distroRowCounts) }} + {{ partial "download-card" (dict "distribution" . "dlCardCat" (anchorize $selectedPageCat) "dlRows" ($.Scratch.Get "distroRowCounts") ) }} {{- end -}}
@@ -113,7 +139,7 @@

*/}} {{- $thisURL := printf "%s" .url }} {{- $thisRowCount := 0 }} - {{- range $i, $e := $distroRowCounts }} + {{- range $i, $e := $.Scratch.Get "distroRowCounts" }} {{- $currDlRow := index $e 0 }} {{- if eq $currDlRow $thisURL }} {{- $thisRowCount = int (index $e 1) }} diff --git a/layouts/partials/data-dictionary.html b/layouts/partials/data-dictionary.html index c8edc5f6d0..3d80203120 100644 --- a/layouts/partials/data-dictionary.html +++ b/layouts/partials/data-dictionary.html @@ -1,10 +1,19 @@
{{ $url := .Params.described_by }} -{{ $sep := "," }} -{{ $csvRows := getCSV $sep $url}} -{{ $noRows := $csvRows | len }} +{{- with resources.GetRemote $url }} + {{- with .Err }} + {{- errorf "%s" . }} + {{- else }} + {{- $.Scratch.Add "csvRows" ( .Content | transform.Unmarshal ) }} + {{- end }} +{{- else }} + {{- errorf "Unable to get remote resource %q" $url }} +{{- end }} + + +{{ $noRows := ( $.Scratch.Get "csvRows" ) | len }} {{ $noDataFields := sub $noRows 1 }} -{{ $dataFields := last $noDataFields $csvRows }} +{{ $dataFields := last $noDataFields ( $.Scratch.Get "csvRows" ) }} {{ $dataFieldsLen := sub $noDataFields 1 }}
@@ -16,6 +25,7 @@ + {{- range $i, $r := $dataFields }} {{ index $r 0 }} diff --git a/layouts/partials/datasets-categories-lg.html b/layouts/partials/datasets-categories-lg.html index 202890df8d..8979b483a6 100644 --- a/layouts/partials/datasets-categories-lg.html +++ b/layouts/partials/datasets-categories-lg.html @@ -6,10 +6,11 @@

Datasets by category

- {{ range $key, $value := .Site.Taxonomies.categories }} - {{ $iconPartial := (printf "%s%s" "icon-" $key) }} + {{- range site.Menus.category }} + {{- $thisCategory := lower (replace .Name " " "-") }} + {{- $iconPartial := (printf "%s%s" "icon-" $thisCategory) }} - {{ end }} + {{- end }}
diff --git a/netlify.toml b/netlify.toml index a207d6e89e..f3906980e0 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "hugo --gc --minify" [context.production.environment] -HUGO_VERSION = "0.118.2" +HUGO_VERSION = "0.135.0" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" @@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true" command = "hugo --gc --minify --enableGitInfo" [context.split1.environment] -HUGO_VERSION = "0.118.2" +HUGO_VERSION = "0.135.0" HUGO_ENV = "production" [context.deploy-preview] command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" [context.deploy-preview.environment] -HUGO_VERSION = "0.118.2" +HUGO_VERSION = "0.135.0" [context.branch-deploy] command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] -HUGO_VERSION = "0.118.2" +HUGO_VERSION = "0.135.0" [context.next.environment] HUGO_ENABLEGITINFO = "true"