diff options
| author | Paul Duncan <pabs@pablotron.org> | 2016-07-18 21:16:59 -0400 | 
|---|---|---|
| committer | Paul Duncan <pabs@pablotron.org> | 2016-07-18 21:16:59 -0400 | 
| commit | f442f7a57b3b6b988f1d914b4ef5c53993b1fa90 (patch) | |
| tree | 6941249bada8065816b96a55fcee115416e5d86f /data/themes/sample-theme | |
| parent | a8b773addc615f85c5e6fbb1835581c25c75504e (diff) | |
| download | guff-f442f7a57b3b6b988f1d914b4ef5c53993b1fa90.tar.xz guff-f442f7a57b3b6b988f1d914b4ef5c53993b1fa90.zip  | |
add theme packer
Diffstat (limited to 'data/themes/sample-theme')
| -rw-r--r-- | data/themes/sample-theme/files/css/style.css | 1 | ||||
| -rw-r--r-- | data/themes/sample-theme/files/js/script.js | 1 | ||||
| -rw-r--r-- | data/themes/sample-theme/guff-manifest.json | 23 | ||||
| -rw-r--r-- | data/themes/sample-theme/templates/blog-list-item.html | 9 | 
4 files changed, 34 insertions, 0 deletions
diff --git a/data/themes/sample-theme/files/css/style.css b/data/themes/sample-theme/files/css/style.css new file mode 100644 index 0000000..913c182 --- /dev/null +++ b/data/themes/sample-theme/files/css/style.css @@ -0,0 +1 @@ +/* sample style */ diff --git a/data/themes/sample-theme/files/js/script.js b/data/themes/sample-theme/files/js/script.js new file mode 100644 index 0000000..aebb122 --- /dev/null +++ b/data/themes/sample-theme/files/js/script.js @@ -0,0 +1 @@ +/* sample script */ diff --git a/data/themes/sample-theme/guff-manifest.json b/data/themes/sample-theme/guff-manifest.json new file mode 100644 index 0000000..407ac40 --- /dev/null +++ b/data/themes/sample-theme/guff-manifest.json @@ -0,0 +1,23 @@ +{ +  "format": 1, +  "metadata": { +    "name": "Sample Theme", +    "version": "1.0", +    "date": "2016-07-18" +  }, + +  "files": [ +    "css/style.css", +    "js/script.js" +  ], + +  "assets": { +    "scripts": [ +      "js/script.js" +    ], + +    "styles": [ +      "css/style.css" +    ] +  } +} diff --git a/data/themes/sample-theme/templates/blog-list-item.html b/data/themes/sample-theme/templates/blog-list-item.html new file mode 100644 index 0000000..7e9dddf --- /dev/null +++ b/data/themes/sample-theme/templates/blog-list-item.html @@ -0,0 +1,9 @@ +<div id='post-%{post_id}' class='post'> +  <div class='title'>%{name|h}</div> +  <div class='sub-title'> +    By <span class='created-by'>%{user_name|h}</span> +    at <span class='posted-at'>%{created_at|h}</span> +  </div> + +  <div class='body'>%{body}</div> +</div>  | 
