change the way branch permalinks work
branch permalinks still use /b, but /b?abc now acts as a redirect rather than doing annoying JavaScript garbage I changed the branch element ID format to accomodate this---now the IDs are of form `b-{id}` rather than `{tree_path}:{id}`. the old way was stupid anyways. I hope nothing breaks too majorly because of this.
This commit is contained in:
parent
70be482fb7
commit
c537eb844f
8 changed files with 26 additions and 66 deletions
|
@ -49,13 +49,6 @@ clever to do while browser vendors figure that out, we'll just have to do a cach
|
|||
|
||||
<meta property="og:site_name" content="{{ config.user.title }}">
|
||||
<meta property="og:title" content="{{ page.title }}">
|
||||
{{!--
|
||||
This is a bit of a hack to quickly insert metadata into generated pages without going through Handlebars, which
|
||||
would involve registering, parsing, and generating a page from a template.
|
||||
Yes it would be more flexible that way, but it doesn't need to be.
|
||||
It just needs to be a string replacement.
|
||||
--}}
|
||||
<!-- treehouse-ca37057a-cff5-45b3-8415-3b02dbf6c799-per-branch-metadata -->
|
||||
{{#if page.thumbnail}}
|
||||
<meta property="og:image" content="{{ page.thumbnail.url }}">
|
||||
<meta property="og:image:alt" content="{{ page.thumbnail.alt }}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue