start to add tutorials
MODIFY
_config.yml
_config.yml
timezone: America/New_York
defaults:
- -
- scope:
- path: "" # an empty string here means all files in the project
+ - scope:
+ path: ""
values:
- layout: "default"
\ No newline at end of file
+ layout: default
+ - scope:
+ path: ""
+ type: my_collection
+ values:
+ layout: ""
+
+collections:
+ tutorial:
+ output: true

ADD
_data/tutorials.yml
+- id: deepzoom
+ title: Deepzoom tiled image example
+ description: Rendering a tiled image using the Deepzoom protocol.
+
+- id: geoJSON
+ title: GeoJSON file reader
+ description: Shows how to use the included geoJSON reader, and how to use the properties to adjust the style of the features. In this example, you can edit the json file while the features on the map update in response. You can also drop a new geoJSON file onto the text editor to load it.
+
+- id: heatmap
+ title: Heatmap Feature
+ description: This example shows how to add a heatmap to a map.
+
+- id: hurricanes
+ title: Hurricane tracking data
+ description: Explore historic hurricane paths since 1980 on an interactive map.
+
+- id: legend
+ title: Feature legends
+ description: This example shows how to create a legend to describe feature styles on a map.
+
+- id: lines
+ title: Line Feature
+ description: This example shows the variations that are available for line features.
+
+- id: pixelmap
+ title: Pixelmap feature
+ description: This example shows how to use a pixelmap feature. The pixelmap colors areas based on an index derived from an image and some data per index.
+
+- id: polygons
+ title: Polygon features
+ description: This example shows how to add polygons to a map.
+
+- id: quads
+ title: Quad features
+ description: This example shows how to add dynamic quads to a map.
+
+- id: reprojection
+ title: Reproject tiles
+ description: This example shows how you can reproject tiles from one projection to another. The source tiles are in Web Mercator (EPSG:3857), but can be drawn in many different projections.
+
+- id: sld
+ title: Adding styles to WMS raster layers
+ description: Rendering tiles from a WMS server by customizing the style.
+
+- id: tiles
+ title: Tile layer with controllable options
+ description: This example provides controls for changing many options on tile layers. The code and query parameters allow even more options to be adjusted.
+
+- id: transitions
+ title: Using animated transitions
+ description: Using animations to transition between points on a map.
+
+- id: widgets
+ title: Map Widgets
+ description: This example shows how the widgets API can be used to place elements on top of the map.
+
+- id: wms
+ title: Rendering tiles from a WMS server
+ description: Rendering tiles from a WMS server by customizing the tile URL of an OSM layer.
+

ADD
_tutorial/deepzoom.html
+---
+---
+deepzoom
\ No newline at end of file

ADD
_tutorial/heatmap.html
+---
+---
+heatmap
\ No newline at end of file

DELETE
mail/contact_me.php
-<?php
-// Check for empty fields
-if(empty($_POST['name']) ||
- empty($_POST['email']) ||
- empty($_POST['phone']) ||
- empty($_POST['message']) ||
- !filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
- {
- echo "No arguments Provided!";
- return false;
- }
-
-$name = strip_tags(htmlspecialchars($_POST['name']));
-$email_address = strip_tags(htmlspecialchars($_POST['email']));
-$phone = strip_tags(htmlspecialchars($_POST['phone']));
-$message = strip_tags(htmlspecialchars($_POST['message']));
-
-// Create the email and send the message
-$to = 'yourname@yourdomain.com'; // Add your email address inbetween the '' replacing yourname@yourdomain.com - This is where the form will send a message to.
-$email_subject = "Website Contact Form: $name";
-$email_body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\nEmail: $email_address\n\nPhone: $phone\n\nMessage:\n$message";
-$headers = "From: noreply@yourdomain.com\n"; // This is the email address the generated message will be from. We recommend using something like noreply@yourdomain.com.
-$headers .= "Reply-To: $email_address";
-mail($to,$email_subject,$email_body,$headers);
-return true;
-?>

MODIFY
tutorials.html
tutorials.html
layout: default
title: Tutorials
---
-{% highlight ruby %}
-def show
- @widget = Widget(params[:id])
- respond_to do |format|
- format.html # show.html.erb
- format.json { render json: @widget }
- end
-end
-{% endhighlight %}
\ No newline at end of file
+<ul>
+ {% for tutorial in site.data.tutorials %}
+ <li>
+ {{tutorial.id}} - {{tutorial.title}} - {{tutorial.description}}
+ </li>
+ {% endfor %}
+</ul>
\ No newline at end of file

start to add tutorials