hexojs / hexo-generator-alias Goto Github PK
View Code? Open in Web Editor NEWGenerate alias pages for redirecting to posts, pages or URL
License: MIT License
Generate alias pages for redirecting to posts, pages or URL
License: MIT License
We're using hexo-generator-alias
to generate short links for use on social media. Sadly the generated pages do not include the <meta>
properties which have a great influence on how links are displayed in Facebook, Twitter, etc. Is there a way to include those in the alias pages?
npm still lists version 0.1.0 as current: https://www.npmjs.com/package/hexo-generator-alias
0.1.0 is the latest of 2 releases
Please issue an npm publish
command to update npm to the current version.
https://docs.npmjs.com/getting-started/publishing-npm-packages
This plugin seems failed with hexo 3. Here goes the testing.
$ hexo init testalias
$ cd testalias
$ npm install
$ npm install hexo-generator-alias --save
$ hexo s
Then you get FATAL Something's wrong
.
TypeError: undefined is not a function
...
URLs end with index.html, which differs from normal Hexo URLs, which end with a slash.
This is fixed with #5
I am using "hexo-generator-alias" and have the following redirects defined:
---
alias:
- error-ts/index.html
- common-errors/index.html
---
When I go to https://typescript.tv/error-ts/ then I will be redirected to https://typescript.tv/errors/index.html which is great. But when I go to https://typescript.tv/error-ts/#TS2538 then I will land on https://typescript.tv/errors/index.html which should actually become https://typescript.tv/errors/index.html#TS2538
Is it possible to also forward the anchor (in my case #TS2538
)?
It would be nice if this worked with the latest version of Hexo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.