Skip to content

Commit

Permalink
Modernisations
Browse files Browse the repository at this point in the history
  • Loading branch information
philwareham committed Apr 7, 2021
1 parent f08020d commit deed912
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 57 deletions.
26 changes: 10 additions & 16 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,8 @@ module.exports = function (grunt)
},
{
expand: true,
cwd: 'node_modules/textile-mark/assets/apple-touch-icon/',
src: ['**'],
dest: 'public/'
},
{
expand: true,
cwd: 'node_modules/textile-mark/assets/favicon/',
src: ['**'],
dest: 'public/'
},
{
expand: true,
cwd: 'node_modules/textile-mark/assets/windows-site-tile/',
src: ['**'],
cwd: 'node_modules/textile-mark/assets/favicons/',
src: '**',
dest: 'public/'
}
]
Expand Down Expand Up @@ -151,6 +139,10 @@ module.exports = function (grunt)
{
match: 'timestamp',
replacement: '<%= opt.timestamp %>'
},
{
match: 'version',
replacement: '<%= pkg.version %>'
}
]
},
Expand All @@ -159,9 +151,11 @@ module.exports = function (grunt)
{
expand: true,
cwd: '<%= paths.src.templates %>',
src: '**',
src: ['**', '!manifest.json'],
dest: '<%= paths.dest.templates %>'
}
},
// Generate version number automatically in theme manifest.json file.
{'<%= paths.dest.templates %>manifest.json': '<%= paths.src.templates %>manifest.json'}
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion README.textile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
h1. Textile website

!https://travis-ci.com/textile/textile-lang-com-website.svg(Build Status)!:https://travis-ci.com/textile/textile-lang-com-website !https://snyk.io/test/github/textile/textile-lang-com-website/badge.svg?targetFile=package.json(Known Vulnerabilities)!:https://snyk.io/test/github/textile/textile-lang-com-website?targetFile=package.json
!https://travis-ci.com/textile/textile-lang-com-website.svg(Build Status)!:https://travis-ci.com/textile/textile-lang-com-website

Official 2018+ website of the "Textile Markup Language":https://textile-lang.com/ project. *Requires Textpattern 4.7.1 or later.*

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "textile-lang-com-website",
"description": "Official website of the Textile markup language.",
"version": "1.0.5",
"version": "1.0.6",
"repository": {
"type": "git",
"url": "https://github.com/textile/textile-lang-com-website"
Expand Down Expand Up @@ -35,13 +35,14 @@
"autosize": "4.0.2",
"jquery": "3.6.0",
"prismjs": "1.23.0",
"textile-mark": "1.0.0"
"textile-mark": "1.1.0"
},
"optionalDependencies": {
"fibers": "5.0.0"
},
"browserslist": [
"> 0.5%",
"Firefox ESR",
"not ie < 11"
],
"scripts": {
Expand Down
4 changes: 0 additions & 4 deletions public/BingSiteAuth.xml

This file was deleted.

12 changes: 0 additions & 12 deletions public/browserconfig.xml

This file was deleted.

1 change: 0 additions & 1 deletion public/google308292a5db415192.html

This file was deleted.

2 changes: 1 addition & 1 deletion public/humans.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# http://humanstxt.org
# https://humanstxt.org
# The humans responsible and
# technology colophon

Expand Down
1 change: 1 addition & 0 deletions public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 5 additions & 12 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
{
"short_name": "textile-lang.com",
"short_name": "Textile-Lang.com",
"name": "Textile Markup Language Homepage",
"start_url": "https://textile-lang.com",
"scope": "https://textile-lang.com",
"icons": [
{
"src": "/favicon-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/favicon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable any" },
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable any" }
],
"background_color": "#ffffff",
"theme_color": "#ffe8aa",
"display": "browser"
"display": "minimal-ui"
}
7 changes: 5 additions & 2 deletions src/templates/forms/misc/head.txp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
<link rel="preload" href="https://textile-lang.com/assets/fonts/pt-serif-v11-latin-700.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="https://textile-lang.com/assets/fonts/pt-serif-v11-latin-700italic.woff2" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="/assets/css/style.@@timestamp.css">
<link rel="icon" href="/favicon.ico">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="icon" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" sizes="16x16" href="/favicon-16x16.png">
<meta name="color-scheme" content="light">
<meta name="theme-color" content="#ffe8aa">
<meta name="generator" content="Textpattern CMS">
<meta name="application-name" content="Textile Markup Language">
12 changes: 6 additions & 6 deletions src/templates/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"title": "Textile official website",
"version": "1.0.5",
"description": "",
"author": "The Textile Language Development Team",
"author_uri": "https://textile-lang.com",
"txp-type": "textpattern-theme"
"title": "Textile official website",
"txp-type": "textpattern-theme",
"version": "@@version",
"description": "Textile-Lang.com site theme.",
"author": "The Textile Language Development Team",
"author_uri": "https://textile-lang.com"
}

0 comments on commit deed912

Please sign in to comment.