1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 18:00:06 +01:00

add tags page

This commit is contained in:
Matthias Kretschmann 2019-11-08 15:31:43 +01:00
parent 1838e44b25
commit ae93accd08
Signed by: m
GPG Key ID: 606EEEF3C479A91F
43 changed files with 166 additions and 35 deletions

View File

@ -29,6 +29,10 @@ module.exports = {
{ {
title: 'Goodies', title: 'Goodies',
link: '/tags/goodies' link: '/tags/goodies'
},
{
title: 'Tags',
link: '/tags'
} }
] ]
} }

View File

@ -7,6 +7,7 @@ date: 2007-03-01 20:50:32+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
--- ---
The Adjustment Tool Guide gives an in-depth-view of the Adjustment tool in Aperture. The documentary provided by Apple isn't that what most people were looking for. But Kendall Gelner wrote his own Adjustment Tools Guide originally for the Aperture Version 1.0.1. The Adjustment Tool Guide gives an in-depth-view of the Adjustment tool in Aperture. The documentary provided by Apple isn't that what most people were looking for. But Kendall Gelner wrote his own Adjustment Tools Guide originally for the Aperture Version 1.0.1.

View File

@ -1,6 +1,6 @@
--- ---
type: post type: post
title: Finally... a universal scanner driver for the Canon CanoScan LiDE 500F for Intel Macs title: 'Finally... a universal scanner driver for the Canon CanoScan LiDE 500F for Intel Macs'
image: ../media/canoscanlide500f.jpg image: ../media/canoscanlide500f.jpg
date: 2007-06-11 18:44:28+00:00 date: 2007-06-11 18:44:28+00:00
@ -9,6 +9,7 @@ tags:
- tutorial - tutorial
- macos - macos
- scanner - scanner
- apple
redirect_from: redirect_from:
- /2007/06/finally-a-universal-scanner-driver-for-the-canon-canoscan-lide-500f-for-intel-macs/ - /2007/06/finally-a-universal-scanner-driver-for-the-canon-canoscan-lide-500f-for-intel-macs/

View File

@ -11,6 +11,7 @@ tags:
- icon - icon
- macos - macos
- aperture - aperture
- apple
redirect_from: redirect_from:
- '/new-goodies-aperture-file-types-icons/' - '/new-goodies-aperture-file-types-icons/'

View File

@ -11,6 +11,7 @@ tags:
- design - design
- macos - macos
- icon - icon
- apple
--- ---
Nice article on Smashing Magazine by Kate England. It's the Human Interface Guidelines for icons in a nutshell: [Mac OS X Leopard: Designers Guide to Icons](http://www.smashingmagazine.com/2008/04/04/mac-os-x-leopard-designers-guide-to-icons): Nice article on Smashing Magazine by Kate England. It's the Human Interface Guidelines for icons in a nutshell: [Mac OS X Leopard: Designers Guide to Icons](http://www.smashingmagazine.com/2008/04/04/mac-os-x-leopard-designers-guide-to-icons):

View File

@ -7,6 +7,7 @@ author: Matthias Kretschmann
tags: tags:
- design - design
- apple
date: 2008-04-06 21:21:22+00:00 date: 2008-04-06 21:21:22+00:00
--- ---

View File

@ -11,6 +11,7 @@ tags:
- tutorial - tutorial
- macos - macos
- icon - icon
- apple
redirect_from: redirect_from:
- /2008/04/changing-the-image-icons-in-mac-os-x-leopard/ - /2008/04/changing-the-image-icons-in-mac-os-x-leopard/

View File

@ -7,6 +7,7 @@ date: 2008-04-22 05:58:41+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
--- ---
![Aperture](../media/aperture97.png)Just right after [Tiffen and Digital Film Tools announced](http://www.kremalicious.com/2008/04/first-aperture-adjustment-plugins-have-arrived/) their new image editing plugins for Aperture 2.1 Apple has released the Software Development Kit (SDK) for coding Aperture 2.1 plugins. It's available [from Apple's Developer Connection](https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20044) for registered members (registering is free). You can grab the Aperture 2.1 plugin-SDK (3D9) as a 595KB download from there and start coding. ![Aperture](../media/aperture97.png)Just right after [Tiffen and Digital Film Tools announced](http://www.kremalicious.com/2008/04/first-aperture-adjustment-plugins-have-arrived/) their new image editing plugins for Aperture 2.1 Apple has released the Software Development Kit (SDK) for coding Aperture 2.1 plugins. It's available [from Apple's Developer Connection](https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20044) for registered members (registering is free). You can grab the Aperture 2.1 plugin-SDK (3D9) as a 595KB download from there and start coding.

View File

@ -11,6 +11,7 @@ tags:
- tutorial - tutorial
- macos - macos
- scanner - scanner
- apple
--- ---
A while ago I [wrote about my problems](/finally-a-universal-scanner-driver-for-the-canon-canoscan-lide-500f-for-intel-macs/) finding a universal scanner driver from Canon for my CanoScan LiDE 500F to use it under Mac OS X. The solution was the Canon Asia website where a universal driver version was available. But since then Apple released Mac OS X 10.5 Leopard in october 2007 and the Canon driver with the version 11.2.4.0X stopped working on this new operating system. A while ago I [wrote about my problems](/finally-a-universal-scanner-driver-for-the-canon-canoscan-lide-500f-for-intel-macs/) finding a universal scanner driver from Canon for my CanoScan LiDE 500F to use it under Mac OS X. The solution was the Canon Asia website where a universal driver version was available. But since then Apple released Mac OS X 10.5 Leopard in october 2007 and the Canon driver with the version 11.2.4.0X stopped working on this new operating system.

View File

@ -12,6 +12,7 @@ tags:
- aperture - aperture
- tutorial - tutorial
- macos - macos
- apple
--- ---
Wouldn't that be great? Hook up your scanner, fire up Aperture, click on Import and the images coming directly from your scanner plate? Although my scanner is shown as a source in the import dialogue you can't import images with it directly from Aperture. But using Preview/Image Capture and Automator you can bypass this limitation. So here's what you can do to scan directly into Aperture in 3 simple steps. Wouldn't that be great? Hook up your scanner, fire up Aperture, click on Import and the images coming directly from your scanner plate? Although my scanner is shown as a source in the import dialogue you can't import images with it directly from Aperture. But using Preview/Image Capture and Automator you can bypass this limitation. So here's what you can do to scan directly into Aperture in 3 simple steps.

View File

@ -9,6 +9,7 @@ date: 2008-05-07 03:27:25+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
- tutorial - tutorial
redirect_from: redirect_from:

View File

@ -9,6 +9,7 @@ date: 2008-05-07 19:21:34+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
--- ---
![Viveza](../media/viveza.png)Today [Nik Software](http://www.niksoftware.com) announced the availability of it's U-point-technology based editing plugin for Apple's Aperture 2.1 called [Viveza](http://www.niksoftware.com/viveza). ![Viveza](../media/viveza.png)Today [Nik Software](http://www.niksoftware.com) announced the availability of it's U-point-technology based editing plugin for Apple's Aperture 2.1 called [Viveza](http://www.niksoftware.com/viveza).

View File

@ -10,6 +10,7 @@ date: 2008-05-07 19:22:49+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
--- ---
There are already some lists like this available on the web and they are always very subjective so I thought I should add my subjective list too. While Aperture was released I was coding this website and had not much time for writing about it. So although a bit late here is my absolutely biased list of my favorite 15 new features included in Apple's Aperture since version 2.0. It's in a nice countdown order ending with the best new feature (to me) at the bottom. Just click on the little screenshots to smoothly zoom to the full version of them. There are already some lists like this available on the web and they are always very subjective so I thought I should add my subjective list too. While Aperture was released I was coding this website and had not much time for writing about it. So although a bit late here is my absolutely biased list of my favorite 15 new features included in Apple's Aperture since version 2.0. It's in a nice countdown order ending with the best new feature (to me) at the bottom. Just click on the little screenshots to smoothly zoom to the full version of them.

View File

@ -9,6 +9,7 @@ date: 2008-05-18 05:00:01+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
--- ---
![Aperture](../media/aperture97.png)With the release of Aperture 2.1 Apple introduced a plugin architecture for adding third party image adjustment and export plugins. Now the first third party image adjustment plugins for Aperture 2.1 have arrived. And they can definitely make you stop roundtripping your pictures to Photoshop and back. For now a total of 14 plugins from 9 companys were announced which are waiting to help you with your Aperture 2 workflow. ![Aperture](../media/aperture97.png)With the release of Aperture 2.1 Apple introduced a plugin architecture for adding third party image adjustment and export plugins. Now the first third party image adjustment plugins for Aperture 2.1 have arrived. And they can definitely make you stop roundtripping your pictures to Photoshop and back. For now a total of 14 plugins from 9 companys were announced which are waiting to help you with your Aperture 2 workflow.

View File

@ -7,6 +7,7 @@ date: 2008-05-19 13:05:23+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
--- ---
[![Fisheye-Hemi](../media/imagetrends_hemi_10.jpg)](../media/imagetrends_hemi_10.jpg)Today Image Trends Inc. [announced](http://www.imagetrendsinc.com/news/Aperture%20Fisheye%20Hemi%20%20Final.pdf) the final availability of the anti-distortion plugin [Fisheye-Hemi](http://www.imagetrendsinc.com/products/prodpage_hemi.asp) as an editing plugin for Aperture 2.1. The plugin will remap your hemispheric images taken with a fisheye lens. So if you take pictures with a fisheye lens this plugin is a must have for you. [![Fisheye-Hemi](../media/imagetrends_hemi_10.jpg)](../media/imagetrends_hemi_10.jpg)Today Image Trends Inc. [announced](http://www.imagetrendsinc.com/news/Aperture%20Fisheye%20Hemi%20%20Final.pdf) the final availability of the anti-distortion plugin [Fisheye-Hemi](http://www.imagetrendsinc.com/products/prodpage_hemi.asp) as an editing plugin for Aperture 2.1. The plugin will remap your hemispheric images taken with a fisheye lens. So if you take pictures with a fisheye lens this plugin is a must have for you.

View File

@ -9,6 +9,7 @@ date: 2008-05-28 15:29:56+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
--- ---
![ApertureEdit](../media/apertureedit_logo.png)Today [Human Software](http://www.humansoftware.com) released an exciting image editing plug-in for Apple's Aperture. It's called [ApertureEdit](http://www.humansoftware.com/pages1200/ApertureEdit/HSapertureedit11.html) and according to Human Software it offers more than 4000 professional effects which you can achieve right within Aperture. ![ApertureEdit](../media/apertureedit_logo.png)Today [Human Software](http://www.humansoftware.com) released an exciting image editing plug-in for Apple's Aperture. It's called [ApertureEdit](http://www.humansoftware.com/pages1200/ApertureEdit/HSapertureedit11.html) and according to Human Software it offers more than 4000 professional effects which you can achieve right within Aperture.

View File

@ -11,6 +11,7 @@ tags:
- design - design
- macos - macos
- css - css
- apple
--- ---
![Safari](../media/safari-logo.png)Apple released a developer preview of the upcoming version of its web browser Safari to registered Developers. The Safari 4 Developer Preview is available for Mac OS X Tiger/Leopard and Windows. While the main changes are not visible to the user the most significant visible new feature is the overhauled Web Inspector. ![Safari](../media/safari-logo.png)Apple released a developer preview of the upcoming version of its web browser Safari to registered Developers. The Safari 4 Developer Preview is available for Mac OS X Tiger/Leopard and Windows. While the main changes are not visible to the user the most significant visible new feature is the overhauled Web Inspector.

View File

@ -9,6 +9,7 @@ date: 2008-06-25 15:29:22+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
--- ---
![Edit for Aperture logo](../media/apertureedit_logo2.png)The All-in-one Aperture adjustment plugin bundle from [Human Software](http://www.humansoftware.com) is now called Edit for Aperture or just [Edit](http://www.humansoftware.com/pages1200/ApertureEdit/HSapertureedit11.html). The new version 1.2 can now apply multiple layers of curves correction at once and the interface gets a new split image view. Also "different compatibility issues for PowerPC users" were fixed according to the release notes. ![Edit for Aperture logo](../media/apertureedit_logo2.png)The All-in-one Aperture adjustment plugin bundle from [Human Software](http://www.humansoftware.com) is now called Edit for Aperture or just [Edit](http://www.humansoftware.com/pages1200/ApertureEdit/HSapertureedit11.html). The new version 1.2 can now apply multiple layers of curves correction at once and the interface gets a new split image view. Also "different compatibility issues for PowerPC users" were fixed according to the release notes.

View File

@ -9,6 +9,7 @@ date: 2008-07-08 19:19:54+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
--- ---
![image](../media/aperture-plugin128.png) ![image](../media/aperture-plugin128.png)

View File

@ -7,6 +7,8 @@ date: 2008-07-11 00:20:22+00:00
tags: tags:
- personal - personal
- wordpress - wordpress
- apple
- iphone
--- ---
![kremalicious iPhone](../media/kremaliciousiphone_thumb.png) ![kremalicious iPhone](../media/kremaliciousiphone_thumb.png)

View File

@ -9,6 +9,7 @@ date: 2008-07-11 19:13:16+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
--- ---
![image](../media/aperture-plugin128.png)Beside a new version of Color Efex Pro for Capture NX, Nik announced a brand new plug-in for Photoshop and Aperture. [Silver Efex Pro](http://www.niksoftware.com/silverefexpro/usa/entry.php) is a tool to create black & white images with the power and simplicity of the U-Point technology. You can easily fine tune portions of your black & white images. It's also capable of emulating film grain and 18 different types of film while also providing 20 one-click preset styles. But Silver Efex Pro is also capable of color toning the image. ![image](../media/aperture-plugin128.png)Beside a new version of Color Efex Pro for Capture NX, Nik announced a brand new plug-in for Photoshop and Aperture. [Silver Efex Pro](http://www.niksoftware.com/silverefexpro/usa/entry.php) is a tool to create black & white images with the power and simplicity of the U-Point technology. You can easily fine tune portions of your black & white images. It's also capable of emulating film grain and 18 different types of film while also providing 20 one-click preset styles. But Silver Efex Pro is also capable of color toning the image.

View File

@ -11,6 +11,7 @@ tags:
- aperture - aperture
- tutorial - tutorial
- macos - macos
- apple
--- ---
![Niepce's Aperture Vault](../media/niepces_aperture_vault256.png)When on the road I always take a little mobile hard drive with me where all my referenced Aperture Masters from the past years and my mobile Aperture Vault (backing up the un-referenced Masters from the current year) reside. But being little and mobile also means the external hard drive can easily be lost or stolen exposing all my pictures to the thief. To avoid that you can use encryption so in the case of a lost or theft the data is not accessible by the thief. This can easily be done with [sparse bundle disk images](http://db.tidbits.com/article/9673) so you won't have to encrypt the whole hard drive with additional software. ![Niepce's Aperture Vault](../media/niepces_aperture_vault256.png)When on the road I always take a little mobile hard drive with me where all my referenced Aperture Masters from the past years and my mobile Aperture Vault (backing up the un-referenced Masters from the current year) reside. But being little and mobile also means the external hard drive can easily be lost or stolen exposing all my pictures to the thief. To avoid that you can use encryption so in the case of a lost or theft the data is not accessible by the thief. This can easily be done with [sparse bundle disk images](http://db.tidbits.com/article/9673) so you won't have to encrypt the whole hard drive with additional software.

View File

@ -9,6 +9,7 @@ date: 2008-08-28 09:54:06+00:00
tags: tags:
- design - design
- macos - macos
- apple
--- ---
![Architect icon](../media/architect-icon.jpg)There's good news for all you Mac OS X Leopard GUI Themer out there. While there's Panic's [Candybar](http://www.panic.com/candybar) for icon customization in OS X there is no application to alter all the user interface elements of Leopard. In Tiger there was an application called ShapeShifter but since the whole GUI in Leopard changed it stopped working. Architect and Façade to the rescue. ![Architect icon](../media/architect-icon.jpg)There's good news for all you Mac OS X Leopard GUI Themer out there. While there's Panic's [Candybar](http://www.panic.com/candybar) for icon customization in OS X there is no application to alter all the user interface elements of Leopard. In Tiger there was an application called ShapeShifter but since the whole GUI in Leopard changed it stopped working. Architect and Façade to the rescue.

View File

@ -10,6 +10,7 @@ date: 2008-10-26 16:05:58+00:00
tags: tags:
- photography - photography
- aperture - aperture
- apple
redirect_from: redirect_from:
- /2008/10/the-definite-guide-to-watermarks-in-apple-aperture/ - /2008/10/the-definite-guide-to-watermarks-in-apple-aperture/

View File

@ -9,6 +9,7 @@ tags:
- design - design
- futurama - futurama
- mac - mac
- apple
--- ---
Time for some Mac Futurama crossover geekiness! In a fun watching process I've compiled a list of all the references to Apple's Macintosh and other Apple products. In Futurama we mainly see references to the old, classic Macs running [System 6](http://en.wikipedia.org/wiki/Apple_System_Software_6), [System 7](http://en.wikipedia.org/wiki/System_7) or [OS 9](http://en.wikipedia.org/wiki/Mac_OS_9) ending with the colorful iMac G3. This is likely caused by the timeframe in which Matt Groening and David X. Cohen developed the first season of Futurama (1997-1999). Time for some Mac Futurama crossover geekiness! In a fun watching process I've compiled a list of all the references to Apple's Macintosh and other Apple products. In Futurama we mainly see references to the old, classic Macs running [System 6](http://en.wikipedia.org/wiki/Apple_System_Software_6), [System 7](http://en.wikipedia.org/wiki/System_7) or [OS 9](http://en.wikipedia.org/wiki/Mac_OS_9) ending with the colorful iMac G3. This is likely caused by the timeframe in which Matt Groening and David X. Cohen developed the first season of Futurama (1997-1999).

View File

@ -11,6 +11,7 @@ tags:
- icon - icon
- ios - ios
- ipad - ipad
- apple
--- ---
So, what to do when [everyone seem](http://www.littleboxofideas.com/blog/design-resources/5-very-useful-free-ipad-icon-sets-for-designers) [to release iPad icons](http://line25.com/articles/free-apple-ipad-icon-set-for-your-website-designs) but fail to include some crisp small size icons? Pushing the pixels for yourself of course. So here's my take on the smaller sizes of an [Apple iPad](http://www.apple.com/ipad/) icon, called iPixelPad in the sizes 48px, 32px and 16px. Everything drawn pixel-perfect from scratch. Heck, even the wallpaper. So, what to do when [everyone seem](http://www.littleboxofideas.com/blog/design-resources/5-very-useful-free-ipad-icon-sets-for-designers) [to release iPad icons](http://line25.com/articles/free-apple-ipad-icon-set-for-your-website-designs) but fail to include some crisp small size icons? Pushing the pixels for yourself of course. So here's my take on the smaller sizes of an [Apple iPad](http://www.apple.com/ipad/) icon, called iPixelPad in the sizes 48px, 32px and 16px. Everything drawn pixel-perfect from scratch. Heck, even the wallpaper.

View File

@ -9,7 +9,6 @@ date: 2012-05-09 09:48:19+00:00
tags: tags:
- design - design
- responsive
- retina - retina
--- ---

View File

@ -9,8 +9,6 @@ date: 2012-05-12 13:19:02+00:00
tags: tags:
- design - design
- mobile
- responsive
--- ---
Great middle ground arguments from Jason Mark in this recent controversy about mobile web experiences: Great middle ground arguments from Jason Mark in this recent controversy about mobile web experiences:

View File

@ -9,8 +9,6 @@ date: 2012-05-12 17:52:53+00:00
tags: tags:
- design - design
- mobile
- responsive
--- ---
Awesome overview about all the currently available techniques. Awesome overview about all the currently available techniques.

View File

@ -9,6 +9,7 @@ date: 2012-06-05 16:25:56+00:00
tags: tags:
- design - design
- apple
--- ---
Much has been written about the good and bad of skeuomorphism. Tom Hobbs wrote a [great piece](http://www.fastcodesign.com/1669879/can-we-please-move-past-apples-silly-faux-real-uis) putting everything together. Much has been written about the good and bad of skeuomorphism. Tom Hobbs wrote a [great piece](http://www.fastcodesign.com/1669879/can-we-please-move-past-apples-silly-faux-real-uis) putting everything together.

View File

@ -10,6 +10,7 @@ featured: true
date: 2012-08-07 13:15:44+00:00 date: 2012-08-07 13:15:44+00:00
tags: tags:
- apple
- goodies - goodies
- iphone - iphone
- wallpaper - wallpaper

View File

@ -14,6 +14,7 @@ tags:
- tor - tor
- macos - macos
- goodies - goodies
- apple
--- ---
There are many reasons you might want to browse anonymously which can be accomplished by using [Tor](https://www.torproject.org). The setup instructions on Tor's website are quite scattered and outdated so here are some steps to setup Tor on macOS with a simple automated script at the end. There are many reasons you might want to browse anonymously which can be accomplished by using [Tor](https://www.torproject.org). The setup instructions on Tor's website are quite scattered and outdated so here are some steps to setup Tor on macOS with a simple automated script at the end.
@ -22,11 +23,11 @@ I'm using macOS Mojave (10.14) for the following instructions but it should work
--- ---
- [Tor Browser](#Tor-Browser) - [Tor Browser](#tor-browser)
- [Install Tor](#Install-Tor) - [Install Tor](#install-tor)
- [Set network proxy settings via System Preferences](#Set-network-proxy-settings-via-System-Preferences) - [Set network proxy settings via System Preferences](#set-network-proxy-settings-via-system-preferences)
- [All in one go: start Tor & set network proxy settings automatically](#All-in-one-go-start-Tor--set-network-proxy-settings-automatically) - [All in one go: start Tor & set network proxy settings automatically](#all-in-one-go-start-tor--set-network-proxy-settings-automatically)
- [Non-standard apps](#Non-standard-apps) - [Non-standard apps](#non-standard-apps)
--- ---

View File

@ -9,6 +9,7 @@ tags:
- oceanprotocol - oceanprotocol
- blockchain - blockchain
- design - design
- web3
--- ---
Explore, download, and publish 1000+ open data sets in Oceans Nile Network. Explore, download, and publish 1000+ open data sets in Oceans Nile Network.

View File

@ -9,6 +9,7 @@ tags:
- oceanprotocol - oceanprotocol
- blockchain - blockchain
- design - design
- web3
--- ---
Weve been busy over the last few months, further developing the Commons Marketplace alongside creating the Pacific PoA Network. Weve been busy over the last few months, further developing the Commons Marketplace alongside creating the Pacific PoA Network.

View File

@ -8,7 +8,9 @@ image: ocean-protocol-and-ipfs-sitting-in-the-merkle-tree-teaser.png
tags: tags:
- oceanprotocol - oceanprotocol
- blockchain - blockchain
- design
- ipfs - ipfs
- web3
--- ---
IPFS is now integrated into the Ocean Protocol stack, allowing you to take advantage of decentralized asset file hosting. IPFS is now integrated into the Ocean Protocol stack, allowing you to take advantage of decentralized asset file hosting.

View File

@ -123,7 +123,7 @@
"prettier-stylelint": "^0.4.2", "prettier-stylelint": "^0.4.2",
"shortid": "^2.2.15", "shortid": "^2.2.15",
"stylelint": "^11.1.1", "stylelint": "^11.1.1",
"stylelint-config-css-modules": "^2.0.0", "stylelint-config-css-modules": "^1.5.0",
"stylelint-config-prettier": "^6.0.0", "stylelint-config-prettier": "^6.0.0",
"stylelint-config-standard": "^19.0.0", "stylelint-config-standard": "^19.0.0",
"stylelint-prettier": "^1.1.1", "stylelint-prettier": "^1.1.1",

View File

@ -0,0 +1,22 @@
@import 'variables';
.tag {
color: $brand-grey-light;
margin-left: $spacer / 2;
margin-right: $spacer / 2;
margin-bottom: $spacer / 2;
white-space: nowrap;
display: inline-block;
&::before {
content: '#';
margin-right: 1px;
opacity: 0.65;
}
}
.count {
font-size: $font-size-small;
margin-left: $spacer / 6;
opacity: 0.65;
}

View File

@ -0,0 +1,22 @@
import React from 'react'
import { Link } from 'gatsby'
import styles from './Tag.module.scss'
export default function Tag({
name,
url,
count,
style
}: {
name: string
url: string
count?: number
style?: any
}) {
return (
<Link className={styles.tag} to={url} style={style}>
{name}
{count && <span className={styles.count}>{count}</span>}
</Link>
)
}

View File

@ -0,0 +1,17 @@
@import 'variables';
.tags {
list-style: none;
padding: 0;
text-align: center;
li {
display: inline-block;
margin-top: $spacer / 4;
margin-bottom: $spacer / 4;
&::before {
display: none;
}
}
}

56
src/pages/tags.tsx Normal file
View File

@ -0,0 +1,56 @@
import React from 'react'
import { graphql } from 'gatsby'
import Page from '../templates/Page'
import Tag from '../components/atoms/Tag'
import styles from './tags.module.scss'
const page = {
frontmatter: {
title: 'Tags',
description: 'All the tags being used.'
}
}
interface Tag {
fieldValue: string
totalCount: number
}
interface TagsPageProps {
data: {
allMarkdownRemark: { group: Tag[] }
}
location: Location
}
const TagsPage = ({ data, location }: TagsPageProps) => (
<Page title={page.frontmatter.title} location={location} post={page}>
<ul className={styles.tags}>
{data.allMarkdownRemark.group
.sort((a, b) => b.totalCount - a.totalCount)
.map((tag: Tag) => (
<li key={tag.fieldValue}>
<Tag
name={tag.fieldValue}
url={`/tags/${tag.fieldValue}/`}
count={tag.totalCount}
style={{ fontSize: `${100 + tag.totalCount * 2}%` }}
/>
</li>
))}
</ul>
</Page>
)
export default TagsPage
export const tagsPageQuery = graphql`
query {
allMarkdownRemark {
group(field: frontmatter___tags) {
fieldValue
totalCount
}
}
}
`

View File

@ -15,7 +15,7 @@ export default function Page({
title: string title: string
children: any children: any
section?: string section?: string
location?: Location location: Location
post?: Post post?: Post
}) { }) {
return ( return (

View File

@ -68,18 +68,3 @@
.tags { .tags {
margin-top: $spacer / 2; margin-top: $spacer / 2;
} }
.tag {
color: $brand-grey-light;
margin-left: $spacer / 2;
margin-right: $spacer / 2;
margin-bottom: $spacer / 2;
white-space: nowrap;
display: inline-block;
&::before {
content: '#';
margin-right: 1px;
opacity: 0.65;
}
}

View File

@ -2,9 +2,11 @@ import React from 'react'
import { Link } from 'gatsby' import { Link } from 'gatsby'
import slugify from 'slugify' import slugify from 'slugify'
import Time from '../../components/atoms/Time' import Time from '../../components/atoms/Time'
import Tag from '../../components/atoms/Tag'
import { useSiteMetadata } from '../../hooks/use-site-metadata' import { useSiteMetadata } from '../../hooks/use-site-metadata'
import styles from './PostMeta.module.scss' import styles from './PostMeta.module.scss'
import { Post } from '../../@types/Post' import { Post } from '../../@types/Post'
import shortid from 'shortid'
export default function PostMeta({ post }: { post: Post }) { export default function PostMeta({ post }: { post: Post }) {
const siteMeta = useSiteMetadata() const siteMeta = useSiteMetadata()
@ -36,13 +38,8 @@ export default function PostMeta({ post }: { post: Post }) {
{tags && ( {tags && (
<div className={styles.tags}> <div className={styles.tags}>
{tags.map((tag: string) => { {tags.map((tag: string) => {
const to = tag === 'goodies' ? '/goodies' : `/tags/${slugify(tag)}/` const url = `/tags/${slugify(tag)}/`
return <Tag key={shortid.generate()} name={tag} url={url} />
return (
<Link key={tag} className={styles.tag} to={to}>
{tag}
</Link>
)
})} })}
</div> </div>
)} )}