├── .DS_Store
├── README.md
├── _config.yml
├── _includes
├── addbutton.html
├── footer.html
├── header.html
├── htmlheader.html
└── sharetemplate.html
├── _layouts
├── default.html
└── index.html
├── _links
├── resources.md
├── skillshare.md
└── template.md
├── assets
├── .DS_Store
├── copy-light.svg
├── copy.svg
├── dark-theme.css
├── light-theme.css
├── linkshare-in-action.gif
├── scripts.js
└── styles.css
└── index.md
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/codepo8/linkshare/81579c1f269c7d187de70c053689c0c498d84b0f/.DS_Store
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Linkshare
2 |
3 | A GitHub pages layout to show your links and make it easy to copy them for social sharing
4 |
5 | See it in action at https://codepo8.github.io/linkshare/
6 |
7 | [](https://codepo8.github.io/linkshare/)
8 |
9 | ## Customising to your needs
10 |
11 | 1. Rename the title in the `index.md` document to your title.
12 |
13 | 2. The `_links` folder contains all links that will be shown here. If you want a new category, create a new file copying the template or one of the others. Links need to be lists in markdown format. You also need to change the settings on the top:
14 |
15 | * `title` is the title that will be added to the head of the document and show up in the browser tab
16 | * `name` is the name of the link to the collection of links in the index page
17 | * `permalink` is the name of the file that will get generated (this is to avoid having /repo/links/link.html URLs)
18 |
19 | Leave the `template` setting as is.
20 |
21 | To remove a category, delete the file.
22 |
23 | ## Customising the copy template
24 |
25 | By default, the copied content will be in the following format when you click the copy button:
26 |
27 | ```
28 | 👉🏼 „Chris Heilmann's Blog”
29 | 🔗 https://christianheilmann.com
30 | 💬 Lots of web development news since 2005!
31 | ```
32 |
33 | If you want to change this, edit the `sharetemplate.html` file in the `_includes` folder.
34 |
35 | * `$LINKTEXT` will get replaced with the text inside the link
36 | * `$URL` will get replaced with the URL
37 | * `$TEXT` will get replaced with the text following the link in your lists
38 |
39 | ## Changing the look and feel
40 |
41 | You can do this by editing the `styles.css` file for all the layout bits. All the colours for dark and light mode are defined in `dark-theme.css` and `light-theme.css`.
42 |
43 | ## Hosting
44 |
45 | To host linkshare yourself, fork it and [set up GitHub Pages for the repo](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site#creating-your-site).
46 |
47 | Pull requests and issues welcome!
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | collections:
2 | links:
3 | output: true
--------------------------------------------------------------------------------
/_includes/addbutton.html:
--------------------------------------------------------------------------------
1 | {% capture newline %}
2 | {% endcapture %}
3 | {% capture itemend %}{% endcapture%}
4 | {% assign newhtml = include.html | replace: itemend, '' %}
5 | {{ newhtml }}
--------------------------------------------------------------------------------
/_includes/footer.html:
--------------------------------------------------------------------------------
1 |